示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionResourceOperationsBase"/> class.
 /// </summary>
 /// <param name="genericOperations">Generic operations with the identifier for this extention resource</param>
 protected ExtensionResourceOperationsBase(OperationsBase genericOperations)
     : this(genericOperations.ClientOptions, genericOperations.Id)
 {
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContainerBase"/> class.
 /// </summary>
 /// <param name="parent"> The resource representing the parent resource. </param>
 protected ContainerBase(OperationsBase parent)
     : base(new ClientContext(parent.ClientOptions, parent.Credential, parent.BaseUri, parent.Pipeline), parent.Id)
 {
     Parent = parent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionResourceContainer{TOperations, TInput}"/> class.
 /// Create an ResourceContainer from an operations class or client
 /// </summary>
 /// <param name="operations">The client or operations class to create this container from</param>
 protected ExtensionResourceContainer(OperationsBase operations)
     : this(operations.ClientOptions, operations.Id)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OperationsBase"/> 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 OperationsBase(OperationsBase parentOperations, ResourceIdentifier id)
     : this(new ClientContext(parentOperations.ClientOptions, parentOperations.Credential, parentOperations.BaseUri, parentOperations.Pipeline), id)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionResourceContainer{TOperations, TInput}"/> class.
 /// </summary>
 /// <param name="operations"> The operations to copy the client options from. </param>
 /// <param name="parentId"> The resource Id of the parent resource. </param>
 protected ExtensionResourceContainer(OperationsBase operations, ResourceIdentifier parentId)
     : base(operations, parentId)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionResourceContainer{TOperations, TInput}"/> class.
 /// Create an ResourceContainer from an operations class or client
 /// </summary>
 /// <param name="operations"> The operations to copy the client options from. </param>
 protected ExtensionResourceContainer(OperationsBase operations)
     : base(operations)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionResourceOperationsBase"/> class.
 /// </summary>
 /// <param name="genericOperations"> The operations to copy the client options from. </param>
 /// <param name="id"> The identifier of the extension resource. </param>
 protected ExtensionResourceOperationsBase(OperationsBase genericOperations, ResourceIdentifier id)
     : base(genericOperations.ClientOptions, id, genericOperations.Credential, genericOperations.BaseUri)
 {
 }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceContainerBase{TOperations, TData}"/> class.
 /// </summary>
 /// <param name="parent"> The resource representing the parent resource. </param>
 protected ResourceContainerBase(OperationsBase parent)
     : base(parent)
 {
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SingletonOperationsBase"/> class.
 /// </summary>
 /// <param name="parent"></param>
 internal SingletonOperationsBase(OperationsBase parent)
     : base(new ClientContext(parent.ClientOptions, parent.Credential, parent.BaseUri, parent.Pipeline), ResourceIdentifier.RootResourceIdentifier)
 {
     Parent   = parent;
     ParentId = parent.Id;
 }