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

HandleUnauthorizedResponseAsync() public method

public HandleUnauthorizedResponseAsync ( HttpWebResponse unauthorizedResponse ) : Task
unauthorizedResponse System.Net.HttpWebResponse
return Task
		public Task HandleUnauthorizedResponseAsync(HttpWebResponse unauthorizedResponse)
		{
			if (conventions.HandleUnauthorizedResponseAsync == null)
				return null;

			var unauthorizedResponseAsync = conventions.HandleUnauthorizedResponseAsync(unauthorizedResponse);

			if (unauthorizedResponseAsync == null)
				return null;

			return unauthorizedResponseAsync.ContinueWith(task => RecreateWebRequest(unauthorizedResponseAsync.Result));
		}
#endif