Class WebModuleContainerExtensions
Contains extension methods for types implementing IWebModuleContainer.
Inherited Members
Namespace: EmbedIO
Syntax
public static class WebModuleContainerExtensions
Methods
OnAny<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of
Declaration
public static TContainer OnAny<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnAny<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of baseRoute
and adds it to a module container.
Declaration
public static TContainer OnAny<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnDelete<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of DELETE
requests
and adds it to a module container.
Declaration
public static TContainer OnDelete<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnDelete<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of DELETE
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnDelete<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnGet<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of GET
requests
and adds it to a module container.
Declaration
public static TContainer OnGet<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnGet<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of GET
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnGet<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnHead<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of HEAD
requests
and adds it to a module container.
Declaration
public static TContainer OnHead<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnHead<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of HEAD
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnHead<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnOptions<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of OPTIONS
requests
and adds it to a module container.
Declaration
public static TContainer OnOptions<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnOptions<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of OPTIONS
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnOptions<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPatch<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of PATCH
requests
and adds it to a module container.
Declaration
public static TContainer OnPatch<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPatch<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of PATCH
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnPatch<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPost<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of POST
requests
and adds it to a module container.
Declaration
public static TContainer OnPost<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPost<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of POST
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnPost<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPut<TContainer>(TContainer, RequestHandlerCallback)
Creates an instance of PUT
requests
and adds it to a module container.
Declaration
public static TContainer OnPut<TContainer>(this TContainer this, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
OnPut<TContainer>(TContainer, String, RequestHandlerCallback)
Creates an instance of PUT
requests
under the specified baseRoute
and adds it to a module container.
Declaration
public static TContainer OnPut<TContainer>(this TContainer this, string baseRoute, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithAction<TContainer>(TContainer, HttpVerb, RequestHandlerCallback)
Creates an instance of "/"
and adds it to a module container.
Declaration
public static TContainer WithAction<TContainer>(this TContainer this, HttpVerb verb, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
HttpVerb | verb | The HTTP verb that will be served by |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithAction<TContainer>(TContainer, String, HttpVerb, RequestHandlerCallback)
Creates an instance of
Declaration
public static TContainer WithAction<TContainer>(this TContainer this, string baseRoute, HttpVerb verb, RequestHandlerCallback handler)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
HttpVerb | verb | The HTTP verb that will be served by |
RequestHandlerCallback | handler | The callback used to handle requests. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithCors<TContainer>(TContainer, String, String, String)
Creates an instance of
Declaration
public static TContainer WithCors<TContainer>(this TContainer this, string origins = null, string headers = null, string methods = null)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | origins | The valid origins. Default is |
String | headers | The valid headers. Default is |
String | methods | The valid method. Default is |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
WithCors<TContainer>(TContainer, String, String, String, String)
Creates an instance of
Declaration
public static TContainer WithCors<TContainer>(this TContainer this, string baseRoute, string origins, string headers, string methods)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
String | origins | The valid origins. Default is |
String | headers | The valid headers. Default is |
String | methods | The valid method. Default is |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
WithEmbeddedResources<TContainer>(TContainer, String, Assembly, String, Nullable<Action<FileModule>>)
Creates an instance of
Declaration
public static TContainer WithEmbeddedResources<TContainer>(this TContainer this, string baseRoute, Assembly assembly, string pathPrefix, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
Assembly | assembly | The assembly where served files are contained as embedded resources. |
String | pathPrefix | A string to prepend to provider-specific paths
to form the name of a manifest resource in |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithEmbeddedResources<TContainer>(TContainer, String, String, Assembly, String, Nullable<Action<FileModule>>)
Creates an instance of name
if not null.
Declaration
public static TContainer WithEmbeddedResources<TContainer>(this TContainer this, string name, string baseRoute, Assembly assembly, string pathPrefix, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
Assembly | assembly | The assembly where served files are contained as embedded resources. |
String | pathPrefix | A string to prepend to provider-specific paths
to form the name of a manifest resource in |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithIPBanning<TContainer>(TContainer, Nullable<Action<IPBanningModule>>, Nullable<IEnumerable<String>>, Int32)
Creates an instance of
Declaration
public static TContainer WithIPBanning<TContainer>(this TContainer this, Action<IPBanningModule>? configure, IEnumerable<string>? whiteList = default(IEnumerable<string>? ), int banMinutes = default(int))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
Nullable<Action<IPBanningModule>> | configure | The configure. |
Nullable<IEnumerable<String>> | whiteList | A collection of valid IPs that never will be banned. |
Int32 | banMinutes | Minutes that an IP will remain banned. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
WithIPBanning<TContainer>(TContainer, Nullable<IEnumerable<String>>, Int32)
Creates an instance of
Declaration
public static TContainer WithIPBanning<TContainer>(this TContainer this, IEnumerable<string>? whiteList = default(IEnumerable<string>? ), int banMinutes = default(int))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
Nullable<IEnumerable<String>> | whiteList | A collection of valid IPs that never will be banned. |
Int32 | banMinutes | Minutes that an IP will remain banned. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
WithModule<TContainer>(TContainer, IWebModule)
Adds the specified module
to a module container, without giving it a name.
Declaration
public static TContainer WithModule<TContainer>(this TContainer this, IWebModule module)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
IWebModule | module | The module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithModule<TContainer>(TContainer, String, IWebModule)
Adds the specified module
to a module container,
giving it the specified name
if not null.
Declaration
public static TContainer WithModule<TContainer>(this TContainer this, string name, IWebModule module)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
IWebModule | module | The module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithModule<TContainer, TWebModule>(TContainer, TWebModule, Nullable<Action<TWebModule>>)
Adds the specified module
to a module container, without giving it a name.
Declaration
public static TContainer WithModule<TContainer, TWebModule>(this TContainer this, TWebModule module, Action<TWebModule>? configure)
where TContainer : class, IWebModuleContainer where TWebModule : IWebModule
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
TWebModule | module | The module. |
Nullable<Action<TWebModule>> | configure | A callback used to configure the |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
TWebModule | The type of the |
See Also
WithModule<TContainer, TWebModule>(TContainer, String, TWebModule, Nullable<Action<TWebModule>>)
Adds the specified module
to a module container,
giving it the specified name
if not null.
Declaration
public static TContainer WithModule<TContainer, TWebModule>(this TContainer this, string name, TWebModule module, Action<TWebModule>? configure)
where TContainer : class, IWebModuleContainer where TWebModule : IWebModule
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
TWebModule | module | The module. |
Nullable<Action<TWebModule>> | configure | A callback used to configure the |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
TWebModule | The type of the |
See Also
WithRouting<TContainer>(TContainer, String, Action<RoutingModule>)
Creates an instance of
Declaration
public static TContainer WithRouting<TContainer>(this TContainer this, string baseRoute, Action<RoutingModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
Action<RoutingModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithRouting<TContainer>(TContainer, String, String, Action<RoutingModule>)
Creates an instance of name
if not null.
Declaration
public static TContainer WithRouting<TContainer>(this TContainer this, string name, string baseRoute, Action<RoutingModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
Action<RoutingModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithStaticFolder<TContainer>(TContainer, String, String, Boolean, Nullable<Action<FileModule>>)
Creates an instance of
Declaration
public static TContainer WithStaticFolder<TContainer>(this TContainer this, string baseRoute, string fileSystemPath, bool isImmutable, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
String | fileSystemPath | The path of the directory to serve. |
Boolean | isImmutable | true if files and directories in
|
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithStaticFolder<TContainer>(TContainer, String, String, String, Boolean, Nullable<Action<FileModule>>)
Creates an instance of name
if not null.
Declaration
public static TContainer WithStaticFolder<TContainer>(this TContainer this, string name, string baseRoute, string fileSystemPath, bool isImmutable, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
String | fileSystemPath | The path of the directory to serve. |
Boolean | isImmutable | true if files and directories in
|
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
Remarks
OSX doesn't support isImmutable
will be always true.
See Also
WithWebApi<TContainer>(TContainer, String, Action<WebApiModule>)
Creates an instance of
Declaration
public static TContainer WithWebApi<TContainer>(this TContainer this, string baseRoute, Action<WebApiModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
Action<WebApiModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithWebApi<TContainer>(TContainer, String, ResponseSerializerCallback, Action<WebApiModule>)
Creates an instance of
Declaration
public static TContainer WithWebApi<TContainer>(this TContainer this, string baseRoute, ResponseSerializerCallback serializer, Action<WebApiModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
ResponseSerializerCallback | serializer | A ResponseSerializerCallback used to serialize
the result of controller methods returning langword_csharp_object
or |
Action<WebApiModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithWebApi<TContainer>(TContainer, String, String, Action<WebApiModule>)
Creates an instance of name
if not null
Declaration
public static TContainer WithWebApi<TContainer>(this TContainer this, string name, string baseRoute, Action<WebApiModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
Action<WebApiModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithWebApi<TContainer>(TContainer, String, String, ResponseSerializerCallback, Action<WebApiModule>)
Creates an instance of name
if not null
Declaration
public static TContainer WithWebApi<TContainer>(this TContainer this, string name, string baseRoute, ResponseSerializerCallback serializer, Action<WebApiModule> configure)
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
ResponseSerializerCallback | serializer | A ResponseSerializerCallback used to serialize
the result of controller methods returning langword_csharp_object
or |
Action<WebApiModule> | configure | A callback used to configure the newly-created |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithZipFile<TContainer>(TContainer, String, String, Nullable<Action<FileModule>>)
Creates an instance of
Declaration
public static TContainer WithZipFile<TContainer>(this TContainer this, string baseRoute, string zipFilePath, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
String | zipFilePath | The local path of the Zip file. |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithZipFile<TContainer>(TContainer, String, String, String, Nullable<Action<FileModule>>)
Creates an instance of name
if not null.
Declaration
public static TContainer WithZipFile<TContainer>(this TContainer this, string name, string baseRoute, string zipFilePath, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
String | zipFilePath | The zip file-system path. |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithZipFileStream<TContainer>(TContainer, String, Stream, Nullable<Action<FileModule>>)
Creates an instance of
Declaration
public static TContainer WithZipFileStream<TContainer>(this TContainer this, string baseRoute, Stream zipFileStream, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | baseRoute | The base route of the module. |
Stream | zipFileStream | The zip file as stream. |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |
See Also
WithZipFileStream<TContainer>(TContainer, String, String, Stream, Nullable<Action<FileModule>>)
Creates an instance of name
if not null.
Declaration
public static TContainer WithZipFileStream<TContainer>(this TContainer this, string name, string baseRoute, Stream zipFileStream, Action<FileModule>? configure = default(Action<FileModule>? ))
where TContainer : class, IWebModuleContainer
Parameters
Type | Name | Description |
---|---|---|
TContainer | this | The |
String | name | The name. |
String | baseRoute | The base route of the module. |
Stream | zipFileStream | The zip file as stream. |
Nullable<Action<FileModule>> | configure | A callback used to configure the module. |
Returns
Type | Description |
---|---|
TContainer |
|
Type Parameters
Name | Description |
---|---|
TContainer | The type of the module container. |