Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebUtility.RequiredScript(typeof(ClientMsgResources));

            this.dataGrid.DataSource = LiveChannelManager.GetAllChannels(false);
            this.dataGrid.DataBind();
        }
Ejemplo n.º 2
0
        public void ListChannelsFromConfig()
        {
            AMSChannelSqlAdapter.Instance.ClearAll();
            AMSChannelSqlAdapter.Instance.InitChannels();

            AMSChannelCollection channels = LiveChannelManager.GetAllChannels();

            Output(channels);
        }
Ejemplo n.º 3
0
        public static void SyncChannelInfo(AMSQueueItem message, CancellationToken cancellationToken)
        {
            TraceHelper.AMSTaskTraceSource.TraceEvent(TraceEventType.Verbose, 60013, "Start Sync Channel Info");

            AMSChannelCollection channels = LiveChannelManager.GetAllChannels(true);

            AMSChannelSqlAdapter.Instance.UpdateAllChannels(channels);

            TraceHelper.AMSTaskTraceSource.TraceEvent(TraceEventType.Verbose, 60013, "Complete Sync Channel Info");
        }
Ejemplo n.º 4
0
        public void UpdateAllChannelsToDB()
        {
            AMSChannelSqlAdapter.Instance.ClearAll();
            AMSChannelSqlAdapter.Instance.InitChannels();

            AMSChannelCollection channels = LiveChannelManager.GetAllChannels(true);

            AMSChannelSqlAdapter.Instance.UpdateAllChannels(channels);

            Output(channels);
        }
Ejemplo n.º 5
0
        public void UpdateAllChannelsWithExistsData()
        {
            AMSChannelSqlAdapter.Instance.ClearAll();
            AMSChannelSqlAdapter.Instance.InitChannels();

            AMSChannelCollection channels = LiveChannelManager.GetAllChannels(true);

            AMSChannelSqlAdapter.Instance.UpdateAllChannels(channels);

            AMSChannelCollection channelsLoaded = LiveChannelManager.GetAllChannels(true);

            Output(channelsLoaded);

            Assert.AreEqual(channels.Count, channelsLoaded.Count);
        }