public MessageSender()
        {
            Action <IEnumerable <string> > dispatcher = (messages) => { DispatchToClient(messages); };

            //We create a singleton instance of PushMessaging
            PushMessaging.GetInstance(dispatcher);
        }
        public static PushMessaging GetInstance(Action <IEnumerable <string> > dispatcher)
        {
            if (_instance == null)
            {
                _instance = new PushMessaging(dispatcher);
            }

            return(_instance);
        }