Class ServerUtilities

Namespace
ESRI.Server.SOESupport
Assembly
ESRI.Server.SOESupport.dll

Utility class for SOEs and SOIs.

public static class ServerUtilities
Inheritance
ServerUtilities
Inherited Members

Methods

GetGroupInfo(IServerEnvironment2)

Returns list of groups for user making the request.

public static HashSet<string> GetGroupInfo(IServerEnvironment2 serverEnvironment)

Parameters

serverEnvironment IServerEnvironment2

Optional reference to IServerEnvironment2. Specify null to get current server environment.

Returns

HashSet<string>

In case of federated server, returns set of group names for current user. Returns set of roles for current user when server is not federated.

GetRoleInformation(IServerUserInfo)

Get allowed roles for the user making a request.

public static HashSet<string> GetRoleInformation(IServerUserInfo userInfo)

Parameters

userInfo IServerUserInfo

Reference to IServerUserInfo instance.

Returns

HashSet<string>

set of roles

GetServerEnvironment()

The GetServerEnvironment method obtains reference to IServerEnvironment2 for current server environment. This method does not cache any references. If you want to get cached IServerEnvironment2 reference for better performance, use SOIBase.ServerEnvironment property.

public static IServerEnvironment2 GetServerEnvironment()

Returns

IServerEnvironment2

QueryConfigurationProperties(string, string)

Retrieves service configuration properties using local admin connection.

public static IPropertySet QueryConfigurationProperties(string servicename, string typename)

Parameters

servicename string

Service name

typename string

Service type

Returns

IPropertySet