protected override void Clone(ServiceClient <ManagedCacheClient> client)
        {
            base.Clone(client);
            ManagedCacheClient management = client as ManagedCacheClient;

            if (management != null)
            {
                management._credentials = Credentials;
                management._baseUri     = BaseUri;
                management.Credentials.InitializeServiceClient(management);
            }
        }
Exemplo n.º 2
0
 public PSCacheClient(AzureSubscription currentSubscription)
 {
     client = AzureSession.ClientFactory.CreateClient<ManagedCacheClient>(currentSubscription, AzureEnvironment.Endpoint.ServiceManagement);
 }
Exemplo n.º 3
0
 public PSCacheClient(WindowsAzureSubscription currentSubscription)
 {
     client = currentSubscription.CreateClient<ManagedCacheClient>();
 }