Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How can I register a service based on whether Development or Production?

$
0
0

In Startup.cs I can check if the app in development or product in the following method:

public void Configure(IApplicationBuilder app, IWebHostEnvironment env){    if (env.IsDevelopment())    { }    else    { }}

How can I do the same check in the ConfigureServices method?


Viewing all articles
Browse latest Browse all 4839

Trending Articles