diff options
| author | Dan Volchek <volchek2@illinois.edu> | 2019-08-25 17:21:03 -0700 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:14:24 -0400 |
| commit | f04f7811536ba6e35c4ad6357fb6904826eda9dc (patch) | |
| tree | fac7f183ecac6ed63f29e1c01186ffdf46d9af7c /src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs | |
| parent | 00b067fead282bb30eb8ca67572f16bd6e1920b7 (diff) | |
| download | SMAPI-f04f7811536ba6e35c4ad6357fb6904826eda9dc.tar.gz SMAPI-f04f7811536ba6e35c4ad6357fb6904826eda9dc.tar.bz2 SMAPI-f04f7811536ba6e35c4ad6357fb6904826eda9dc.zip | |
rename namespace to be more accurate
Diffstat (limited to 'src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs')
| -rw-r--r-- | src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs b/src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs new file mode 100644 index 00000000..274e5486 --- /dev/null +++ b/src/SMAPI.Web/Framework/ClientPlatformDetection/ClientPlatformMiddlewareExtensions.cs @@ -0,0 +1,16 @@ +using Microsoft.AspNetCore.Builder; + +namespace StardewModdingAPI.Web.Framework.ClientPlatformDetection +{ + /// <summary>Extension methods for the client platform middleware.</summary> + internal static class ClientPlatformMiddlewareExtensions + { + /// <summary>Adds client platform detection to the request pipeline.</summary> + /// <param name="builder">The application builder.</param> + /// <returns>The application builder with the client platform middleware enabled.</returns> + public static IApplicationBuilder UseClientPlatform(this IApplicationBuilder builder) + { + return builder.UseMiddleware<ClientPlatformMiddleware>(); + } + } +} |
