예제 #1
0
        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));
        }
예제 #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>(
            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));
        }
예제 #4
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));
        }
예제 #5
0
        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));
        }