예제 #1
0
        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 });
                }
예제 #3
0
        internal static void Send(TcpState e, StartMsg startMsg)
        {
            var startCmd = PoolCommand.CreateCommand(CommandNames.Start, startMsg);

            if (PoolJob.TcpServer != null)
            {
                PoolJob.TcpServer.SendCommand(e, startCmd);
            }
        }
예제 #4
0
 public Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     return(context.Send(new RunStep1Command()));
 }
예제 #5
0
 public Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     return(context.SendLocal(new SendToSelfCmd()));
 }
예제 #6
0
 public async Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     await context.Send(new Step1Cmd());
 }
예제 #7
0
 public async Task <IActionResult> Start([FromBody] StartMsg msg)
 => Json(await _sslCtrl.StartGetSSLAsync(msg.Domains));