コード例 #1
0
        public UUID CreateCapability(Uri remoteHandler, bool clientCertRequired, object state, double ttlSeconds)
        {
            UUID           id         = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(null, remoteHandler, clientCertRequired, state);

            lock (syncRoot)
                expiringCaps.Add(id, redirector, DateTime.Now + TimeSpan.FromSeconds(ttlSeconds));

            return(id);
        }
コード例 #2
0
        public UUID CreateCapability(Uri remoteHandler, bool clientCertRequired)
        {
            UUID           id         = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(null, remoteHandler, clientCertRequired, null);

            lock (syncRoot)
                fixedCaps.Add(id, redirector);

            return(id);
        }
コード例 #3
0
        public UUID CreateCapability(CapsRequestCallback localHandler, bool clientCertRequired, object state)
        {
            UUID           id         = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(localHandler, null, clientCertRequired, state);

            lock (syncRoot)
                fixedCaps.Add(id, redirector);

            return(id);
        }
コード例 #4
0
ファイル: CapsServer.cs プロジェクト: RavenB/gridsearch
        public UUID CreateCapability(Uri remoteHandler, bool clientCertRequired, bool sendResponseAfterCallback, object state, double ttlSeconds)
        {
            UUID id = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(null, remoteHandler, clientCertRequired, sendResponseAfterCallback, state);

            lock (syncRoot)
                expiringCaps.Add(id, redirector, DateTime.Now + TimeSpan.FromSeconds(ttlSeconds));

            return id;
        }
コード例 #5
0
ファイル: CapsServer.cs プロジェクト: RavenB/gridsearch
        public UUID CreateCapability(Uri remoteHandler, bool clientCertRequired, bool sendResponseAfterCallback)
        {
            UUID id = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(null, remoteHandler, clientCertRequired, sendResponseAfterCallback, null);

            lock (syncRoot)
                fixedCaps.Add(id, redirector);

            return id;
        }
コード例 #6
0
ファイル: CapsServer.cs プロジェクト: RavenB/gridsearch
        public UUID CreateCapability(CapsRequestCallback localHandler, bool clientCertRequired, object state)
        {
            UUID id = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(localHandler, null, clientCertRequired, true, state);

            lock (syncRoot)
                fixedCaps.Add(id, redirector);

            return id;
        }
コード例 #7
0
ファイル: CapsServer.cs プロジェクト: 3di/3di-viewer-rei-libs
        public UUID CreateCapability(Uri remoteHandler, bool clientCertRequired)
        {
            UUID id = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(null, remoteHandler, clientCertRequired);

            lock (syncRoot)
                fixedCaps.Add(id, redirector);

            return id;
        }
コード例 #8
0
ファイル: CapsServer.cs プロジェクト: 3di/3di-viewer-rei-libs
        public UUID CreateCapability(HttpRequestCallback localHandler, bool clientCertRequired, double ttlSeconds)
        {
            UUID id = UUID.Random();
            CapsRedirector redirector = new CapsRedirector(localHandler, null, clientCertRequired);

            lock (syncRoot)
                expiringCaps.Add(id, redirector, DateTime.Now + TimeSpan.FromSeconds(ttlSeconds));

            return id;
        }