Пример #1
0
 /// <summary>
 /// Ripristino dei servizi di pubblicazione
 /// </summary>
 private void RestartUnexpectedStoppedChannels()
 {
     if (PublisherEnabled)
     {
         PublisherServiceControl.RestartUnexpectedStoppedChannels();
     }
 }
Пример #2
0
 public void RestartUnexpectedStoppedChannels()
 {
     try
     {
         PublisherServiceControl.RestartUnexpectedStoppedChannels();
     }
     catch (Exception ex)
     {
         throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
     }
 }
Пример #3
0
 public void ReStartChannelById(int channelId)
 {
     try
     {
         PublisherServiceControl.ReStartChannel(channelId);
     }
     catch (Exception ex)
     {
         throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
     }
 }
Пример #4
0
 public void StartChannel(ChannelRefInfo channelRef)
 {
     try
     {
         PublisherServiceControl.StartChannel(channelRef);
     }
     catch (Exception ex)
     {
         throw DocsPaUtils.Exceptions.SoapExceptionFactory.Create(ex);
     }
 }
Пример #5
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);
            }
        }
Пример #6
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);
            }
        }
Пример #7
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);
            }
        }