Example #1
0
 public static void init(int homeID, CaltureType calture)
 {
     Config = new Dictionary <EnvKey, dynamic>()
     {
         [EnvKey.HomeId] = homeID
     };
     Services = ApplicationContext.Current.Services;
     Calture  = new CaltureService();
     Calture.DefaultCalture = calture;
     AllContentByType       = UmbracoContentExtend.GetAllContentTypeFunction(Services.ContentTypeService, Services.ContentService);
     ContentValueString     = UmbracoContentExtend.GetContentValue <string>(Services.ContentService);
     ContentValueInt        = UmbracoContentExtend.GetContentValue <int>(Services.ContentService);
     ContentValueBool       = UmbracoContentExtend.GetContentValue <bool>(Services.ContentService);
 }
Example #2
0
 public static void InitCalture(int calture)
 {
     Calture = new CaltureService();
     Calture.DefaultCalture = calture;
 }