public BibaMiddleware(RequestDelegate next, BibaCompiler compiler, BibaViewEngineProperties props, IBibaRouter router) { _compiler = compiler; _next = next; _props = props; _router = router; }
public BibaRouter(Routes routes, BibaCompiler compiler, IServiceProvider provider, RouterData data, CurrentRoute currentRoute) { _routes = routes; _compiler = compiler; _provider = provider; _data = data; _currentRoute = currentRoute; _contractResolver = new CamelCasePropertyNamesContractResolver(); }
public Component(BibaCompiler bibaCompiler) { _compiler = bibaCompiler; var fileLocation = Directory.GetFiles("Client", $"{GetType().Name}.html", SearchOption.AllDirectories).FirstOrDefault(); if (fileLocation != null) { using (var stream = File.OpenText(fileLocation)) { Template = stream.ReadToEnd(); } } }
public ForComponent(BibaCompiler bibaCompiler) : base(bibaCompiler) { PreventDefaults = true; }
public BibaRouter(Routes routes, BibaCompiler compiler, IServiceProvider services) { _routes = routes; _compiler = compiler; _provider = services; }