/// <summary>
 /// Require use of writable session state.
 /// </summary>
 /// <param name="request">The HTTP request.</param>
 /// <param name="stateBehavior">Session state behavior to use</param>
 public static void SetSessionStateBehavior(this IHttpRequest request, SessionStateBehavior stateBehavior)
 {
     if (stateBehavior != SessionStateBehavior.Default)
     {
         request.SetHeader(ArasHeaders.SessionStateBehaviorHeader, ArasHeaders.SessionStateBehaviorToString(stateBehavior));
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionPreferences"/> class.
 /// </summary>
 public ConnectionPreferences()
 {
     _headers          = new ArasHeaders();
     this.AuthCallback = DefaultAuthCallback;
 }