public EventQueueProcessor(EventQueue eventQueueIncoming, EventQueueCollection eventQueueOutgoing, TimeoutManager timeoutManager)
        {
            this.eventQueueIncoming = eventQueueIncoming;
            this.eventQueueOutgoing = eventQueueOutgoing;

            this.messageBoxOutgoingflags = new Dictionary<string, bool>();
            this.messageBoxIncomingFlag = false;

            this.timeoutManager = timeoutManager;
        }
        public DiscoveryManager(AddressBook addressBook, EventQueueCollection eventQueueOutgoing)
        {
            this.eventQueueOutgoing = eventQueueOutgoing;
            this.addressBook = addressBook;

            this.addressBook.peerDiscoveredEvent += this.OnDeviceDiscovered;
            this.addressBook.peerDisconnectedEvent += this.OnDeviceDisconnected;

            this.serviceManager = new ServiceManager();
            this.futureManager = new FutureManager();
            this.networkManager = new NetworkManager();

            this.serviceManager.importedServiceManager.ServiceDiscoveredEvent += this.OnServiceDiscovered;
            this.serviceManager.importedServiceManager.ServiceDisconnectedEvent += this.OnServiceDisconnected;
            this.serviceManager.importedServiceManager.ServiceReconnectedEvent += this.OnServiceReconnected;
        }