Esempio n. 1
0
 public string User()
 {
     _publishCommand.PublishCommandMessage("Bucket.Sample", new Values.NetworkCommand {
         NotifyComponent = "Bucket.Config", CommandText = "ConfigRefresh"
     }).GetAwaiter();
     return("0");
 }
Esempio n. 2
0
        /// <summary>
        /// 推送项目信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <PublishCommandOutput> PublishCommand(PublishCommandInput input)
        {
            await _publishCommand.PublishCommandMessage(input.ProjectName, new Bucket.Values.NetworkCommand {
                CommandText = input.CommandText, NotifyComponent = input.CommandType
            });

            return(new PublishCommandOutput {
            });
        }
Esempio n. 3
0
        public async Task <BaseOutput> PublishConfigNetworkCommand([FromBody] PublishConfigNetworkCommandInput input)
        {
            await _networkCommand.PublishCommandMessage(input.ProjectName, new Values.NetworkCommand {
                CommandText = input.CommandText, NotifyComponent = input.CommandType
            });

            return(new BaseOutput {
            });
        }