/// <summary> /// Initializes a new instance of the <see cref="DotvvmConfiguration"/> class. /// </summary> internal DotvvmConfiguration() { DefaultCulture = CultureInfo.CurrentCulture.Name; Markup = new DotvvmMarkupConfiguration(new Lazy <JavascriptTranslatorConfiguration>(() => ServiceLocator.GetService <IOptions <JavascriptTranslatorConfiguration> >().Value)); RouteTable = new DotvvmRouteTable(this); Resources = new DotvvmResourceRepository(); Security = new DotvvmSecurityConfiguration(); Runtime = new DotvvmRuntimeConfiguration(); Styles = new StyleRepository(this); }
/// <summary> /// Initializes a new instance of the <see cref="DotvvmConfiguration"/> class. /// </summary> internal DotvvmConfiguration() { DefaultCulture = CultureInfo.CurrentCulture.Name; Markup = new DotvvmMarkupConfiguration(); RouteTable = new DotvvmRouteTable(this); Resources = new DotvvmResourceRepository(); Security = new DotvvmSecurityConfiguration(); Runtime = new DotvvmRuntimeConfiguration(); Styles = new StyleRepository(this); }
/// <summary> /// Initializes a new instance of the <see cref="DotvvmConfiguration"/> class. /// </summary> internal DotvvmConfiguration() { DefaultCulture = Thread.CurrentThread.CurrentCulture.Name; Markup = new DotvvmMarkupConfiguration(); RouteTable = new DotvvmRouteTable(this); Resources = new DotvvmResourceRepository(); Security = new DotvvmSecurityConfiguration(); Runtime = new DotvvmRuntimeConfiguration(); Debug = true; Styles = new StyleRepository(); }