Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
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));
        }