Skip to content

Commit

Permalink
Regenerated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Junker committed Jul 1, 2019
1 parent 541f11d commit d6f2e99
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 49 deletions.
12 changes: 6 additions & 6 deletions docs/articles/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h2 id="configure-serilog-in-programcs">Configure serilog in Program.cs</h2>
{
class Program
{
static async Task Main(string[] args)
static void Main(string[] args)
{
// Configure Serilog
Log.Logger = new LoggerConfiguration()
Expand Down Expand Up @@ -140,13 +140,13 @@ <h2 id="configure-serilog-in-programcs">Configure serilog in Program.cs</h2>
var ftpServerHost = serviceProvider.GetRequiredService&lt;IFtpServerHost&gt;();

// Start the FTP server
await ftpServerHost.StartAsync();
ftpServerHost.StartAsync().Wait();

Console.WriteLine(&quot;Press ENTER/RETURN to close the test application.&quot;);
Console.ReadLine();

// Stop the FTP server
await ftpServerHost.StopAsync();
ftpServerHost.StopAsync().Wait();
}
}
}
Expand Down Expand Up @@ -221,7 +221,7 @@ <h2 id="registering-nlog-in-programcs">Registering NLog in Program.cs</h2>
{
class Program
{
static async Task Main()
static void Main(string[] args)
{
// Setup dependency injection
var services = new ServiceCollection();
Expand Down Expand Up @@ -256,13 +256,13 @@ <h2 id="registering-nlog-in-programcs">Registering NLog in Program.cs</h2>
var ftpServerHost = serviceProvider.GetRequiredService&lt;IFtpServerHost&gt;();

// Start the FTP server
await ftpServerHost.StartAsync();
ftpServerHost.StartAsync().Wait();

Console.WriteLine(&quot;Press ENTER/RETURN to close the test application.&quot;);
Console.ReadLine();

// Stop the FTP server
await ftpServerHost.StopAsync();
ftpServerHost.StopAsync().Wait();
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions docs/articles/quickstart-aspnetcore-host.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ <h1 id="adding-the-nuget-packages">Adding the NuGet packages</h1>
dotnet add package FubarDev.FtpServer.FileSystem.DotNet
</code></pre>
<h1 id="create-an-ihostedservice-implementation">Create an <code>IHostedService</code> implementation</h1>
<div class="IMPORTANT">
<h5>Important</h5>
<p>This is only required for version 3.0, because the FTP server will
provide a much tighter ASP.NET Core integration in a future release.</p>
</div>
<p>Create a new file named <code>HostedFtpService.cs</code>, which contains the following code:</p>
<pre><code class="lang-cs" name="Program.cs" title="The wrapper for the hosted FTP server">using System.Threading;
using System.Threading.Tasks;
Expand Down
5 changes: 5 additions & 0 deletions docs/articles/quickstart-generic-host.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ <h1 id="adding-the-nuget-packages">Adding the NuGet packages</h1>
dotnet add package FubarDev.FtpServer.FileSystem.DotNet
</code></pre>
<h1 id="create-an-ihostedservice-implementation">Create an <code>IHostedService</code> implementation</h1>
<div class="IMPORTANT">
<h5>Important</h5>
<p>This is only required for version 3.0, because the FTP server will
provide a much tighter ASP.NET Core integration in a future release.</p>
</div>
<p>Create a new file named <code>HostedFtpService.cs</code>, which contains the following code:</p>
<pre><code class="lang-cs" name="Program.cs" title="The wrapper for the hosted FTP server">using System.Threading;
using System.Threading.Tasks;
Expand Down
6 changes: 3 additions & 3 deletions docs/articles/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h1 id="using-the-ftp-server">Using the FTP server</h1>
{
class Program
{
static async Task Main(string[] args)
static void Main(string[] args)
{
// Setup dependency injection
var services = new ServiceCollection();
Expand All @@ -135,13 +135,13 @@ <h1 id="using-the-ftp-server">Using the FTP server</h1>
var ftpServerHost = serviceProvider.GetRequiredService&lt;IFtpServerHost&gt;();

// Start the FTP server
await ftpServerHost.StartAsync();
ftpServerHost.StartAsync().Wait();

Console.WriteLine(&quot;Press ENTER/RETURN to close the test application.&quot;);
Console.ReadLine();

// Stop the FTP server
await ftpServerHost.StopAsync();
ftpServerHost.StopAsync().Wait();
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ <h2 id="what-does-it-look-like">What does it look like?</h2>
var ftpServerHost = serviceProvider.GetRequiredService&lt;IFtpServerHost&gt;();

// Start the FTP server
await ftpServerHost.StartAsync();
ftpServerHost.StartAsync().Wait();

Console.WriteLine(&quot;Press ENTER/RETURN to close the test application.&quot;);
Console.ReadLine();

// Stop the FTP server
await ftpServerHost.StopAsync();
ftpServerHost.StopAsync().Wait();
}
</code></pre><h2 id="aspnet-core-integration">ASP.NET Core integration</h2>
<p>You can also add the FTP server to your ASP.NET Core application by
Expand Down
50 changes: 25 additions & 25 deletions docs/index.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4218,7 +4218,7 @@
"output": {
".html": {
"relative_path": "articles/logging.html",
"hash": "BowAtF2haDmW8iOXQaVL6Q=="
"hash": "g6T+xTnC4zQ3pcVmJRj3hA=="
}
},
"is_incremental": false,
Expand All @@ -4242,7 +4242,7 @@
"output": {
".html": {
"relative_path": "articles/quickstart-aspnetcore-host.html",
"hash": "2VaDlYqtkmYZJW2vdd8H6w=="
"hash": "2iWE8NWh0tyGAP+BI7IY/A=="
}
},
"is_incremental": false,
Expand All @@ -4254,7 +4254,7 @@
"output": {
".html": {
"relative_path": "articles/quickstart-generic-host.html",
"hash": "3zlYF3cpOhTHYCfHN/4ptw=="
"hash": "tEbwooyK0VzW4TQPxNoDbw=="
}
},
"is_incremental": false,
Expand All @@ -4266,7 +4266,7 @@
"output": {
".html": {
"relative_path": "articles/quickstart.html",
"hash": "zS7jAo+ki7eFYpIufjC9OQ=="
"hash": "c0kEn7+RR0cd1ygalZPlgQ=="
}
},
"is_incremental": false,
Expand Down Expand Up @@ -4302,7 +4302,7 @@
"output": {
".html": {
"relative_path": "index.html",
"hash": "SmBbnywEtsTEPtXuy9DiaA=="
"hash": "ycpfc50ZOy8j8Mf980ahIQ=="
}
},
"is_incremental": false,
Expand Down Expand Up @@ -4330,13 +4330,6 @@
"skipped_file_count": 0
},
"processors": {
"TocDocumentProcessor": {
"can_incremental": false,
"details": "Processor TocDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.",
"incrementalPhase": "build",
"total_file_count": 0,
"skipped_file_count": 0
},
"ManagedReferenceDocumentProcessor": {
"can_incremental": true,
"incrementalPhase": "build",
Expand All @@ -4347,7 +4340,14 @@
"can_incremental": true,
"incrementalPhase": "build",
"total_file_count": 16,
"skipped_file_count": 15
"skipped_file_count": 14
},
"TocDocumentProcessor": {
"can_incremental": false,
"details": "Processor TocDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.",
"incrementalPhase": "build",
"total_file_count": 0,
"skipped_file_count": 0
}
}
},
Expand Down

0 comments on commit d6f2e99

Please sign in to comment.