Ejemplo n.º 1
0
        private static CompilationResult ExportConfiguration(CompilerOptions options)
        {
            var assembly = Assembly.LoadFile(options.WebSiteAssembly);
            var config   = OwinInitializer.InitDotVVM(assembly, options.WebSitePath, null, (s) => { });

            return(new CompilationResult()
            {
                Configuration = config
            });
        }
Ejemplo n.º 2
0
 private DotvvmConfiguration GetCachedConfiguration(Assembly assembly, string webSitePath, Action <IServiceCollection> registerServices)
 {
     return(cachedConfig.GetOrAdd($"{assembly.GetName().Name}|{webSitePath}",
                                  key => OwinInitializer.InitDotVVM(assembly, webSitePath, this, registerServices)));
 }
Ejemplo n.º 3
0
 static DotvvmConfiguration GetCachedConfiguration(Assembly assembly, string webSitePath)
 => cachedConfig.GetOrAdd($"{assembly.GetName().Name}|{webSitePath}", key =>
 {
     return(OwinInitializer.InitDotVVM(assembly, webSitePath));
 });