Пример #1
0
 /// <summary>
 /// Create a client context from a Token.
 /// </summary>
 /// <param name="token">The token to create the context from.</param>
 /// <param name="throw_on_error">True to throw on error.</param>
 /// <returns>The created client context.</returns>
 public NtResult <AuthZContext> CreateContext(NtToken token, bool throw_on_error)
 {
     return(AuthZContext.Create(_handle, token, throw_on_error));
 }
Пример #2
0
 /// <summary>
 /// Create a client context from a Token.
 /// </summary>
 /// <param name="sid">The sid to create the context from.</param>
 /// <param name="flags">Flags for intialization.</param>
 /// <param name="throw_on_error">True to throw on error.</param>
 /// <returns>The created client context.</returns>
 public NtResult <AuthZContext> CreateContext(Sid sid, AuthZContextInitializeSidFlags flags, bool throw_on_error)
 {
     return(AuthZContext.Create(_handle, flags, sid, throw_on_error));
 }