Skip to content

Commit

Permalink
update to allow external access to a constructor that doesn't have an…
Browse files Browse the repository at this point in the history
… operation base (#21395)

* Add lambda wrapper in armclient for getting container objects in other RPs

* update xml comments

* update to add externally accesible constructor that doesn't have an operation base like armclient as the parent
  • Loading branch information
m-nash authored May 27, 2021
1 parent d936847 commit d022cea
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using Azure.Core;
using Azure.Core.Pipeline;

namespace Azure.ResourceManager.Core
{
/// <summary>
Expand Down Expand Up @@ -34,6 +38,18 @@ internal ContainerBase(ClientContext clientContext, ResourceIdentifier id)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ContainerBase"/> class.
/// </summary>
/// <param name="options"> The options to use. </param>
/// <param name="credential"> The credential to use. </param>
/// <param name="baseUri"> The base uri to use. </param>
/// <param name="pipeline"> The http pipeline policy to use. </param>
protected ContainerBase(ArmClientOptions options, TokenCredential credential, Uri baseUri, HttpPipeline pipeline)
: this(new ClientContext(options, credential, baseUri, pipeline))
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ContainerBase"/> class.
/// </summary>
Expand Down

0 comments on commit d022cea

Please sign in to comment.