void DoSendCommand(object sender, DoWorkEventArgs e) { SendCommandEnvelope env = e.Argument as SendCommandEnvelope; _sys.SendCommand(env.ConnectionSettings, env.Queue, env.Command); e.Result = env; }
void DoSendCommand(object sender, DoWorkEventArgs e) { //if( !_isBusStarted ) { // _sys.SetupServiceBus(_asmPath); // _isBusStarted = true; //} SendCommandEnvelope env = e.Argument as SendCommandEnvelope; _sys.SendCommand(env.Server, env.Queue, env.Command); e.Result = env; }