コード例 #1
0
        public static Func <TParam, IAsyncReactiveQbservable <TResult> > GetParameterizedSourceObservable <TParam, TResult>(this IReactiveProxy context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <TParam, TResult>(ReificationConstants.ParameterizedSource.Uri));
        }
コード例 #2
0
        public static IAsyncReactiveQbservable <T> GetSourceObservable <T>(this IReactiveProxy context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <T>(ReificationConstants.Source.Uri));
        }
コード例 #3
0
        public static IAsyncReactiveQbservable <TSource> Merge <TSource>(this IReactiveProxy context, params IAsyncReactiveQbservable <TSource>[] sources)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <IAsyncReactiveQbservable <TSource>[], TSource>(new Uri(Remoting.Client.Constants.Observable.Merge.N))(sources));
        }
コード例 #4
0
        public static IAsyncReactiveQbservable <TResult> Never <TResult>(this IReactiveProxy context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <TResult>(new Uri(Remoting.Client.Constants.Observable.Never.NoArgument)));
        }
コード例 #5
0
        public static IAsyncReactiveQbservable <TResult> Throw <TResult>(this IReactiveProxy context, Exception error)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <Exception, TResult>(new Uri(Remoting.Client.Constants.Observable.Throw.Error))(error));
        }
コード例 #6
0
        public static IAsyncReactiveQbservable <TResult> Return <TResult>(this IReactiveProxy context, TResult value)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObservable <TResult, TResult>(new Uri(Remoting.Client.Constants.Observable.Return.Value))(value));
        }