public static CdnEndpoint GetCdnEndpoint(this ArmClient client, ResourceIdentifier id) { return(client.GetResourceClient(() => { CdnEndpoint.ValidateResourceId(id); return new CdnEndpoint(client, id); } )); }
public static CdnEndpoint GetCdnEndpoint(this ArmClient armClient, ResourceIdentifier id) { CdnEndpoint.ValidateResourceId(id); return(new CdnEndpoint(armClient, id)); }
public static CdnEndpoint GetCdnEndpoint(this ArmClient armClient, ResourceIdentifier id) { CdnEndpoint.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new CdnEndpoint(clientOptions, credential, uri, pipeline, id))); }