public void CreateProxy()
        {
            var ipAddress = ConfigurationManager.AppSettings["brokerIpAddress"];
            var port      = ConfigurationManager.AppSettings["brokerPort"];
            var endpoint  = ConfigurationManager.AppSettings["brokerEndpoint"];

            brokerPublishProxy              = new BrokerPublishProxy <T>();
            brokerPublishProxy.NotifyEvent += BrokerPublishProxyOnNotifyEvent;
            brokerPublishProxy.Initialize(ipAddress, port, endpoint);
        }
        public PublishManager(IBrokerPublishProxy <T> proxy, ICallbackHandler <INotifyCallback> cbHandler, Queue <Message <T> > queue)
        {
            this.brokerPublishProxy      = proxy;
            this.producerCallbackHandler = cbHandler;
            this.asyncQueue = queue;

            SendData        = true;
            NotifyStatus    = NotifyStatus.Failed;
            Waitingtime     = 500;
            notifySemaphore = new Semaphore(0, 1);
        }