Пример #1
0
        public ChannelRefInfo GetChannel(int idChannel)
        {
            try
            {
                ChannelRefInfo channel = DataAccess.PublisherDataAdapter.GetChannel(idChannel);

                PublisherServiceControl.RefreshChannelState(channel);

                return(channel);
            }
            catch (Exception ex)
            {
                throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
            }
        }
Пример #2
0
        public ChannelRefInfo SaveChannel(ChannelRefInfo channelRef)
        {
            try
            {
                channelRef = DataAccess.PublisherDataAdapter.SaveChannel(channelRef);

                PublisherServiceControl.RefreshChannelState(channelRef);

                return(channelRef);
            }
            catch (Exception ex)
            {
                throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
            }
        }
Пример #3
0
        public ChannelRefInfo[] GetChannelList()
        {
            try
            {
                ChannelRefInfo[] list = DataAccess.PublisherDataAdapter.GetChannelList();

                foreach (ChannelRefInfo channel in list)
                {
                    PublisherServiceControl.RefreshChannelState(channel);
                }

                return(list);
            }
            catch (Exception ex)
            {
                throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
            }
        }