コード例 #1
0
 public MessageRouteBranch(MessageRoute route, MessageRouteId routeId, string messageName, MessageType messageType)
     : base(route)
 {
     id               = new MessageId();
     this.routeId     = routeId;
     this.messageName = messageName;
     this.messageType = messageType;
 }
コード例 #2
0
 public MessageRouteBranch(MessageRoute route, MessageRouteId routeId, string messageName, MessageType messageType)
     : base(route)
 {
     id = new MessageId();
     this.routeId = routeId;
     this.messageName = messageName;
     this.messageType = messageType;
 }
コード例 #3
0
        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);
        }
コード例 #5
0
 public MessageRouteHierarchy(MessageRoute route, MessageRouteId routeId) : base(route)
 {
     this.route   = route;
     this.routeId = routeId;
 }
コード例 #6
0
 public MessageRouteHierarchy(MessageRoute route, MessageRouteId routeId) : base(route)
 {
     this.route = route;
     this.routeId = routeId;
 }