Esempio n. 1
0
        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 ();
        }
Esempio n. 2
0
        protected override void OnStart(string[] args)
        {
            base.OnStart (args);

            SetupLogging ();

            _accessControlList = new DotNetCfgAccessControlList ();

            SetupTPMContexts ();
            StartConnections ();
        }
Esempio n. 3
0
 /// <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;
 }