Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions DecksiteAPI.csproj
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.20240412.2" PrivateAssets="All" />
</ItemGroup>
</Project>
35 changes: 35 additions & 0 deletions generated/DecksiteAPIClientBuilderExtensions.cs
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);
}
}
}
Loading