Class
Static
public static class ServeServiceExtensions
Namespace: Moka.Docs.Serve
Extension methods for registering dev server services.
Methods
| Name | Description |
|---|---|
AddMokaDocsServe(IServiceCollection services) static |
Adds MokaDocs dev server services to the service collection. |
AddMokaDocsServe(IServiceCollection services)
IServiceCollection ServeServiceExtensions.AddMokaDocsServe(IServiceCollection services)
Adds MokaDocs dev server services to the service collection.
View Source
/// <summary>
/// Extension methods for registering dev server services.
/// </summary>
public static class ServeServiceExtensions
{
/// <summary>
/// Adds MokaDocs dev server services to the service collection.
/// </summary>
public static IServiceCollection AddMokaDocsServe(this IServiceCollection services)
{
services.AddSingleton<FileWatcher>();
return services;
}
}