/// <summary> /// Constructs the attribute with an end point and behavior. /// </summary> /// <param name="endPoint">end point</param> /// <param name="behavior">server behavior</param> public OnErrorAttribute(ExceptionEndPoint endPoint, ServerBehavior behavior) { this.EndPoint = endPoint; this.Behavior = behavior; }
/// <summary> /// Empty default constructor. Assumes logging the exception /// and keeping the server active. /// </summary> public OnErrorAttribute() { EndPoint = ExceptionEndPoint.Log; Behavior = ServerBehavior.RemainActive; }