Esempio n. 1
0
        public MessageSender()
        {
            Action <IEnumerable <string> > dispatcher = (messages) => { DispatchToClient(messages); };

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

            return _instance;
        }
Esempio n. 3
0
        public static PushMessaging GetInstance(Action <IEnumerable <string> > dispatcher)
        {
            if (_instance == null)
            {
                _instance = new PushMessaging(dispatcher);
            }

            return(_instance);
        }