public IQbservable <TSource> Query(Action <WebSocket> prepareSocket, object argument) { Contract.Requires(prepareSocket != null); Contract.Ensures(Contract.Result <IQbservable <TSource> >() != null); return(WebSocketQactiveProvider.Client(typeof(TSource), uri, prepareSocket, formatter, localEvaluator, argument).CreateQuery <TSource>()); }
public static IObservable <ClientTermination> CreateService <TSource, TResult>( Uri uri, Func <IObservable <TSource>, IQbservable <TResult> > service) { Contract.Requires(uri != null); Contract.Requires(service != null); Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null); return(QbservableServer.CreateService(WebSocketQactiveProvider.Server(uri), service)); }
public static IObservable <ClientTermination> CreateService <TSource, TResult>( Uri uri, IWebSocketQactiveProviderTransportInitializer transportInitializer, QbservableServiceOptions options, Func <IObservable <TSource>, IObservable <TResult> > service) { Contract.Requires(uri != null); Contract.Requires(transportInitializer != null); Contract.Requires(options != null); Contract.Requires(service != null); Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null); return(QbservableServer.CreateService(WebSocketQactiveProvider.Server(uri, transportInitializer), options, service)); }
public IQbservable <TSource> Query() { Contract.Ensures(Contract.Result <IQbservable <TSource> >() != null); return(WebSocketQactiveProvider.Client(typeof(TSource), uri, Nop.Action, formatter, localEvaluator).CreateQuery <TSource>()); }
public override QactiveProvider Create() => WebSocketQactiveProvider.Server(Uri);
public override QactiveProvider Create() => WebSocketQactiveProvider.Server(Uri, Activator.CreateInstance <TTransportInitializer>());