Table of Contents
Engine.Start Method (WindowsIdentity)

Starts the engine using a specific user for Windows authentication.

Syntax
 public void Start(
   WindowsIdentity user
);

Parameters

user
The specific user the engine should use to authenticate with the server.
Remarks

The vast majority of the engine code will always run under the process user account. The user provided here is only used for Windows authentication purpose.

You should avoid the underlying user token used by user from being closed during the life time of the engine. For example, the following code would be problematic because the underlying user token is closed immediately after the engine.Start returns:

using (WindowsIdentity user = new WindowsIdentity(userToken))
{
    engine.Start(user);
}

To avoid this problem, you can keep user in a variable and only disposes it when the engine stops.

See Also