예제 #1
0
        public static IObservable <ClientTermination> ServeQbservableWebSocket <TSource>(
            this IObservable <TSource> source,
            Uri uri)
        {
            Contract.Requires(source != null);
            Contract.Requires(uri != null);
            Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null);

            return(WebSocketQbservableServer.CreateService <object, TSource>(uri, _ => source));
        }
예제 #2
0
        public static IObservable <ClientTermination> ServeWebSocket <TSource>(
            this IQbservable <TSource> source,
            Uri uri,
            IWebSocketQactiveProviderTransportInitializer transportInitializer)
        {
            Contract.Requires(source != null);
            Contract.Requires(uri != null);
            Contract.Requires(transportInitializer != null);
            Contract.Ensures(Contract.Result <IObservable <ClientTermination> >() != null);

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