-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<LangVersion>11.0</LangVersion> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Nullable>annotations</Nullable> | ||
<IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode> | ||
<DefineConstants>$(DefineConstants);EXPERIMENTAL</DefineConstants> | ||
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json</RestoreAdditionalProjectSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Azure.Core" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20240309.1" PrivateAssets="All" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using Azure.Core.Extensions; | ||
using DecksiteAPI; | ||
|
||
namespace Microsoft.Extensions.Azure | ||
{ | ||
/// <summary> Extension methods to add <see cref="GetClient"/> to client builder. </summary> | ||
public static partial class DecksiteAPIClientBuilderExtensions | ||
{ | ||
/// <summary> Registers a <see cref="GetClient"/> instance. </summary> | ||
/// <param name="builder"> The builder to register with. </param> | ||
/// <param name="endpoint"> server parameter. </param> | ||
public static IAzureClientBuilder<GetClient, GetClientOptions> AddGetClient<TBuilder>(this TBuilder builder, Uri endpoint) | ||
where TBuilder : IAzureClientFactoryBuilder | ||
{ | ||
return builder.RegisterClientFactory<GetClient, GetClientOptions>((options) => new GetClient(endpoint, options)); | ||
} | ||
|
||
/// <summary> Registers a <see cref="GetClient"/> instance. </summary> | ||
/// <param name="builder"> The builder to register with. </param> | ||
/// <param name="configuration"> The configuration values. </param> | ||
public static IAzureClientBuilder<GetClient, GetClientOptions> AddGetClient<TBuilder, TConfiguration>(this TBuilder builder, TConfiguration configuration) | ||
where TBuilder : IAzureClientFactoryBuilderWithConfiguration<TConfiguration> | ||
{ | ||
return builder.RegisterClientFactory<GetClient, GetClientOptions>(configuration); | ||
} | ||
} | ||
} |
Oops, something went wrong.