internal static void Send(TcpState e) { var startMsg = new StartMsg(); PoolTask poolCache = GetFreeMinerTask(); var startCmd = PoolCommand.CreateCommand(CommandNames.Start, poolCache.CurrentStartMsg); }
public async Task Handle(StartMsg message, IMessageHandlerContext context) { await context.SendLocal(new ContinueMsg { OrderId = message.OrderId, Index = 1 }); await context.SendLocal(new ContinueMsg { OrderId = message.OrderId, Index = 2 }); await context.SendLocal(new ContinueMsg { OrderId = message.OrderId, Index = 3 }); }
internal static void Send(TcpState e, StartMsg startMsg) { var startCmd = PoolCommand.CreateCommand(CommandNames.Start, startMsg); if (PoolJob.TcpServer != null) { PoolJob.TcpServer.SendCommand(e, startCmd); } }
public Task Handle(StartMsg message, IMessageHandlerContext context) { return(context.Send(new RunStep1Command())); }
public Task Handle(StartMsg message, IMessageHandlerContext context) { return(context.SendLocal(new SendToSelfCmd())); }
public async Task Handle(StartMsg message, IMessageHandlerContext context) { await context.Send(new Step1Cmd()); }
public async Task <IActionResult> Start([FromBody] StartMsg msg) => Json(await _sslCtrl.StartGetSSLAsync(msg.Domains));