Walter.Web.FireWall
AddSingleton(Type,Type) Method
Walter.Web.FireWall Assembly > Microsoft.Extensions.DependencyInjection Namespace > IFirewallServices Interface > AddSingleton Method : AddSingleton(Type,Type) Method
the interface
the concrete implementing type
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( 
   Type interfaceType,
   Type implementationType
)

Parameters

interfaceType
the interface
implementationType
the concrete implementing type
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