// Communication Subsystem constructor public CommSubsystem(ConversationFactory factory, int minPort, int maxPort) { _conversationFactory = factory; _conversationFactory.ManagingSubsystem = this; _minPort = minPort; _maxPort = maxPort; stillRunning = true; Conversations = new ConversationDictionary(); }
protected virtual void StartCommSubsystem(ConversationFactory conversationFactory, int minPort, int maxPort, int TCPPort = -1) { MyCommSubsystem = new CommSubsystem(conversationFactory, minPort, maxPort); MyCommSubsystem.TCPPort = TCPPort; MyCommSubsystem.Initialize(); }