Пример #1
0
        internal async Task ProcessSessionAsync(IConnectedSocket socket)
        {
            logger.Info("Entering Host Phase SessionThreadEntryPoint");
            HostSession session = null;

            try {
                session = hostSessionFactory.Create(hostContext, socket);
                sessions.Add(session);
                await session.StartAndAwaitShutdown();
            } catch (SocketException e) {
                logger.Warn(e);
            } catch (Exception e) {
                logger.Error(e);
            } finally {
                sessions.Remove(session);
            }
            logger.Info("Exiting Host Phase SessionThreadEntryPoint");
        }
Пример #2
0
 public void SetupRoutingContext(TestRoutingContext routingContext)
 {
     routingContexts.Add(routingContext);
     routingTable.Register(routingContext.RemoteIdentity.Id, routingContext);
 }