Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Created June 29, 2020 00:57
Show Gist options
  • Save smaglio81/efcc5f00da203e3ecea4bf5c34afdf9d to your computer and use it in GitHub Desktop.
Save smaglio81/efcc5f00da203e3ecea4bf5c34afdf9d to your computer and use it in GitHub Desktop.
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