Skip to content

Instantly share code, notes, and snippets.

View ferryferry's full-sized avatar
🐔
Request de poulet

Ferry Jongmans ferryferry

🐔
Request de poulet
  • Aptean
  • Rucphen, Netherlands
  • 20:25 (UTC +02:00)
  • X @fjongmans
View GitHub Profile
@seclerp
seclerp / ExampleInterceptors.cs
Last active July 7, 2022 16:33
Custom middleware-like Chain Of Responsibility implementation
namespace Interceptors;
public class FirstInterceptor : IInterceptor
{
public async Task InvokeAsync(PipelineStep next, EventContext ctx)
{
Console.WriteLine($"Hello from interceptor {nameof(FirstInterceptor)}");
await next.Invoke(ctx);
}