Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArmCollection"/> class.
 /// </summary>
 /// <param name="parent"> The resource representing the parent resource. </param>
 protected ArmCollection(ArmResource parent)
     : base(new ClientContext(parent.ClientOptions, parent.Credential, parent.BaseUri, parent.Pipeline), parent.Id)
 {
     Parent = parent;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArmResource"/> class.
 /// </summary>
 /// <param name="parentOperations"> The resource representing the parent resource. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected ArmResource(ArmResource parentOperations, ResourceIdentifier id)
     : this(new ClientContext(parentOperations.ClientOptions, parentOperations.Credential, parentOperations.BaseUri, parentOperations.Pipeline), id)
 {
 }