Horje
add dynamic value in startup file in .net core api Code Example
add dynamic value in startup file in .net core api
public void ConfigureServices(IServiceCollection services)
{
     Action<MDUOptions> mduOptions = (opt =>
     {
          opt.CompanyCode = "aaaa";
     });
     services.Configure(mduOptions);
     services.AddSingleton(resolver => resolver.GetRequiredService<IOptions<MDUOptions>>().Value);
     services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}




Csharp

Related
good food Code Example good food Code Example
unity subtract float every second Code Example unity subtract float every second Code Example
save checkbox value to database c# Code Example save checkbox value to database c# Code Example
my custom file watcher Code Example my custom file watcher Code Example
C# predict rotation by an angular velocity Code Example C# predict rotation by an angular velocity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10