protected override IReactiveQubscription SubscribeCore(IReactiveQbserver <TOutput> observer, Uri subscriptionUri, object state) { return(((ReactiveQueryProviderBase)base.Provider).Subscribe <TOutput>(this, observer, subscriptionUri, state)); }
public IReactiveQubscription Subscribe(IReactiveQbserver <T> observer, Uri subscriptionUri, object state) { throw new NotImplementedException(); }
public void DefineObserver <T>(Uri uri, IReactiveQbserver <T> observer, object state) { throw new NotImplementedException(); }
/// <summary> /// Defines an observer identified by the specified URI. /// </summary> /// <typeparam name="T">Type of the data received by the observer.</typeparam> /// <param name="uri">URI identifying the observer.</param> /// <param name="observer">Observer to be defined.</param> /// <param name="state">Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it.</param> protected override void DefineObserverCore <T>(Uri uri, IReactiveQbserver <T> observer, object state = null) { var expression = _expressionServices.Normalize(observer.Expression); _provider.DefineObserver(uri, expression, state); }
/// <summary> /// Defines an observer identified by the specified URI. /// </summary> /// <typeparam name="T">Type of the data received by the observer.</typeparam> /// <param name="uri">URI identifying the observer.</param> /// <param name="observer">Observer to be defined.</param> /// <param name="state">Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it.</param> public void DefineObserver <T>(Uri uri, IReactiveQbserver <T> observer, object state = null) => Definition.DefineObserver(uri, observer, state);
/// <summary> /// Gets an observer to send notifications to. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="observer">Expression tree representation of an observer to get a publication observer for.</param> /// <returns>Observer to send notifications to.</returns> protected override IReactiveObserver <T> GetObserverCore <T>(IReactiveQbserver <T> observer) { var observerUri = GetObserverUri(observer); return(_provider.GetObserver <T>(observerUri)); }