public XcapService(ServiceManager manager) { #if ASYNCHRONOUSLY this.callback = new MyAsyncXcapCallback(this); #else this.callback = new MySyncXcapCallback(this); #endif this.xcapDocumentsUris = new Dictionary <String, String>(); this.manager = manager; this.ready = false; }
public MyXcapStack(XcapCallback callback, string xui, string password, string xcapRoot, int timeout) { this.stack = new XcapStack(callback, xui, password, xcapRoot); if (callback is MySyncXcapCallback) { this.synCallback = (callback as MySyncXcapCallback); } this.xui = xui; this.password = password; this.xcapRoot = xcapRoot; this.timeout = timeout; this.stack.setTimeout((uint)timeout); this.synchronizer = new Semaphore(0, 1); }
public MyXcapStack(XcapCallback callback, String xui, String password, String xcapRoot, int timeout) { this.stack = new XcapStack(callback, xui, password, xcapRoot); if (callback is MySyncXcapCallback) { this.synCallback = callback as MySyncXcapCallback; } this.xui = xui; this.password = password; this.xcapRoot = xcapRoot; this.timeout = timeout; this.stack.setTimeout((uint)timeout); }