示例#1
0
        public virtual async Task <Response <CustomDomainValidateResult> > ValidateDomainAsync(CustomDomainValidatePayload validatePayload, CancellationToken cancellationToken = default)
        {
            Argument.AssertNotNull(validatePayload, nameof(validatePayload));

            using var scope = _appPlatformAppResourceAppsClientDiagnostics.CreateScope("AppPlatformAppResource.ValidateDomain");
            scope.Start();
            try
            {
                var response = await _appPlatformAppResourceAppsRestClient.ValidateDomainAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, validatePayload, cancellationToken).ConfigureAwait(false);

                return(response);
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }