Exemplo n.º 1
0
        public IFlowmakerChannel GetChannel(string subject, Func <byte[], bool> handler)
        {
            var channel = new FlowmakerChannel(this, _connection, subject);

            channel.Handle(handler);
            return(channel);
        }
Exemplo n.º 2
0
        public IFlowmakerChannel GetChannel <T>(string subject, T job) where T : IFlowmakerJob
        {
            var channel = new FlowmakerChannel(this, _connection, subject);

            channel.Handle(job);
            return(channel);
        }