protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);

            foreach (Subscription subscription in _Subscriptions)
            {
                _Proxy.Unsubscribe(subscription.State);
            }

            _Proxy.Close();
        }
        private void TesteCon()
        {
            var             itemsFunc = new List <Mensagem>();
            EndpointAddress address   = new EndpointAddress(serverPubSubManagerEndPont);
            Binding         binding   = new NetTcpBinding();

            PubSubClient proxy = new PubSubClient(new InstanceContext(this));

            proxy.Open();

            proxy.Subscribe("asdasd");

            proxy.Close();
        }