Skip to content

Instantly share code, notes, and snippets.

@wellingtonjhn
Created September 26, 2019 11:27
Show Gist options
  • Select an option

  • Save wellingtonjhn/07ca4d995516c0a305d39fe6e1991258 to your computer and use it in GitHub Desktop.

Select an option

Save wellingtonjhn/07ca4d995516c0a305d39fe6e1991258 to your computer and use it in GitHub Desktop.
Startup Configuration
public class Startup
{
// ...
public void ConfigureServices(IServiceCollection services)
{
// ...
services.AddScoped<NotificationContext>();
services.AddMvc(options => options.Filters.Add<NotificationFilter>())
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment