Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 /// <summary>
 ///  登记应用接口
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public RegisterAppResponse RegisterApp(RegisterAppRequest request)
 {
     return(new RegisterAppExecutor().Client(this).Execute <RegisterAppResponse, RegisterAppResult, RegisterAppRequest>(request));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 public Task <ResultContainer <EmptyActionResult> > RegisterApp([FromBody] RegisterAppRequest model)
 {
     return(api.Group("AppRegistration").Action <RegisterAppRequest, EmptyActionResult>("RegisterApp").Execute(model));
 }