private void KeepAliveTimer_Tick(object sender, EventArgs e) { if (_factory != null && _factory.State == CommunicationState.Opened) { _proxy.KeepAlive(); } }