This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.MkDocs.
Summary
Run the builtin development server in working directory async.
- Assembly
- Cake
.MkDocs .dll - Namespace
- Cake
.MkDocs .Serve - Containing Type
- Mk
Docs Serve Async Runner
Syntax
public Task ServeAsync(MkDocsServeAsyncSettings settings)
Examples
var tokenSource = new CancellationTokenSource();
var task = runner.Serve(new MkDocsServeSettings() { Token = tokenSource.Token });
// Do something...
tokenSource.Cancel();
try
{
task.Wait();
}
catch (OperationCanceledException)
{
// Handle excecption
}
Parameters
Name | Type | Description |
---|---|---|
settings | Mk |
The settings. |
Return Value
Type | Description |
---|---|
Task | Long running task. |