The DefaultRTCClassAttributeclass 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 DefaultRTCClassAttributeclass is derived from the System.Attributeclass.

Inheritance hierarchy

System . . :: . . Object
   System . . :: . . Attribute
     Microsoft.Rtc.Sip . . :: . . DefaultRTCClassAttribute

Namespace:  Microsoft.Rtc.Sip
Assembly:  ServerAgent(in ServerAgent.dll)

Syntax

Visual Basic (declaration)
<
AttributeUsageAttribute(
AttributeTargets.Class)> _
Public 
Class 
DefaultRTCClassAttribute _
	
Inherits 
Attribute
Visual Basic (usage)
Dim 
instance 
As 
DefaultRTCClassAttribute
C#
[
AttributeUsageAttribute(
AttributeTargets.Class)]
public 
class 
DefaultRTCClassAttribute : 
Attribute

Examples

  Copy codeCopy code
[DefaultRTCClassAttribute]
public class MyServerTransaction: ServerTransaction {

internal string additionalState;

public MyServerTransaction() {

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

}

}

Thread safety

Any public static( Sharedin Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also