| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Microsoft.Extensions.DependencyInjection; |
| | 5 | | using System; |
| | 6 | |
|
| | 7 | | namespace Microsoft.Extensions.Azure |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Azure clients builder extensions for <see cref="IServiceCollection"/>. |
| | 11 | | /// </summary> |
| | 12 | | public static class AzureClientServiceCollectionExtensions |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// Adds the <see cref="IAzureClientFactory{TClient}"/> and related services to the <see cref="IServiceCollectio |
| | 16 | | /// </summary> |
| | 17 | | /// <param name="collection">The <see cref="IServiceCollection"/>.</param> |
| | 18 | | /// <param name="configureClients">An <see cref="AzureClientFactoryBuilder"/> that can be used to configure the |
| | 19 | | public static void AddAzureClients(this IServiceCollection collection, Action<AzureClientFactoryBuilder> configu |
| | 20 | | { |
| 44 | 21 | | configureClients(new AzureClientFactoryBuilder(collection)); |
| 44 | 22 | | } |
| | 23 | | } |
| | 24 | | } |