src/packages/EmbedIO/WebModuleContainerExtensions-Files.cs
/// <summary>
/// Creates an instance of <see cref="ZipFileProvider"/> using a zip file as stream, uses it to initialize
/// a <seealso cref="FileModule"/>, and adds the latter to a module container.
/// </summary>
/// <typeparam name="TContainer">The type of the module container.</typeparam>
/// <param name="this">The <typeparamref name="TContainer"/> on which this method is called.</param>
/// <param name="baseRoute">The base route of the module.</param>
/// <param name="zipFileStream">The zip file as stream.</param>
/// <param name="configure">A callback used to configure the module.</param>
/// <returns><paramref name="this"/> with a <see cref="FileModule"/> added.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <seealso cref="FileModule"/>
/// <seealso cref="ZipFileProvider"/>
/// <seealso cref="IWebModuleContainer.Modules"/>
/// <seealso cref="IComponentCollection{T}.Add"/>
Creates an instance of  using a zip file as stream, uses it to initialize
a , and adds the latter to a module container.
Creates an instance of using a zip file as stream uses it to initialize a and adds the latter to a module container .
public static TContainer WithZipFileStream<TContainer>(
            this TContainer @this,
            string baseRoute,
            Stream zipFileStream,
            Action<FileModule>? configure = null)
            where TContainer : class, IWebModuleContainer
            => WithZipFileStream(@this, null, baseRoute, zipFileStream, configure);
public static TContainer WithZipFileStream < TContainer > ( this TContainer @this , string baseRoute , Stream zipFileStream , Action < FileModule > ? configure = null ) where TContainer : class , IWebModuleContainer => WithZipFileStream ( @this , null , baseRoute , zipFileStream , configure ) ;
Creates an instance of  using a zip file as stream, uses it to initialize
a , and adds the latter to a module container.
Creates an instance of using a zip file as stream uses it to initialize a and adds the latter to a module container .
with a  added.
with a added .
None
TContainer
this
baseRoute
string
The base route of the module.
The base route of the module .
zipFileStream
Stream
The zip file as stream.
The zip file as stream .
configure
Action<FileModule>?
A callback used to configure the module.
A callback used to configure the module .
this
The  on which this method is called.
The on which this method is called .
typeparam
The type of the module container.
The type of the module container .
seealso
None
seealso
None
seealso
None
seealso
None