Ejemplo n.º 1
0
 protected override IReactiveQubscription SubscribeCore(IReactiveQbserver <TOutput> observer, Uri subscriptionUri, object state)
 {
     return(((ReactiveQueryProviderBase)base.Provider).Subscribe <TOutput>(this, observer, subscriptionUri, state));
 }
Ejemplo n.º 2
0
 public IReactiveQubscription Subscribe(IReactiveQbserver <T> observer, Uri subscriptionUri, object state)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public void DefineObserver <T>(Uri uri, IReactiveQbserver <T> observer, object state)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
        /// <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);
Ejemplo n.º 6
0
        /// <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));
        }