Tuesday, March 31, 2020

In Autofac's IoC, modules organize code to be resolved at a later time.

meh

.AddTransient (in C# and .NET Core) while handing in a variable

Per this, you could have:

services.AddTransient(x => new Yin("yang"));

 
 

...instead of...

services.AddTransient<Yin>();

 
 

And...

services.AddTransient<IYin>(x => new Yin("yang"));

 
 

...instead of...

services.AddTransient<IYin, Yin>();

 
 

I do not yet know what is going on with IOperationSingletonInstance here. I could not figure it out.

In .NET Core's IoC you may use .AddScoped and .AddSingleton as you might .AddTransient.

Singleton is always the same and transient frequently changing. Scoped is the same per request per this which I take to mean session of web site browsing.

#pragma hack to disable missing code comment alert in C#

#pragma warning disable CS1591
public static void Go()
#pragma warning restore CS1591

In Global.asax.cs in a .NET Framework application, you may hand static methods into GlobalConfiguration.Configure as the single inbound property at the Application_Start method.

The static methods you call elsewhere in code will each take an HttpConfiguration as the single inbound property.

"ProGet supports Docker containers and third-party packages like NuGet, npm, PowerShell, and Chocolatey" per its web presence.

It is made by Inedo.