Ejemplo 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));
        }
Ejemplo 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);
        }