internal SecurityContext( SecurityCredentials credentials, Int64 contextHandle, Int64 contextExpiry, SecurityContextType contextType, SecurityContextState contextState) { // parameters validation if (credentials == null) throw new ArgumentNullException("credentials"); if (contextHandle == 0) throw new ArgumentNullException("contextHandle"); _credentials = credentials; _contextHandle = contextHandle; _contextExpiry = contextExpiry; _contextType = contextType; _contextState = contextState; }
internal SecurityContext( SecurityCredentials credentials, Int64 contextHandle, Int64 contextExpiry, SecurityContextType contextType, SecurityContextState contextState) { // parameters validation if (credentials == null) { throw new ArgumentNullException("credentials"); } if (contextHandle == 0) { throw new ArgumentNullException("contextHandle"); } _credentials = credentials; _contextHandle = contextHandle; _contextExpiry = contextExpiry; _contextType = contextType; _contextState = contextState; }
public SecurityContext(SecurityContextType value) { this.Value = value; }