예제 #1
0
        public MessageSender()
        {
            Action <IEnumerable <string> > dispatcher = (messages) => { DispatchToClient(messages); };

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

            return _instance;
        }
예제 #3
0
        public static PushMessaging GetInstance(Action <IEnumerable <string> > dispatcher)
        {
            if (_instance == null)
            {
                _instance = new PushMessaging(dispatcher);
            }

            return(_instance);
        }