public void ImplementsMessageType <T>(bool direct) where T : class { IMessageSendPipeSpecification <T> implementedTypeSpecification = _specification.GetMessageSpecification <T>(); _messageSpecification.AddImplementedMessageSpecification(implementedTypeSpecification); }
public void MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) where T : class { IMessageSendPipeSpecification <T> messageSpecification = _specification.GetMessageSpecification <T>(); specification.AddParentMessageSpecification(messageSpecification); }
void ISendPipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) { var applicationInsightsSendSpecification = new ApplicationInsightsSendSpecification <T>(_telemetryClient, _telemetryHeaderRootKey, _telemetryHeaderParentKey, _configureOperation); specification.AddPipeSpecification(applicationInsightsSendSpecification); }
public MessagePipe(SendObservable observers, IMessageSendPipeSpecification <TMessage> specification) { _output = new Lazy <IMessageSendPipe <TMessage> >(CreateFilter); _observers = observers; _specification = specification; }
void ISendPipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) { var applicationInsightsSendSpecification = new DiagnosticsActivityPipeSpecification <T>(_diagnosticSource, _activityIdKey, _activityCorrelationContextKey); specification.AddPipeSpecification(applicationInsightsSendSpecification); }
void ISendPipeSpecificationObserver.MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) { IMessageSendTopology <T> messageSendTopology = _topology.GetMessageTopology <T>(); var topologySpecification = new MessageSendTopologyPipeSpecification <T>(messageSendTopology); specification.AddParentMessageSpecification(topologySpecification); }
public void MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) where T : class { var scopeProviderType = typeof(AutofacFilterContextScopeProvider <,>).MakeGenericType(_filterType.MakeGenericType(typeof(T)), typeof(SendContext <T>)); var scopeProvider = (IFilterContextScopeProvider <SendContext <T> >)Activator.CreateInstance(scopeProviderType, _lifetimeScopeProvider); var filter = new ScopedFilter <SendContext <T> >(scopeProvider); specification.UseFilter(filter); }
public void MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) where T : class { All(observer => { observer.MessageSpecificationCreated(specification); return(true); }); }
void ISendPipeConfigurator.AddPipeSpecification <T>(IPipeSpecification <SendContext <T> > specification) { IMessageSendPipeSpecification <T> messageSpecification = GetMessageSpecification <T>(); messageSpecification.AddPipeSpecification(specification); }
public void MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) where T : class { specification.AddScopedFilter <SendContext <T>, T>(_filterType, _provider); }
public void MessageSpecificationCreated <T>(IMessageSendPipeSpecification <T> specification) where T : class { specification.AddPipeSpecification(new ScopeSendPipeSpecification <T>(_sendScopeProvider)); }
public void MessageSpecificationCreated <TMessage>(IMessageSendPipeSpecification <TMessage> specification) where TMessage : class { specification.AddPipeSpecification(new MySendMessagePipeSpec <TMessage>()); }
public MessagePipe(IMessageSendPipeSpecification <TMessage> specification) { _specification = specification; _output = new Lazy <IMessageSendPipe <TMessage> >(CreateFilter); }