Exemplo n.º 1
0
        public static IAsyncReactiveQbserver <T> GetSinkObserver <T>(this IReactiveProxy context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(context.GetObserver <T>(ReificationConstants.Sink.Uri));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
0
 public static IAsyncReactiveQbservable <T> Empty <T>(this IReactiveProxy context)
 {
     return(context.Provider.CreateQbservable <T>(
                Expression.Call(
                    ((MethodInfo)MethodInfo.GetCurrentMethod()).MakeGenericMethod(typeof(T)),
                    Expression.Constant(context, typeof(IReactiveProxy))
                    )
                ));
 }
Exemplo n.º 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)));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 7
0
 public static IAsyncReactiveQbservable <long> Timer(this IReactiveProxy context, TimeSpan dueTime)
 {
     return(context.Provider.CreateQbservable <long>(
                Expression.Call(
                    (MethodInfo)MethodInfo.GetCurrentMethod(),
                    Expression.Constant(context, typeof(IReactiveProxy)),
                    Expression.Constant(dueTime, typeof(TimeSpan))
                    )
                ));
 }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
0
 public bool TryResolve(Uri uri, out IReactiveProxy service)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 10
0
 public bool TryResolve(Uri uri, out IReactiveProxy service) => throw NotSupported();