public MediatorIncomingOperationDispatcher(CirceMediatorSessionManager owner) { Guard.NotNull(owner, nameof(owner)); this.owner = owner; }
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(); }