public async Task Run(AppVersionKey versionKey) { var versions = await versionReader.Versions(); var template = apiFactory.CreateTemplate(); var request = new RegisterAppRequest { AppTemplate = ToClientTemplateModel(template.ToModel()), VersionKey = versionKey, Versions = versions }; await hubClient.AppRegistration.RegisterApp("", request); }
public async Task Run(AppVersionKey versionKey) { var versions = await hubApi.AppRegistration.GetVersions.Invoke(HubInfo.AppKey); var template = apiFactory.CreateTemplate(); var request = new RegisterAppRequest { AppTemplate = template.ToModel(), VersionKey = versionKey, Versions = versions }; await hubApi.AppRegistration.RegisterApp.Invoke(request); }
/// <summary> /// 登记应用接口 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public RegisterAppResponse RegisterApp(RegisterAppRequest request) { return(new RegisterAppExecutor().Client(this).Execute <RegisterAppResponse, RegisterAppResult, RegisterAppRequest>(request)); }
/// <summary> /// 登记应用接口 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <RegisterAppResponse> RegisterApp(RegisterAppRequest request) { return(await new RegisterAppExecutor().Client(this).Execute <RegisterAppResponse, RegisterAppResult, RegisterAppRequest>(request).ConfigureAwait(false)); }
public Task <ResultContainer <EmptyActionResult> > RegisterApp([FromBody] RegisterAppRequest model) { return(api.Group("AppRegistration").Action <RegisterAppRequest, EmptyActionResult>("RegisterApp").Execute(model)); }