public MessageRouteBranch(MessageRoute route, MessageRouteId routeId, string messageName, MessageType messageType) : base(route) { id = new MessageId(); this.routeId = routeId; this.messageName = messageName; this.messageType = messageType; }
public MessageRoute OpenRoute(string machine, int thread, DateTime createdOn) { var processId = new ProcessId(machine, thread); MessageRoute messageRoute = MessageRoute.Open(bus, processId, createdOn); currentRoutes.Add(processId, messageRoute); return(messageRoute); }
public async Task Handle(TCommand message) { MessageRoute route = lookup.MessageRouteExists(message.Machine, message.Thread) ? lookup.LookupMessageRoute(message.Machine, message.Thread) : lookup.OpenRoute(message.Machine, message.Thread, message.CreatedOn); route.LogMessageProcessing(message.MessageName, MessageType); await Task.FromResult(false); }
public MessageRouteHierarchy(MessageRoute route, MessageRouteId routeId) : base(route) { this.route = route; this.routeId = routeId; }