public virtual Response <ValidateCustomDomainOutput> ValidateCustomDomain(ValidateCustomDomainInput customDomainProperties, CancellationToken cancellationToken = default) { Argument.AssertNotNull(customDomainProperties, nameof(customDomainProperties)); using var scope = _cdnEndpointClientDiagnostics.CreateScope("CdnEndpoint.ValidateCustomDomain"); scope.Start(); try { var response = _cdnEndpointRestClient.ValidateCustomDomain(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, customDomainProperties, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }