public ServerContext(FrontEndConnection connection, PacketTransmitter packetTransmitter, IConnectionsConfiguration connectionConfig, AccessControlList acl, IDictionary<string, TPMContext> tpmContexts) : base(connection, packetTransmitter) { _accessControlList = acl; _tpmContexts = tpmContexts; RegisterSubsystem (new DebugSubsystem (this, connectionConfig)); RegisterSubsystem (new AuthenticationSubsystem (this, connectionConfig)); RegisterSubsystem (new TPMSubsystem (this, connectionConfig)); _configured = true; _configuredEvent.Set (); }
protected override void OnStart(string[] args) { base.OnStart (args); SetupLogging (); _accessControlList = new DotNetCfgAccessControlList (); SetupTPMContexts (); StartConnections (); }
/// <summary> /// Creates a ServerContext for the specified connection /// </summary> public static ServerContext CreateServerEndpointContext(FrontEndConnection connection, IConnectionsConfiguration connectionConfig, AccessControlList acl, IDictionary<string, TPMContext> tpmContexts) { PacketTransmitter packetTransmitter = new PacketTransmitter(connection); ServerContext ctx = new ServerContext(connection, packetTransmitter, connectionConfig, acl, tpmContexts); packetTransmitter.StartTransmitting(); return ctx; }