Table of Contents

Class MessageDispatcher

Namespace
Xabbo.Messages
Assembly
Xabbo.Common.dll

Creates a new MessageDispatcher using the specified IMessageManager.

public sealed class MessageDispatcher : IMessageDispatcher, IDisposable
Inheritance
MessageDispatcher
Implements

Constructors

MessageDispatcher(IInterceptor)

public MessageDispatcher(IInterceptor interceptor)

Parameters

interceptor IInterceptor

Properties

Interceptor

Gets the interceptor associated with this dispatcher.

public IInterceptor Interceptor { get; }

Property Value

IInterceptor

Messages

Gets the message manager associated with this dispatcher.

public IMessageManager Messages { get; }

Property Value

IMessageManager

Methods

Dispatch(Intercept)

Dispatches the specified intercept event to the registered intercept handlers.

public void Dispatch(Intercept intercept)

Parameters

intercept Intercept

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Register(InterceptGroup)

Registers a group of intercept handlers.

public IDisposable Register(InterceptGroup group)

Parameters

group InterceptGroup

Returns

IDisposable

An IDisposable that deregisters the intercept group when Dispose() is called.

Reset()

Releases all registered intercept handlers.

public void Reset()