Exemple #1
0
 public MediatorIncomingOperationDispatcher(CirceMediatorSessionManager owner)
 {
     Guard.NotNull(owner, nameof(owner));
     this.owner = owner;
 }
Exemple #2
0
        public MediatorForm(MediatorSettingsXml mediatorSettings, bool initiallyMaximized, CirceMediatorSessionManager mediatorSessionManager)
        {
            Guard.NotNull(mediatorSettings, nameof(mediatorSettings));
            Guard.NotNull(mediatorSessionManager, nameof(mediatorSessionManager));

            settings = mediatorSettings;
            this.initiallyMaximized = initiallyMaximized;
            sessionManager          = new FreshObjectReference <CirceMediatorSessionManager>(mediatorSessionManager);

            sessionManager.Value.PacketSending          += MediatorSessionManagerOnPacketSending;
            sessionManager.Value.PacketReceived         += MediatorSessionManagerOnPacketReceived;
            sessionManager.Value.ConnectionStateChanged += MediatorSessionManagerOnConnectionStateChanged;
            sessionManager.Value.StatusCodeChanged      += MediatorSessionManagerOnStatusCodeChanged;
            sessionManager.Value.Mediator = this;

            InitializeComponent();
            EnsureHandleCreated();
        }