Esempio n. 1
0
        public static IObservable <ClientTermination> ServeQbservableTcp <TSource>(
            this IObservable <TSource> source,
            IPEndPoint endPoint)
        {
            Contract.Requires(source != null);
            Contract.Requires(endPoint != null);
            Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null);

            return(TcpQbservableServer.CreateService <object, TSource>(endPoint, _ => source));
        }
Esempio n. 2
0
        public static IObservable <ClientTermination> ServeTcp <TSource>(
            this IQbservable <TSource> source,
            IPEndPoint endPoint,
            ITcpQactiveProviderTransportInitializer transportInitializer)
        {
            Contract.Requires(source != null);
            Contract.Requires(endPoint != null);
            Contract.Requires(transportInitializer != null);
            Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null);

            return(TcpQbservableServer.CreateService <object, TSource>(endPoint, transportInitializer, _ => source));
        }