Table of Contents

Class InterceptAttribute

Namespace
Xabbo
Assembly
Xabbo.Common.dll

Indicates that a class or method intercepts messages for the specified clients. If no clients are specified, then all clients are targeted.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
public sealed class InterceptAttribute : Attribute
Inheritance
InterceptAttribute
Inherited Members

Remarks

When placed on a method, and an InterceptInAttribute or InterceptOutAttribute is also present, this attribute specifies which clients the intercept handler should target. If no directional intercept attributes are specified, then the method is considered to be a message handler, the attribute must not specify any client types, and the method must have one of the following function signatures:

Constructors

InterceptAttribute()

Constructs a new intercept attribute targeting all clients.

public InterceptAttribute()

InterceptAttribute(ClientType)

Indicates that a class or method intercepts messages for the specified clients. If no clients are specified, then all clients are targeted.

public InterceptAttribute(ClientType clients)

Parameters

clients ClientType

Remarks

When placed on a method, and an InterceptInAttribute or InterceptOutAttribute is also present, this attribute specifies which clients the intercept handler should target. If no directional intercept attributes are specified, then the method is considered to be a message handler, the attribute must not specify any client types, and the method must have one of the following function signatures:

Properties

Clients

The target clients on which to intercept packets.

public ClientType Clients { get; }

Property Value

ClientType