public static void AddGraphAPIProvider(this IServiceCollection services, IConfiguration configuration) { GraphAPIProvider graphPrvdr = new GraphAPIProvider(configuration); services.AddInstance <GraphAPIProvider>(graphPrvdr); services.AddTransient <IGraphAPIProvider, GraphAPIProvider> (); }
public static void AddGraphAPIProvider(this IServiceCollection services, IConfiguration configuration) { GraphAPIProvider graphPrvdr = new GraphAPIProvider(configuration); services.AddInstance<GraphAPIProvider>(graphPrvdr); services.AddTransient<IGraphAPIProvider, GraphAPIProvider> (); }