Пример #1
0
        /// <summary>
        /// Creates a <see cref="OperationException"/> with a specific <see cref="IPAddress"/>.
        /// </summary>
        /// <param name="message">Message</param>
        /// <param name="agent">Agent address</param>
        public static OperationException Create(string message, IPAddress agent)
        {
            OperationException ex = new OperationException(message)
            {
                Agent = agent
            };

            return(ex);
        }
Пример #2
0
 /// <summary>
 /// Creates a <see cref="OperationException"/> with a specific <see cref="IPAddress"/>.
 /// </summary>
 /// <param name="message">Message</param>
 /// <param name="agent">Agent address</param>
 public static OperationException Create(string message, IPAddress agent)
 {
     var ex = new OperationException(message) { Agent = agent };
     return ex;
 }