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); }
public static void InitCalture(int calture) { Calture = new CaltureService(); Calture.DefaultCalture = calture; }