Walter.Web.FireWall
AddSingleton<T>(T) Method
Walter.Web.FireWall Assembly > Microsoft.Extensions.DependencyInjection Namespace > IFirewallServices Interface > AddSingleton Method : AddSingleton<T>(T) Method
The type to create
the instance to use
Adds a singleton service of the type specified in TService with an instance specified in implementationInstance to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.
Syntax
void AddSingleton<T>( 
   T instance
)
where T: class

Parameters

instance
the instance to use

Type Parameters

T
The type to create
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IFirewallServices Interface
IFirewallServices Members
Overload List