Created
June 29, 2020 00:57
-
-
Save smaglio81/efcc5f00da203e3ecea4bf5c34afdf9d to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; | |
namespace YourNamespace | |
{ | |
public static class IServiceCollectionExtensions | |
{ | |
public static IServiceCollection AddYourDependencies( | |
this IServiceCollection services | |
) | |
{ | |
// add other dependencies | |
services.TryAddTransient<TrackRequestBodyAttribute>(); | |
return services; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment