private void NotifyMonitoringConsole(Order order) { order.ToOption() .Map(CreateMonitoringQueueItem) .Map(JsonConvert.SerializeObject) .Map(Encoding.UTF8.GetBytes) .Do(PublishToMonitoring); }
private void NotifyLogger(Order order) { order.ToOption() .Map(CreateLogQueueItem) .Map(JsonConvert.SerializeObject) .Map(Encoding.UTF8.GetBytes) .Do(PublishToLogger); }