@@ -50,7 +50,57 @@ get Ok<Person> | NotFound<Error> (query string name)
5050```
5151![ Express.NET Swagger Support] ( https://raw.githubusercontent.com/Vake93/Express.NET/main/doc/images/xps-swagger.gif )
5252
53- ## Still this is work in progress. Things Todo
53+ # Consume NuGet Packages
54+ Bring in your favorite NuGet packgers.
55+
56+ Here is an example using ``` StackExchange.Redis ```
57+
58+ Project File:
59+ ```
60+ {
61+ "packageReferences": [
62+ {
63+ "name": "StackExchange.Redis",
64+ "version": "2.2.4"
65+ }
66+ ],
67+ "libraryReferences": [],
68+ "generateSwaggerDoc": true,
69+ "addSwaggerUI": true
70+ }
71+ ```
72+ Service File:
73+ ```
74+ using System;
75+ using StackExchange.Redis;
76+
77+ service NuGetDemoService;
78+
79+ csharp
80+ {
81+ private static ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost:6379");
82+ }
83+
84+ get "ping" Ok<TimeSpan> ()
85+ {
86+ var db = redis.GetDatabase();
87+ var pong = await db.PingAsync();
88+ return Ok(pong);
89+ }
90+ ```
91+ ![ Express.NET NuGet Support] ( https://raw.githubusercontent.com/Vake93/Express.NET/main/doc/images/xps-nuget.gif )
92+
93+ # Keep your flow with watch Command
94+ With watch command Express.NET will re-build your project as and when the changers are saved.
95+
96+ Just run your project as
97+ ```
98+ xps watch
99+ ```
100+
101+ ![ Express.NET watch] ( https://raw.githubusercontent.com/Vake93/Express.NET/main/doc/images/xps-watch.gif )
102+
103+ # Still this is work in progress. Things Todo
54104
55105- [ ] Better diagnostic messages.
56106- [ ] Write documentation on DSL syntax.
0 commit comments