Skip to content

Commit

Permalink
Fix engine references (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat authored Nov 14, 2024
1 parent 0109b00 commit ffeef7c
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion content/documentation/content/concerns/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a custom HTTP header to every response generated by the server:
using GenHTTP.Api.Content;
using GenHTTP.Api.Protocol;

using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.IO;
using GenHTTP.Modules.Layouting;
Expand Down
4 changes: 2 additions & 2 deletions content/documentation/content/concerns/inspection.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ request and will respond with a detailed summary of how the received request loo
was generated by the server.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Inspection;
using GenHTTP.Modules.Layouting;
Expand Down Expand Up @@ -48,7 +48,7 @@ instead:
```csharp
using GenHTTP.Api.Protocol;

using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Conversion;
using GenHTTP.Modules.Conversion.Serializers.Json;
Expand Down
6 changes: 3 additions & 3 deletions content/documentation/content/concerns/open-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This concern dynamically generates and serves an [Open API v3 specification](htt
[NSwag](https://github.com/RicoSuter/NSwag) for all detected API endpoints.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Functional;
using GenHTTP.Modules.OpenApi;
Expand Down Expand Up @@ -59,7 +59,7 @@ To customize the generated specification you can pass a function that will be ex
just before the document is serialized and sent to the requesting client.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Functional;
using GenHTTP.Modules.OpenApi;
Expand Down Expand Up @@ -108,7 +108,7 @@ will describe the operation.

```csharp
using GenHTTP.Api.Content;
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;
using GenHTTP.Modules.Basics;
using GenHTTP.Modules.Basics.Providers;
using GenHTTP.Modules.Layouting;
Expand Down
2 changes: 1 addition & 1 deletion content/documentation/content/frameworks/functional.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To host an API using this framework you can create an `Inline` handler and add
your operations as needed.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Functional;
using GenHTTP.Modules.Layouting;
Expand Down
2 changes: 1 addition & 1 deletion content/documentation/content/frameworks/webservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The following example shows how to define and host a service that can be used
to manage an entity (books in this case).

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Api.Protocol;

Expand Down
6 changes: 3 additions & 3 deletions content/documentation/content/frameworks/websockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The following example hosts a simple console application that provides a websock
to connected clients:

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;
using GenHTTP.Modules.Practices;
using GenHTTP.Modules.Websockets;

Expand Down Expand Up @@ -46,7 +46,7 @@ var host = Host.Create()
.Development()
.Console();

host.Start();
await host.StartAsync();

var input = Console.ReadLine();

Expand All @@ -63,7 +63,7 @@ while (input != "exit")
input = Console.ReadLine();
}

host.Stop();
await host.StopAsync();
```

After starting the server, you can open the following HTML page (provided by the Fleck project as a sample)
Expand Down
2 changes: 1 addition & 1 deletion content/documentation/content/handlers/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ a custom handler instance. The following example will generate a simple text res
using GenHTTP.Api.Content;
using GenHTTP.Api.Protocol;

using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.IO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The following example will host a SSE endpoint that will stream
randomly generated updates on stock prices to a client until it disconnects.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.IO;
using GenHTTP.Modules.Layouting;
Expand Down
2 changes: 1 addition & 1 deletion content/documentation/tutorials/two-line-webservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ entries to your project file.
In the same directory, create a file named `Program.cs` and add the following content.

```csharp
using GenHTTP.Engine;
using GenHTTP.Engine.Internal;

using GenHTTP.Modules.Functional;
using GenHTTP.Modules.Practices;
Expand Down

0 comments on commit ffeef7c

Please sign in to comment.