protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _observer = GetObserver<A>();

            configurator.Observer(_observer);

            configurator.Observer(Observer.Create<ConsumeContext<A>>(m => Console.WriteLine(m.Message.Name)));
        }
Exemple #2
0
        protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _observer = GetObserver <A>();

            configurator.Observer(_observer);

            configurator.Observer(Observer.Create <ConsumeContext <A> >(m => Console.WriteLine(m.Message.Name)));
        }
        protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _observer = new ObservableObserver<ConsumeContext<A>>();

            _observer.GroupBy(x => x.Message.Name).Subscribe(value => Console.WriteLine("Key: {0}", value.Key));

            configurator.Observer(_observer);
        }
Exemple #4
0
        protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _observer = new ObservableObserver <ConsumeContext <A> >();

            _observer.GroupBy(x => x.Message.Name).Subscribe(value => Console.WriteLine("Key: {0}", value.Key));

            configurator.Observer(_observer);
        }
Exemple #5
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     _observer = new PingObserver();
     configurator.Observer(_observer, x =>
                           x.UseLog(Console.Out, async logContext => string.Format("Observer: {0}", TypeMetadataCache <PingObserver> .ShortName)));
 }
Exemple #6
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     _observer = new PingObserver();
     configurator.Observer(_observer, x =>
                           x.UseExecute(context => Console.WriteLine($"Observer: {TypeMetadataCache<PingObserver>.ShortName}")));
 }