示例#1
0
 public static OSFamily GetOSFamily(this ArmClient client, ResourceIdentifier id)
 {
     return(client.GetClient(() =>
     {
         OSFamily.ValidateResourceId(id);
         return new OSFamily(client, id);
     }
                             ));
 }
示例#2
0
 public static OSFamily GetOSFamily(this ArmClient armClient, ResourceIdentifier id)
 {
     OSFamily.ValidateResourceId(id);
     return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new OSFamily(clientOptions, credential, uri, pipeline, id)));
 }
 public static OSFamily GetOSFamily(this ArmClient armClient, ResourceIdentifier id)
 {
     OSFamily.ValidateResourceId(id);
     return(new OSFamily(armClient, id));
 }