Class Interception
public sealed record Interception : IAsyncDisposable, IEquatable<Interception>
- Inheritance
-
Interception
- Implements
- Inherited Members
Constructors
Interception(BiDi, Intercept)
public Interception(BiDi BiDi, Intercept Intercept)
Parameters
Properties
BiDi
public BiDi BiDi { get; init; }
Property Value
Intercept
public Intercept Intercept { get; init; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
OnAuthRequiredAsync(Func<AuthRequiredEventArgs, Task>, SubscriptionOptions?)
public Task OnAuthRequiredAsync(Func<AuthRequiredEventArgs, Task> handler, SubscriptionOptions? options = null)
Parameters
handlerFunc<AuthRequiredEventArgs, Task>optionsSubscriptionOptions
Returns
OnBeforeRequestSentAsync(Func<BeforeRequestSentEventArgs, Task>, SubscriptionOptions?)
public Task OnBeforeRequestSentAsync(Func<BeforeRequestSentEventArgs, Task> handler, SubscriptionOptions? options = null)
Parameters
handlerFunc<BeforeRequestSentEventArgs, Task>optionsSubscriptionOptions
Returns
OnResponseStartedAsync(Func<ResponseStartedEventArgs, Task>, SubscriptionOptions?)
public Task OnResponseStartedAsync(Func<ResponseStartedEventArgs, Task> handler, SubscriptionOptions? options = null)
Parameters
handlerFunc<ResponseStartedEventArgs, Task>optionsSubscriptionOptions
Returns
RemoveAsync()
public Task RemoveAsync()