private ResourceManager(RestClient restClient, string subscriptionId) :
     base(null, subscriptionId, new ResourceManagementClient(restClient)
 {
     SubscriptionId = subscriptionId
 })
 {
     featureClient = new FeatureClient(restClient);
     featureClient.SubscriptionId = subscriptionId;
     ResourceManager = this;
 }
 private ResourceManager(RestClient restClient, string subscriptionId) :
     base(null, subscriptionId, ResourceManagementClient.NewInstance(restClient))
 {
     Inner.SubscriptionId         = subscriptionId;
     featureClient                = FeatureClient.NewInstance(restClient);
     featureClient.SubscriptionId = subscriptionId;
     policyClient = PolicyClient.NewInstance(restClient);
     policyClient.SubscriptionId = subscriptionId;
     ResourceManager             = this;
 }
예제 #3
0
 private ResourceManager(RestClient restClient, string subscriptionId) :
     base(null, subscriptionId, new ResourceManagementClient(new Uri(restClient.BaseUri),
                                                             restClient.Credentials,
                                                             restClient.RootHttpHandler,
                                                             restClient.Handlers.ToArray())
 {
     SubscriptionId = subscriptionId
 })
 {
     featureClient = new FeatureClient(new Uri(restClient.BaseUri),
                                       restClient.Credentials,
                                       restClient.RootHttpHandler,
                                       restClient.Handlers.ToArray());
     featureClient.SubscriptionId = subscriptionId;
     ResourceManager = this;
 }