public void PushToGroups(string[] groupNames, EventName name, PushBase pushMessage)
 {
     Contract.Requires(groupNames != null);
     Contract.Requires(name != null);
     Contract.Requires(pushMessage != null);
     throw new System.NotImplementedException();
 }
Пример #2
0
        public async Task TestLoadingPushConfig()
        {
            //given
            await FHClient.Init();

            //when
            var config = PushBase.ReadConfig();

            //then
            Assert.AreEqual(new Uri("http://192.168.28.34:8001/api/v2/ag-push"), config.UnifiedPushUri);
            Assert.IsNotNull(config.Categories);
            Assert.AreEqual(2, config.Categories.Count);
            Assert.IsTrue(config.Categories.IndexOf("one") != -1);
            Assert.IsTrue(config.Categories.IndexOf("two") != -1);
        }
        public void PushToGroups(string[] groupNames, EventName name, PushBase pushMessage)
        {
            var context = GlobalHost.ConnectionManager.GetHubContext <SignalREventHub>();

            context.Clients.Groups(groupNames).eventReceived(name.ToString(), _signalRSerializer.Serialize(pushMessage));
        }