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 = 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); }
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); }
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))); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _observer = new PingObserver(); configurator.Observer(_observer, x => x.UseExecute(context => Console.WriteLine($"Observer: {TypeMetadataCache<PingObserver>.ShortName}"))); }