Example #1
0
 public virtual Response <Provider> Register(string resourceProviderNamespace, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("Provider.Register");
     scope.Start();
     try
     {
         var result = _restClient.Register(resourceProviderNamespace, cancellationToken);
         return(Response.FromValue(new Provider(this, result), result.GetRawResponse()));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }