// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Web.Services; namespace test { public class Check : WebService { private static int ncalls = 0; private static int nobjs = 0; public Check() { nobjs++; } [WebMethod] public void OneCall() { ncalls++; } [WebMethod] public int GetCalls() { return ncalls; } [WebMethod] public int GetObjs() { return nobjs; } } }