ServerFactoryLoader.Load Method
Executes the loader, searching for the server factory by name. Acceptable inputs: - null, empty, etc.. Scan for an assembly containing the type [Assembly.Name].ServerFactory. - Assembly.Name. Look for type Assembly.Name.ServerFactory in the assembly Assembly.Name. - Assembly.Name.FactoryName. Look for type Assembly.Name.FactoryName in the assembly Assembly.Name.
Namespace: Microsoft.Owin.Hosting.ServerFactory
Assembly: Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)
Syntax
'Declaration
Public Overridable Function Load ( _
serverName As String _
) As IServerFactoryAdapter
'Usage
Dim instance As ServerFactoryLoader
Dim serverName As String
Dim returnValue As IServerFactoryAdapter
returnValue = instance.Load(serverName)
public virtual IServerFactoryAdapter Load(
string serverName
)
public:
virtual IServerFactoryAdapter^ Load(
String^ serverName
)
abstract Load :
serverName:string -> IServerFactoryAdapter
override Load :
serverName:string -> IServerFactoryAdapter
public function Load(
serverName : String
) : IServerFactoryAdapter
Parameters
- serverName
Type: System.String
The name of the assembly and type of the server factory.
Return Value
Type: Microsoft.Owin.Hosting.ServerFactory.IServerFactoryAdapter
The server factory object being loaded.
Implements
IServerFactoryLoader.Load(String)