Raven.Client.Connection.HttpJsonRequest.HandleUnauthorizedResponse C# (CSharp) Method

HandleUnauthorizedResponse() public method

public HandleUnauthorizedResponse ( HttpWebResponse unauthorizedResponse ) : bool
unauthorizedResponse System.Net.HttpWebResponse
return bool
		public bool HandleUnauthorizedResponse(HttpWebResponse unauthorizedResponse)
		{
			if (conventions.HandleUnauthorizedResponse == null)
				return false;

			var handleUnauthorizedResponse = conventions.HandleUnauthorizedResponse(unauthorizedResponse);
			if (handleUnauthorizedResponse == null)
				return false;

			RecreateWebRequest(handleUnauthorizedResponse);
			return true;
		}
#if !NET_3_5