Esempio n. 1
0
 /// <summary>
 /// Adds to the request the cookie header for the security token
 /// </summary>
 /// <param name="sender">the sender of the event</param>
 /// <param name="e">the args for adding the cookie to</param>
 public static void OnSendingRequest(object sender, SendingRequest2EventArgs e)
 {
     // Add the cookie in the commonUtil to the cookie header to authenticate call to service
     e.RequestMessage.SetHeader(HttpRequestHeader.Cookie.ToString(), AuthenticationUtils.GetCookie(AuthenticatorFactory.AdminAuthenticator));
 }