public static IAsyncReactiveQbserver <T> GetSinkObserver <T>(this IReactiveProxy context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } return(context.GetObserver <T>(ReificationConstants.Sink.Uri)); }
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)); }
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)) ) )); }
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))); }
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)); }
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)); }
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)) ) )); }
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)); }
public bool TryResolve(Uri uri, out IReactiveProxy service) { throw new NotImplementedException(); }
public bool TryResolve(Uri uri, out IReactiveProxy service) => throw NotSupported();