/// <summary>
 /// Handles service proxy creation error event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">Event data.</param>
 protected virtual void OnServiceProxyCreationError(object sender,
     ServiceProxyCreationErrorEventArgs e)
 {
     _logger.Log(_formatter.Format(e));
 }
Esempio n. 2
0
 /// <summary>
 /// Handles service proxy creation error event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">Event data.</param>
 protected virtual void OnServiceProxyCreationError(object sender,
     ServiceProxyCreationErrorEventArgs e)
 {
     AddLogMessage(_formatter.Format(e));
 }
Esempio n. 3
0
        /// <summary>
        /// Handles service proxy creation error event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">Event data.</param>
        /// <exception cref="ArgumentNullException">e is null.</exception>
        protected override void OnServiceProxyCreationError(object sender,
            ServiceProxyCreationErrorEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e",
                                                Resources.ArgumentNullException);
            }

            base.OnServiceProxyCreationError(sender, e);
            IncreaseErrorCount(e.DaemonName);
            UpdateList(false);
            UpdateProcessesToRun(e.QueuedProcesses);
            UpdateRunningProcesses();
        }
Esempio n. 4
0
 /// <summary>
 /// Formats message.
 /// </summary>
 /// <param name="serviceProxyCreationErrorEventArgs">Message.</param>
 /// <returns>Formatted message.</returns>
 /// <exception cref="ArgumentNullException">serviceProxyCreationErrorEventArgs is null.</exception>
 public string Format(ServiceProxyCreationErrorEventArgs serviceProxyCreationErrorEventArgs)
 {
     if (serviceProxyCreationErrorEventArgs == null)
     {
         throw new ArgumentNullException("serviceProxyCreationErrorEventArgs",
                                         Resources.ArgumentNullException);
     }
     return String.Format(CultureInfo.CurrentCulture,
                          @Resources.MessageServiceProxyCreationError,
                          @DateTime.Now,
                          @Resources.MessageTypeError,
                          @serviceProxyCreationErrorEventArgs.DaemonName,
                          @serviceProxyCreationErrorEventArgs.Id);
 }