Skip to content

Conversation

bounav
Copy link
Collaborator

@bounav bounav commented Sep 29, 2022

  • Created a new project/assembly named Spark.Web to contain bits of code that depend on System.Web
  • Spark.Web.Mvc..., Castle.Monorail... and Xpark project now have a reference to Spark.Web instead of Spark
  • Moved Cache and SparkVewBase (and releted classes) to Spark.Web
  • Moved configuration Element classes from Spark to Spark.Web assembly (see breaking change section below). Not stricly necessary but it makes sense IMHO to move that out of Spark since nove of configuration element will be relevant to future .net core bit (since it will use code or JSON configuration).

Breaking Change

If you configure spark from your App.config (or Web.config) file you will need to adjust the assembly part of the fully qualified name for the <section type="..." /> tag.

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="spark" type="Spark.Configuration.SparkSectionHandler, Spark"/>
  </configSections>
  <spark>...</spark>
</configuration>

Becomes

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="spark" type="Spark.Configuration.SparkSectionHandler, Spark.Web"/>
  </configSections>
  <spark>...</spark>
</configuration>

NB: We'll have to update the relevant wiki page when this is released.

- SparkViewEngine no longer depends on System.Web.Hosting
- Removed "ViewFolderType.cs" enum
- Can no longer configure "ViewFolder" using the view folder type, you have to either use the default or configure it one using as if it was a custom one
- New Spark.Web project to contain the bits that depend on System.Web (e.g. VirtualPathProviderViewFolder)
- No longer using deprecated nunit Is.Not.StringContaining("")
- Tweaked getters and setter syntax on configuration Element classes
- Moved Cache and SparkViewBase related bits to Spark.Web
- This code is not going to be relevant for .net core stuff (JSON configuration would be used instead)
- Breaking change the section type attribute will have to change to "Spark.Configuration.SparkSectionHandler, Spark.Web"
@bounav bounav merged commit 2d929c4 into master Sep 29, 2022
@bounav bounav deleted the cache branch September 29, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants