public string User() { _publishCommand.PublishCommandMessage("Bucket.Sample", new Values.NetworkCommand { NotifyComponent = "Bucket.Config", CommandText = "ConfigRefresh" }).GetAwaiter(); return("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 { }); }
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 { }); }