Created
September 26, 2019 11:27
-
-
Save wellingtonjhn/07ca4d995516c0a305d39fe6e1991258 to your computer and use it in GitHub Desktop.
Startup Configuration
This file contains hidden or 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
| 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