diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 08:41:16 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 08:41:16 -0800 |
commit | 475b47ab8eaa23e064763b05539fa750accebfdc (patch) | |
tree | 785a8c82ec1d8884fc51c201c23040923cbfa6fc /src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs | |
parent | 74b6b4efd2be2680e3067f716829b0c9385ceebe (diff) | |
parent | 1fdcca1a8019189237e86907f220307e2ccd61c9 (diff) | |
download | DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.zip DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.gz DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.bz2 |
Merge branch 'OAuthSimple' into httpclient
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs index 501b5b2..38abe4a 100644 --- a/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs +++ b/src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs @@ -393,6 +393,15 @@ namespace DotNetOpenAuth.Messaging { } /// <summary> + /// Gets the public facing URL for the given incoming HTTP request. + /// </summary> + /// <returns>The URI that the outside world used to create this request.</returns> + public static Uri GetPublicFacingUrl() { + ErrorUtilities.VerifyHttpContext(); + return GetPublicFacingUrl(new HttpRequestWrapper(HttpContext.Current.Request)); + } + + /// <summary> /// Wraps a response message as an MVC <see cref="ActionResult"/> so it can be conveniently returned from an MVC controller's action method. /// </summary> /// <param name="response">The response message.</param> |