Table of Contents

Interface IMessageHandler

Namespace
Xabbo.Messages
Assembly
Xabbo.Common.dll

Represents a message handler that can be attached to an interceptor.

public interface IMessageHandler

Remarks

The source generator will implement this interface on partial classes marked with InterceptAttribute or ExtensionAttribute. Intercept handlers will be generated for methods marked with InterceptAttribute, InterceptInAttribute or InterceptOutAttribute.

Methods

Attach(IInterceptor)

Attaches the handler to the specified interceptor.

IDisposable Attach(IInterceptor interceptor)

Parameters

interceptor IInterceptor

Returns

IDisposable

An IDisposable that detaches the handler when Dispose() is called.