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); }
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); }
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); }
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; }
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; }
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; }
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; }
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; }