Beispiel #1
0
 /// <summary>
 /// Adds Asp.Net Mvc specific IViewEngine implementation.
 /// </summary>
 /// <param name="container">An instance of the spark service container to modify</param>
 public static void ConfigureContainer(ISparkServiceContainer container)
 {
     container.SetServiceBuilder<IViewEngine>(c => new SparkViewFactory(c.GetService<ISparkSettings>()));
     container.SetServiceBuilder<IDescriptorBuilder>(c => new DefaultDescriptorBuilder());
 }
Beispiel #2
0
 /// <summary>
 /// Adds Asp.Net Mvc specific IViewEngine implementation and the IronPython
 /// view language factory to a spark service container.
 /// </summary>
 /// <param name="container">An instance of the spark service container to modify</param>
 public static void ConfigureContainer(ISparkServiceContainer container)
 {
     container.SetServiceBuilder <IViewEngine>(c => new SparkViewFactory(c.GetService <ISparkSettings>()));
     container.SetServiceBuilder <ISparkLanguageFactory>(c => new PythonLanguageFactoryWithExtensions());
 }
Beispiel #3
0
 /// <summary>
 /// Adds Asp.Net Mvc specific IViewEngine implementation and the IronPython
 /// view language factory to a spark service container.
 /// </summary>
 /// <param name="container">An instance of the spark service container to modify</param>
 public static void ConfigureContainer(ISparkServiceContainer container)
 {
     container.SetServiceBuilder<IViewEngine>(c => new SparkViewFactory(c.GetService<ISparkSettings>()));
     container.SetServiceBuilder<ISparkLanguageFactory>(c => new RubyLanguageFactoryWithExtensions());
 }
Beispiel #4
0
 /// <summary>
 /// Adds Asp.Net Mvc specific IViewEngine implementation.
 /// </summary>
 /// <param name="container">An instance of the spark service container to modify</param>
 public static void ConfigureContainer(ISparkServiceContainer container)
 {
     container.SetServiceBuilder <IViewEngine>(c => new SparkViewFactory(c.GetService <ISparkSettings>()));
     container.SetServiceBuilder <IDescriptorBuilder>(c => new DefaultDescriptorBuilder());
     container.SetServiceBuilder <ICacheServiceProvider>(c => new DefaultCacheServiceProvider());
 }