protected override void ConnectObservers(IBus bus) { base.ConnectObservers(bus); _observer = new SendObserver(); bus.ConnectSendObserver(_observer); }
public Task PostCreate(IBus bus) { bus.ConnectPublishObserver(new PrometheusPublishObserver()); bus.ConnectSendObserver(new PrometheusSendObserver()); bus.ConnectReceiveObserver(new PrometheusReceiveObserver()); return(Task.CompletedTask); }
public Task PostCreate(IBus bus) { bus.ConnectPublishObserver(new PerformanceCounterPublishObserver(_factory)); bus.ConnectSendObserver(new PerformanceCounterSendObserver(_factory)); bus.ConnectReceiveObserver(new PerformanceCounterReceiveObserver(_factory)); return TaskUtil.Completed; }
public Task PostCreate(IBus bus) { bus.ConnectPublishObserver(new PerformanceCounterPublishObserver()); bus.ConnectSendObserver(new PerformanceCounterSendObserver()); bus.ConnectReceiveObserver(new PerformanceCounterReceiveObserver()); return(TaskUtil.Completed); }
public ConnectHandle ConnectSendObserver(ISendObserver observer) { return(_bus.ConnectSendObserver(observer)); }