Last active
July 5, 2016 20:28
-
-
Save soen/c1edf1417ef5a4c178c6e6a0055ecba6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled with JetBrains decompiler | |
// Type: Sitecore.Sites.SiteContext | |
// Assembly: Sitecore.Kernel, Version=8.1.0.0, Culture=neutral, PublicKeyToken=null | |
// | |
// NOTE: This is not the complete implementation, only fractions of the important parts related | |
// to getting cookie by key from the site-context. | |
// | |
namespace Sitecore.Sites | |
{ | |
[DebuggerDisplay("{Name}")] | |
public class SiteContext | |
{ | |
internal static string GetCookieKey(string siteName, string name) | |
{ | |
Sitecore.Diagnostics.Assert.ArgumentNotNull((object) siteName, "siteName"); | |
Sitecore.Diagnostics.Assert.ArgumentNotNull((object) name, "name"); | |
return (siteName + "#" + name).ToLowerInvariant(); | |
} | |
// code omitted... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment