예제 #1
0
        public IFlowmakerChannel GetChannel(string subject, Func <byte[], bool> handler)
        {
            var channel = new FlowmakerChannel(this, _connection, subject);

            channel.Handle(handler);
            return(channel);
        }
예제 #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);
        }