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