Example #1
0
        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;
        }
Example #2
0
 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);
 }
Example #3
0
        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);
        }