예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <summary>
 /// Empty default constructor.  Assumes logging the exception
 /// and keeping the server active.
 /// </summary>
 public OnErrorAttribute()
 {
     EndPoint = ExceptionEndPoint.Log;
     Behavior = ServerBehavior.RemainActive;
 }