public IFlowmakerChannel GetChannel(string subject, Func <byte[], bool> handler) { var channel = new FlowmakerChannel(this, _connection, subject); channel.Handle(handler); return(channel); }
public IFlowmakerChannel GetChannel <T>(string subject, T job) where T : IFlowmakerJob { var channel = new FlowmakerChannel(this, _connection, subject); channel.Handle(job); return(channel); }