Ejemplo n.º 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 });
                }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 4
0
 public Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     return(context.Send(new RunStep1Command()));
 }
Ejemplo n.º 5
0
 public Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     return(context.SendLocal(new SendToSelfCmd()));
 }
Ejemplo n.º 6
0
 public async Task Handle(StartMsg message, IMessageHandlerContext context)
 {
     await context.Send(new Step1Cmd());
 }
Ejemplo n.º 7
0
 public async Task <IActionResult> Start([FromBody] StartMsg msg)
 => Json(await _sslCtrl.StartGetSSLAsync(msg.Domains));