private WebSocketQactiveProvider(Uri uri, IWebSocketQactiveProviderTransportInitializer transportInitializer) { Contract.Requires(uri != null); Uri = uri; this.transportInitializer = transportInitializer; serverNumber = Interlocked.Increment(ref lastServerNumber); if (transportInitializer != null) { prepareSocket = transportInitializer.Prepare; formatterFactory = () => transportInitializer.CreateFormatter() ?? WebSocketQactiveDefaults.CreateDefaultFormatter(); } else { prepareSocket = Nop.Action; formatterFactory = WebSocketQactiveDefaults.CreateDefaultFormatter; } }
public WebSocketQbservableClient(Uri uri, params Type[] knownTypes) : this(uri, WebSocketQactiveDefaults.CreateDefaultFormatter(), knownTypes) { Contract.Requires(uri != null); }
public WebSocketQbservableClient(Uri uri, LocalEvaluator localEvaluator) : this(uri, WebSocketQactiveDefaults.CreateDefaultFormatter(), localEvaluator) { Contract.Requires(uri != null); Contract.Requires(localEvaluator != null); }
public WebSocketQbservableClient(Uri uri) : this(uri, WebSocketQactiveDefaults.CreateDefaultFormatter()) { Contract.Requires(uri != null); }