Partager via


ServerAgent.ServerAgent (ApplicationManifest)

ServerAgent.ServerAgent (ApplicationManifest)

The ServerAgent constructor creates an instance of a ServerAgent object with the specified application manifest.

Syntax

[C#]

public ServerAgent(
  ApplicationManifest manifest
);

Syntax

[Visual Basic .NET]

Public Sub New( _
  ByVal manifest As ApplicationManifest _
)

Parameters

Remarks

Note

This constructor should be used by applications that are only using a SIP Processing Language (MSPL) script in the application manifest for message processing. No calls to Dispatch should be present in the message filter script.

In this case, the application serves solely to register the script with Lync Server 2010. No message processing is performed within the managed code application.

Two common exceptions that should be caught when calling this constructor are:

  • ServerNotFoundException: Lync Server 2010 is not running.

  • UnauthorizedException: A connection to Lync Server 2010 could not be initialized. This is because of the current security context (user must be a member of the "Lync Server Users" local group), because the application has not been configured to run on this server (through WMI), or because an application with the same URI (as specified in the application manifest) is already running.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

SIP Application Manifests (Lync Server 2010 SDK)

Creating a Managed SIP Application for Lync Server

ServerAgent