DefaultRTCClassAttribute Class

Definition

The DefaultRTCClassAttribute class indicates which derived class to use in place of a standard SIP class. For example, a custom class to handle SIP responses can be designated with this attribute, as long as the new response class inherits from the Response class. To use DefaultRTCClassAttribute, the custom class must inherit from one of the following classes: Request, Response, ClientTransaction, or ServerTransaction.The DefaultRTCClassAttribute class is derived from the System.Attribute class.

public ref class DefaultRTCClassAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public class DefaultRTCClassAttribute : Attribute
Public Class DefaultRTCClassAttribute
Inherits Attribute
Inheritance
DefaultRTCClassAttribute
Attributes

Examples

[DefaultRTCClassAttribute]
public class MyServerTransaction: ServerTransaction {

internal string additionalState;

public MyServerTransaction() {

// Constructor logic here
// ...
Console.WriteLine ("MyServerTransaction created.");

}

}

Constructors

DefaultRTCClassAttribute()

The DefaultRTCClassAttribute constructor creates a new instance of the DefaultRTCClassAttribute class.

Applies to