Example #1
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;
 }
Example #2
0
 /// <summary>
 /// Creates a ClientContext for the specified connection
 /// </summary>
 public static ClientContext CreateClientEndpointContext(FrontEndConnection connection)
 {
     PacketTransmitter packetTransmitter = new PacketTransmitter(connection);
     ClientContext ctx = new ClientContext(connection, packetTransmitter);
     packetTransmitter.StartTransmitting();
     return ctx;
 }