IConnectionMiddleware
interface
Namespace: Orleans.Runtime.Messaging
Interface for connection middleware.
Implementers provide IConnectionMiddleware and invoke the supplied Microsoft.AspNetCore.Connections.ConnectionDelegate to continue the pipeline.
Middleware instances can be invoked concurrently for multiple connections. Per-connection state should be stored in local variables or on the Microsoft.AspNetCore.Connections.ConnectionContext.
Register via builder.UseMiddleware() or manually with builder.Use(next => ctx => middleware.OnConnectionAsync(ctx, next)).
public interface IConnectionMiddlewareMethods
OnConnectionAsync(ConnectionContext, ConnectionDelegate)Called when a connection is established. Implementations should callnextto continue the pipeline after performing their work.
