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>());
        }
示例#2
0
        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));
        }
示例#3
0
        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);
示例#6
0
 public override QactiveProvider Create()
 => WebSocketQactiveProvider.Server(Uri, Activator.CreateInstance <TTransportInitializer>());