예제 #1
0
 public static void UseSpark(this FubuRegistry fubuRegistry, Action<SparkEngine> configure)
 {
     var spark = new SparkEngine();
     configure(spark);
     spark
         .As<IFubuRegistryExtension>()
         .Configure(fubuRegistry);
 }
예제 #2
0
        public static void UseSpark(this FubuRegistry fubuRegistry, Action <SparkEngine> configure)
        {
            var spark = new SparkEngine();

            configure(spark);
            spark
            .As <IFubuRegistryExtension>()
            .Configure(fubuRegistry);
        }
 public static SparkEngine ConfigureComposer(this SparkEngine spark, Action <TemplateComposer> configure)
 {
     return(spark.ConfigureComposer(new LambdaTemplateComposerConvention(configure)));
 }
 public static SparkEngine ConfigureComposer <TConvention>(this SparkEngine spark)
     where TConvention : ITemplateComposerConvention, new()
 {
     return(spark.ConfigureComposer(new TConvention()));
 }
 public static SparkEngine ComposeWith <TComposer>(this SparkEngine spark)
     where TComposer : ITemplateComposer, new()
 {
     return(spark.ComposeWith(new TComposer()));
 }
 public static SparkEngine FindWith <TFinder>(this SparkEngine spark)
     where TFinder : ITemplateFinder, new()
 {
     return(spark.FindWith(new TFinder()));
 }