Ejemplo n.º 1
0
 /// <summary>
 /// Adds a middleware type to the servers request pipeline.
 /// </summary>
 /// <param name="app">The <see cref="ServerOptions"/> instance.</param>
 /// <param name="middleware">The middleware type.</param>
 public static void UseMiddleware(this ServerOptions app, Middleware middleware)
 {
     app.Register(middleware);
 }