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"); }
public void SetupRoutingContext(TestRoutingContext routingContext) { routingContexts.Add(routingContext); routingTable.Register(routingContext.RemoteIdentity.Id, routingContext); }