public static IObservable <ClientTermination> ServeQbservable <TSource>(this IObservable <TSource> source, IQactiveProvider provider) { Contract.Requires(source != null); Contract.Requires(provider != null); Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null); return(QbservableServer.CreateService <object, TSource>(provider, _ => source)); }
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>( IPEndPoint endPoint, Func <IObservable <TSource>, IQbservable <TResult> > service) { Contract.Requires(endPoint != null); Contract.Requires(service != null); Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null); return(QbservableServer.CreateService(TcpQactiveProvider.Server(endPoint), 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 static IObservable <ClientTermination> CreateService <TSource, TResult>( IPEndPoint endPoint, ITcpQactiveProviderTransportInitializer transportInitializer, QbservableServiceOptions options, Func <IObservable <TSource>, IObservable <TResult> > service) { Contract.Requires(endPoint != null); Contract.Requires(transportInitializer != null); Contract.Requires(options != null); Contract.Requires(service != null); Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null); return(QbservableServer.CreateService(TcpQactiveProvider.Server(endPoint, transportInitializer), options, service)); }