Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asp net core support #79

Merged
merged 17 commits into from
Apr 24, 2024
Merged

Asp net core support #79

merged 17 commits into from
Apr 24, 2024

Commits on Jan 24, 2024

  1. Using the Microsoft.Extensions.DependencyInjection apis to resolved d…

    …ependencies
    
    - Now using constructor injection instead of auto-initializing properties
    - Removed ISparkServiceInitialize and ISparkServiceContainer (and it's implementation)
    - New IBatchCompiler interface so that we can use different compilers
    - ~2x performance improvement when compiling views with Roslyn
    - CodeDom compilation can still be used at the moment (class marked as obsolete)
    - CastleMonoRail still using codedom (rosylin doesn't like the assembly name when compiling in that project)
    bounav committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    7de6466 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    67c0bcf View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. Configuration menu
    Copy the full SHA
    dad2b39 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    0ef3206 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'microsoft-di-and-roslyn-compiler' of github.com:SparkVi…

    …ewEngine/spark into microsoft-di-and-roslyn-compiler
    bounav committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    d9ce0dc View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. No depedency to System.CodeDom when targetting .net 8.0

    - CodeDom complilation cannot target .net core
    - BatchCompiler.cs contains the code to complile with codedom and/or roslyn
    bounav committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    b0349d7 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. Configuration menu
    Copy the full SHA
    16c4250 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Templates of generic controllers are now pre-compiled

    - Improved readability of RemoveSuffix method
    bounav committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ab0caca View commit details
    Browse the repository at this point in the history
  2. Reduced code duplication between ISparkSettings and ViewCompiler class

    - Renamed ISparkSettings.PageBaseType to BaseClassTypeName
    - An instance of ISparkSettings is used instead of duplicated properties on the ViewCompiler base class
    - New ISparkSettings.ExcludeAssemblies property that can be used to the prevent the view compiler from loading .DLLs that would containt precompile views (and would might already be loaded)
    bounav committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    87455e7 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    ace1221 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23b5dd4 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Removed DefaultCacheServiceProvider

    - Replaced by a callback in the IoC configuration
    - See ServiceCollectionExtensions.cs
    bounav committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    d8152fb View commit details
    Browse the repository at this point in the history
  2. New InMemoryCacheService implementation of ICacheService in Spark

    - InMemoryCacheService cache can be used in any .net standard project
    - CacheExpires class not longer has depenency on System.Web.Caching.Cache
    - Renamed DefaultCacheService to WebCacheService
    - Moved NullCacheService to Castle.MonoRail.Views project (it's the only place using it)
    - Moved some classes back to Spark project when possible
    - Moved markdown dependency back to spark
    bounav committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    09e540c View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Moved descriptor builder and filters to spark

    - Use of a new SparkRouteData class
    - Avoids having a dependency on Microsoft.AspNet.Mvc
    bounav committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    544fcb7 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. New project to support AspNetCore.Mvc applications

    - New OutputValue(value, automaticEncoding) on SparkViewBase
    - Removed H() method (replaced by OutputValue
    - GeneratedCodeVisitor calls new OutputValue() method instead of Output.Write()
    - This method gives simplifies the HTML encoding logic
    - This method handles MvcHtmlString for MVC 5
    - This method handles IHtmlContent for aspnetcore
    - HtmlHelperResultFilter to help get funnel the IHtmlHelper from the controllers to the view
    - Can now set base class for views with new SparkSettings<TBaseClass>() shortcut
    bounav committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    948e341 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Merge branch 'master' into asp-net-core

    # Conflicts:
    #	src/Spark.Web.Mvc/SparkViewFactory.cs
    bounav committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    d5d2f96 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. BatchCompiler now loads the assemblies defined in spark settings befo…

    …re compilation
    
    - Can now use name, full name or absolute path to an assembly
    bounav committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    3d8701a View commit details
    Browse the repository at this point in the history