Esempio n. 1
0
 internal RoleInstance(ArmResource options, RoleInstanceData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _cloudServiceRoleInstancesRestClient = new CloudServiceRoleInstancesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 2
0
        internal RoleInstance(ArmResource options, RoleInstanceData data) : base(options, data.Id)
        {
            HasData            = true;
            _data              = data;
            _clientDiagnostics = new ClientDiagnostics(ClientOptions);
            _cloudServiceRoleInstancesRestClient = new CloudServiceRoleInstancesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Esempio n. 3
0
 internal RoleInstance(ArmClient armClient, RoleInstanceData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal RoleInstanceResource(ArmClient client, RoleInstanceData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }