Esempio n. 1
0
        public static string GetMediaObjectUrl(int moid)
        {
            var host      = HttpContext.Current.Request.Url.Host;
            var mediaPath = SueetieApplications.Get().MediaGallery.ApplicationKey;

            return(string.Format("http://{0}{1}/default.aspx?moid={2}", host, mediaPath, moid));
        }
Esempio n. 2
0
        public static SueetieApplications Get()
        {
            var apps = SueetieCache.Current[appKey] as SueetieApplications;

            if (apps == null)
            {
                lock (appLocker)
                {
                    apps = SueetieCache.Current[appKey] as SueetieApplications;
                    if (apps == null)
                    {
                        apps = new SueetieApplications();
                        SueetieCache.Current.InsertMax(appKey, apps);
                    }
                }
            }
            return(apps);
        }