-
-
Notifications
You must be signed in to change notification settings - Fork 775
First code submission for MVC Pipeline #6749
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
Open
donker
wants to merge
271
commits into
feature/mvc-pipeline
Choose a base branch
from
feature/mvc-pipeline-old
base: feature/mvc-pipeline
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 248 commits
Commits
Show all changes
271 commits
Select commit
Hold shift + click to select a range
5e3b2d4
restrore use of clientdependency.core.mvc
d17225a
add use of css variables
e903cda
add support for report-to
55308ab
update web.config for mvc
e107bd4
port all what is needed to run from dnn9 version
c91f68a
first part of the html module : view control
09c4c04
Merge pull request #4 from sachatrauwaen/mvcpl2
sachatrauwaen 4aae3e8
use dnn10 default.css
0fd3b47
make edit in mvc work again
2f322e0
Merge pull request #5 from sachatrauwaen/html-module
sachatrauwaen bbe31c4
Merge branch 'develop' into MVCPL
donker fbb2798
fix html compile errors
daca3d9
Merge pull request #6 from sachatrauwaen/fix-html-module
donker e9510a7
fix build of install package
fcd1661
Merge pull request #7 from sachatrauwaen/install-mvc
donker dbc02ce
enhance ModuleViewContollerBase
35bffb5
Merge pull request #9 from sachatrauwaen/module
sachatrauwaen 6b7aada
Trying to fix skin packaging for MVC pipeline
donker a54636a
Fix and task to test packages
donker f59b679
Merge pull request #10 from donker/2025-04-15-skinpackage
donker 271bc92
razor containers for the skin
994abe6
Merge branch 'MVCPL' into containers
4693637
Merge pull request #11 from sachatrauwaen/containers
donker b6275b9
fix double class
sachatrauwaen f3dab1b
add support for mvc modules
sachatrauwaen 85dc08c
a step farter in mvc module support
sachatrauwaen baaef7b
Merge branch 'MVCPL' into mvc-module
sachatrauwaen 7125224
fix key same as mvc modules
sachatrauwaen 37b459b
make existing mvc modules work on the mvc pipeline
sachatrauwaen 14d32b3
Merge pull request #13 from sachatrauwaen/mvc-module
donker 3750061
Merge branch 'develop' into MVCPL
donker 87306d4
Merge pull request #14 from donker/MVCPL
donker 1dd392f
Make MyWork control mvc
sachatrauwaen 63ecbec
make NewDDRMenu compatible with ddrmenu razor menu templates and use …
sachatrauwaen 3876e96
remove unused files
sachatrauwaen 2802019
fix buit to include web.config in skin folder
sachatrauwaen a7520b8
fix build of skin
sachatrauwaen 09abe33
fix skin build, issues when extension not provided
sachatrauwaen e1c419e
Merge pull request #15 from sachatrauwaen/html-mywork
donker 3e2dee6
Merge pull request #16 from sachatrauwaen/ddrmenu
donker 2d44234
Merge branch 'release/10.0.1' into MVCPL
donker 70ccbeb
Add use of route with area for mvc pipeline modules
sachatrauwaen 2b4cd9e
Merge pull request #20 from sachatrauwaen/area
donker 269950d
Prevent any meddling of the module foldername for the purpose of area…
donker fa00ff7
Merge pull request #22 from donker/routeareafixalt
donker 49d6628
Create the ModuleContext in the Initialize of the controller to give …
sachatrauwaen 10e6692
Merge branch 'MVCPL' into mvc-module-init
sachatrauwaen 38615b3
add page header and portal header to the layout
sachatrauwaen 9931d1c
Merge pull request #24 from sachatrauwaen/mvc-module-init
donker 8f9ec8e
Merge pull request #25 from sachatrauwaen/fix-pageheader
donker bf50796
Merge branch 'release/10.0.1' into tmpmerge
donker d8e2c23
Merge pull request #32 from donker/tmpmerge
donker 2c7ae88
Merge branch 'develop' into MVCPL
donker 28a8578
Merge branch 'develop' into tmpmerge
donker 26bbd90
Fix method call
donker a321c0d
Fix build error
donker 6f44d1f
Fix for postback in MVC modules
donker 26b700a
Merge pull request #34 from donker/tmpmerge
donker a6d4027
Merge branch 'develop' into MVCPL
donker 9ab6e50
Merge branch 'develop' into tmp
donker fdcde3a
Merge pull request #35 from donker/tmp
donker ec3b710
Code fixes for outdated code
donker d94ca80
Rolling back earlier change
donker c369e1e
Solution to get AF token to work on MVC pipeline
donker df42015
Merge pull request #36 from donker/aftoken
donker 4476348
Merge branch 'develop' into MVCPL
donker ae00a15
Merge branch 'develop' into MVCPL
donker aed61d2
fix typo
sachatrauwaen 3655bc7
performance improvement
sachatrauwaen bae3d24
cleanup
sachatrauwaen 3f96a34
cleanup
sachatrauwaen 82e169b
Module Controls : new way to make modules compatible with mvc pipeline
sachatrauwaen f60ada0
restructure ModuleControls to fit more the the ViewComponent patern
sachatrauwaen c716f4e
fix logo styling
sachatrauwaen be77a41
fix html module
sachatrauwaen d6354b6
fix empty pane rendering
sachatrauwaen 0edffda
fix user skin object
sachatrauwaen 54a68f8
cleanup
sachatrauwaen 1497a8b
rename test to demo
sachatrauwaen d3830ab
performance optimization for menu
sachatrauwaen 39d8084
add cursor ai ignore
sachatrauwaen df72d1c
Merge branch 'feature/mvc-pipeline' into ModuleControl
sachatrauwaen 644247f
fix unit tests
sachatrauwaen d3cb123
add MvcControlClass to UI and db
sachatrauwaen eb790e0
ad mvcmodelclass to db for html module
sachatrauwaen ecc5c24
add documentation for CSP
sachatrauwaen 176faf4
update mvcmoduleclass in manifest and remove sql migration script
sachatrauwaen 04b7a03
fix folder and leanup
sachatrauwaen d9bad81
refactor class names
sachatrauwaen 9e8d260
Cleanup
sachatrauwaen d0ff974
fix some names in the readme
sachatrauwaen b9f3f61
Cleanup and ViewData to RazorModuleControl
sachatrauwaen da40df3
remove RateLimit, it's for later
sachatrauwaen 62f6f72
cleanup, namespace fix, better error error handling, fix viewdata
sachatrauwaen c6303b5
CLEANUP NAMESPACES
sachatrauwaen 724348c
cleanup
sachatrauwaen 473a4d4
add ModulePartial helper
sachatrauwaen 6c31689
clean message when module control does not support mvc pipeline
sachatrauwaen a472753
show error when module dous not support mvc pl for page editors
sachatrauwaen 1cee0e5
add UI for Pipeline settings in Site and Page Settings
sachatrauwaen 83e0277
modify url rewriter to route to mvc controller depending on the new p…
sachatrauwaen d56336c
MVC PL Popup Editing issue
sachatrauwaen 22bc029
fix module actions for modules in the mvc pipeline
sachatrauwaen fc4c35d
add infrastructure for adding Page and module messages
sachatrauwaen f8ded6a
add missing page messages when error in query string and when message…
sachatrauwaen 863cbb7
fix test of DnnController
sachatrauwaen 7be534e
Fix tests on DnnController.cs
sachatrauwaen 526412b
Fix blank lines in DnnController.cs
sachatrauwaen 9ab7cae
remove blank linesDnnController.cs
sachatrauwaen fda5223
mvc pipeline doc
sachatrauwaen f6231bc
doc
sachatrauwaen ee09648
modified proposition
sachatrauwaen 626e5a0
modified proposition
sachatrauwaen e07308a
fix layout
sachatrauwaen 4a18e30
Revert "fix layout"
sachatrauwaen e007e36
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen a3d5c18
fix layout
sachatrauwaen 74b12d4
fix layout
sachatrauwaen 4bf447e
fix text
sachatrauwaen d89fbb8
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen 0f32c9a
fix text
sachatrauwaen 6a24f3a
Fix typos in mvc-pipeline.md
sachatrauwaen 567c571
blog post
sachatrauwaen b9fa629
rremove docs from this branch
sachatrauwaen 039633e
Remove module settings, because actually out of scope of MVC pipeline…
sachatrauwaen ac6941f
Remove CSP from mvc pipeline (it will be integrated later)
sachatrauwaen f522728
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen 12e1d64
remove CSP from html module and module settings for mvc pipeline
sachatrauwaen affe60b
Merge branch 'develop' into feature/mvc-pipeline-old
donker 7ff3b1f
First sweep of repairs after merging of latest dev branch
donker 1312d0b
Merge branch 'feature/mvc-pipeline-old' into ModuleControl
sachatrauwaen 4359f13
Merge branch 'ModuleControl' into mvcpl-selection
sachatrauwaen e56b9ce
upgrade to new cdf
sachatrauwaen e9ab30c
Merge branch 'feature/mvc-pipeline-old' into mvcpl-popups
sachatrauwaen ad7be26
Merge branch 'feature/mvc-pipeline-old' into mvcpl-moduleactions
sachatrauwaen 0804a97
upgrade to new cdf
sachatrauwaen e055ac6
add use of pageService
sachatrauwaen 75bee3a
remove cliendependecy.mvc
sachatrauwaen e7d9257
Merge branch 'develop' into feature/mvc-pipeline-old
donker 8205aba
Repairs for latest merge of develop
donker dc60823
Remove non used dll from manifest
donker 613e434
Fix to web.config
donker 53b2222
Remove more references to old clientdependency dll
donker 95ccf29
Remove build task that slipped in
donker 92f6492
Replace IReasourcable with IPageContrtibutor to use new cdf
sachatrauwaen ad947c4
Merge branch 'mvcpl-messages' into feature/mvc-pipeline-old
sachatrauwaen aafb756
perf optimisation
sachatrauwaen 1bf1da0
cleanup
sachatrauwaen 5546fc7
cleanup and simplify due to new cdf
sachatrauwaen 9c627ab
Cleanup
sachatrauwaen 4049e84
finish skinobject
sachatrauwaen 5440d0c
test and fix some skinhelpers
sachatrauwaen f69ae1c
fix typo
sachatrauwaen 1d1e2de
fix typo
sachatrauwaen cdc7eb2
cleanup
sachatrauwaen 73cdecd
refactor DI usage in html helpers
sachatrauwaen f32258a
add html helper to CKE provider
sachatrauwaen e735f3c
refactor use of DI in html helpers
sachatrauwaen 10fa053
razor module development guide for the mvc pipeline
sachatrauwaen 2266d8f
enhance doc
sachatrauwaen ceeedb7
enhance doc
sachatrauwaen f8b78a0
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen e573d10
fix mvc of html module
sachatrauwaen c96fd1f
Merge branch 'develop' into feature/mvc-pipeline-old
donker a032183
Merge branch 'develop' into feature/mvc-pipeline-old
donker 7869d0e
add razor module sample
sachatrauwaen dd36b34
enhance and fixes for razor sample
sachatrauwaen 0d203bb
cleanup and refactor small stuff
sachatrauwaen d8fa179
Merge branch 'develop' into feature/mvc-pipeline-old
donker b04064d
Fix build issues
donker 8197629
add style check to mvcwebsite project
sachatrauwaen d39d9e4
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen b63fe8a
remove un neaded changes
sachatrauwaen 56a31b4
Fix Razor module build script
donker 24e826d
More fixes to Razor module packaging
donker 862d6fc
add stypecop to project and styles all files
sachatrauwaen aa87d3f
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen 250729d
apply stylecop
sachatrauwaen 68d2887
remove depreciations
sachatrauwaen cb72bf3
Merge branch 'develop' into feature/mvc-pipeline-old
donker ff95202
remove MvcWebsite project
sachatrauwaen 018744b
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen a50edaf
Merge branch 'development' into feature/mvc-pipeline-old
sachatrauwaen 575a4f7
Fixes
donker fde1a77
fixes paths when dnn install in iis application folder
sachatrauwaen 0706d59
doc file for skin transformation
sachatrauwaen 228cbb5
update doc
sachatrauwaen 69ba865
update doc
sachatrauwaen f8b5219
add general migration guide
sachatrauwaen eec638d
Add MVC support to DDRMenu
sachatrauwaen 928b36e
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen 48898cc
refactor ddrmenu with support for mvc pipeline and remove newddrmenu
sachatrauwaen 665b1bb
Fix to Spa module container control for MVC pipeline to cater for vir…
donker a1cac9c
Merge branch 'feature/mvc-pipeline-old' of https://github.com/dnnsoft…
donker 6ddb6a8
add portal.css
sachatrauwaen 1345c8a
cleanup
sachatrauwaen 309db61
add example in comment with internal routing
sachatrauwaen 8ca113c
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen 4816b7b
comment internal router example
sachatrauwaen 498d074
fix delete module , module actions
sachatrauwaen 7608441
add module caching support in the mvc pipeline
sachatrauwaen 1c3d1c0
Update user guide with image and formatting changes
sachatrauwaen 86f2d24
enhance mvc rewriter to select automaticaly mvc route for edit module…
sachatrauwaen 03abdf0
fix translations
sachatrauwaen b97bb2e
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen 934d674
Add Auto option to Pipeline site setting
sachatrauwaen 5ebe3a9
Revise DNN MVC Pipeline User Guide
sachatrauwaen b810b27
Update documentation for Razor Module Development
sachatrauwaen acb6441
add partialskin helper with parameters
sachatrauwaen f207370
fixes to guide
sachatrauwaen 0924c7f
ensure the form is not shown
sachatrauwaen 23ddc6b
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen bd2e392
cleaup project file + apply style rules
sachatrauwaen 86cb47e
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen a9dab74
remove unused usings
sachatrauwaen 7d10f79
remove unused usings
sachatrauwaen c262bf8
remove all logic from models
sachatrauwaen 8d7ccdd
fix: add area to route
sachatrauwaen 5c9337b
cleanup
sachatrauwaen bff34c6
cleanup + fix build
sachatrauwaen 7fddccd
Merge branch 'development' into feature/mvc-pipeline-old
sachatrauwaen 0c2e42f
fix routing issues - redifine more specific route for the mvcpipeline
sachatrauwaen ef94a5b
fix csp separator and make it CLS compliant
sachatrauwaen 9d42098
add CSP to mvc pipeline
sachatrauwaen 3957da9
Merge branch 'develop' into feature/mvc-pipeline-old
donker 421ccc3
Merge branch 'develop' into feature/mvc-pipeline-old
donker bac2fca
Merge branch 'develop' into feature/mvc-pipeline-old
donker 7210d1a
remove code duplicated from mvc project
sachatrauwaen 3dc050a
remove changes to StandardTabAndModuleInfoProvider
sachatrauwaen 0650160
cleanup
sachatrauwaen 73bdccb
add csp policy in the help control in place of globaly
sachatrauwaen b69b4e5
remove unused class
sachatrauwaen 1d2c36c
restructure to use IPortalSettings , when i method require PortalSett…
sachatrauwaen 28faad1
removing Obsolete and #pragma
sachatrauwaen 7ecf4bb
fix getting portalsettings
sachatrauwaen 8496225
Merge branch 'feature/mvc-pipeline' into feature/mvc-pipeline-old
donker 4df5c79
Merge branch 'develop' into feature/mvc-pipeline-old
donker 6859b70
Merge branch 'feature/mvc-pipeline-old' of https://github.com/dnnsoft…
donker faf00af
remove things that not exist anymore
sachatrauwaen e6df9c3
Merge branch 'dnnsoftware:feature/mvc-pipeline-old' into feature/mvc-…
sachatrauwaen af9c659
Repair merge errors in advanced url rewriter
donker 1457a0c
Move internalsvisible from separate file to main file
donker 6ab0033
Fix merge error in DnnController
donker a020f4a
Merge branch 'develop' into feature/mvc-pipeline-old
donker 21647e4
start fixing mvc modules in mvc pipeline
sachatrauwaen 9425ca7
Merge branch 'feature/mvc-pipeline-old' of https://github.com/sachatr…
sachatrauwaen 29e554e
start fixing mvc modules in mvc pipeline
sachatrauwaen 55ff4cd
Fix MVC module postback
donker 284384a
fix isuue when usertabid is not initialised
sachatrauwaen 3d07087
cleanup
sachatrauwaen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| node_modules/ | ||
| .env | ||
| .env.local | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
| .DS_Store | ||
| .idea/ | ||
| .vscode/ | ||
| .gitignore | ||
| .git/ | ||
| .gitignore | ||
|
|
||
| .vs/ | ||
|
|
||
| build/ | ||
| build.* | ||
| .yarn/ | ||
| Artifacts/ | ||
| DotNetNuke.Internal.SourceGenerators/ | ||
| Install/ | ||
| tools/ | ||
| Website/ | ||
| .nuget/ | ||
| .github/ | ||
| Packages/ | ||
| Refs/ | ||
| tools/ | ||
| Dnn Platform/node_modules/ | ||
| # Dnn Platform/Tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
|
|
||
| # .NET Development Rules | ||
|
|
||
| You are a senior .NET full stack developer and an expert in C#, ASP.NET Framework, ASP.NET Core, and ReactJS | ||
|
|
||
| ## This project | ||
|
|
||
| This is a CMS that runs on classic ASP.NET Framework (version 4.8). The default entry point is /default.aspx which can be found under /DNN Platform/Website. | ||
| We are building a new pipeline based on ASP.NET MVC with the goal of moving away from webforms and towards .NET Core. Right now we will create a hybrid solution | ||
| with two rendering mechanisms: the old webforms pipeline through default.aspx and a new pipeline through /DesktopModules/Default/Page/{tabId}/{locale}. This | ||
| should be picked up and handled in the DotNetNuke.Web.MvcPipeline library. The skin that is being loaded should decide which pipeline is being used to render a | ||
| page to the client. | ||
|
|
||
| ## Code Organization | ||
|
|
||
| We want to minimize any code changes to the existing project and concentrate as much as we can any code changes in the DotNetNuke.Web.MvcPipeline project. | ||
| If need be we can create more projects to house new code. | ||
|
|
||
| ## Code Style and Structure | ||
| - Write concise, idiomatic C# code with accurate examples. | ||
| - Follow .NET and ASP.NET Core conventions and best practices. | ||
| - Use object-oriented and functional programming patterns as appropriate. | ||
| - Prefer LINQ and lambda expressions for collection operations. | ||
| - Use descriptive variable and method names (e.g., 'IsUserSignedIn', 'CalculateTotal'). | ||
| - Structure files according to .NET conventions (Controllers, Models, Services, etc.). | ||
|
|
||
| ## Naming Conventions | ||
| - Follow guidelines from the stylecop.json file | ||
|
|
||
| ## C# and .NET Usage | ||
| - | ||
|
|
||
| ## Syntax and Formatting | ||
| - Use 'var' for implicit typing when the type is obvious. | ||
|
|
||
| ## Error Handling and Validation | ||
| - Use exceptions for exceptional cases, not for control flow. | ||
| - Implement proper error logging using built-in .NET logging or a third-party logger. | ||
| - Use Data Annotations or Fluent Validation for model validation. | ||
| - Implement global exception handling middleware. | ||
| - Return appropriate HTTP status codes and consistent error responses. | ||
|
|
||
| ## API Design | ||
| - Follow RESTful API design principles. | ||
| - Use attribute routing in controllers. | ||
| - Implement versioning for your API. | ||
| - Use action filters for cross-cutting concerns. | ||
|
|
||
| ## Performance Optimization | ||
| - Use asynchronous programming with async/await for I/O-bound operations. | ||
| - Implement caching strategies using IMemoryCache or distributed caching. | ||
| - Use efficient LINQ queries and avoid N+1 query problems. | ||
| - Implement pagination for large data sets. | ||
|
|
||
| ## Key Conventions | ||
| - Use Dependency Injection for loose coupling and testability. | ||
| - Implement repository pattern. | ||
| - Use AutoMapper for object-to-object mapping if needed. | ||
| - Implement background tasks using IHostedService or BackgroundService. | ||
|
|
||
| ## Testing | ||
| - Write unit tests using xUnit, NUnit, or MSTest. | ||
| - Use Moq or NSubstitute for mocking dependencies. | ||
| - Implement integration tests for API endpoints. | ||
|
|
||
| ## Security | ||
| - Implement proper CORS policies. | ||
|
|
||
| ## API Documentation | ||
| - Provide XML comments for controllers and models. | ||
|
|
||
| Follow the official Microsoft documentation and ASP.NET MVC guides for best practices in routing, controllers, models, and other API components. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
DNN Platform/DotNetNuke.Abstractions/Portals/PagePipelineConstants.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information | ||
| namespace DotNetNuke.Abstractions.Portals | ||
| { | ||
| /// <summary> | ||
| /// Provides constants for the page pipelines used in the DNN platform, | ||
| /// such as WebForms and MVC. | ||
| /// </summary> | ||
| public static class PagePipelineConstants | ||
| { | ||
| /// <summary>WebForms.</summary> | ||
| public const string WebForms = "webforms"; | ||
|
|
||
| /// <summary>MVC.</summary> | ||
| public const string Mvc = "mvc"; | ||
|
|
||
| /// <summary>Auto.</summary> | ||
| public const string Auto = "auto"; | ||
|
|
||
| /// <summary>QueryString key.</summary> | ||
| public const string QueryStringKey = "pipeline"; | ||
|
|
||
| /// <summary>QueryString WebForms.</summary> | ||
| public const string QueryStringWebForms = "webforms"; | ||
|
|
||
| /// <summary>QueryString MVC.</summary> | ||
| public const string QueryStringMvc = "mvc"; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
DNN Platform/DotNetNuke.ContentSecurityPolicy/Properties/AssemblyInfo.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information | ||
|
|
||
| using System; | ||
|
|
||
| [assembly: CLSCompliant(true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 41 additions & 41 deletions
82
DNN Platform/DotNetNuke.Web.Mvc/Framework/Modules/ResultCapturingActionInvoker.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,41 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information | ||
|
|
||
| namespace DotNetNuke.Web.Mvc.Framework.Modules | ||
| { | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Web.Mvc; | ||
|
|
||
| public class ResultCapturingActionInvoker : ControllerActionInvoker | ||
| { | ||
| public ActionResult ResultOfLastInvoke { get; set; } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override ActionExecutedContext InvokeActionMethodWithFilters(ControllerContext controllerContext, IList<IActionFilter> filters, ActionDescriptor actionDescriptor, IDictionary<string, object> parameters) | ||
| { | ||
| var context = base.InvokeActionMethodWithFilters(controllerContext, filters, actionDescriptor, parameters); | ||
| this.ResultOfLastInvoke = context.Result; | ||
| return context; | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override ExceptionContext InvokeExceptionFilters(ControllerContext controllerContext, IList<IExceptionFilter> filters, Exception exception) | ||
| { | ||
| var context = base.InvokeExceptionFilters(controllerContext, filters, exception); | ||
| this.ResultOfLastInvoke = context.Result; | ||
| return context; | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) | ||
| { | ||
| // Do not invoke the action. Instead, store it for later retrieval | ||
| if (this.ResultOfLastInvoke == null) | ||
| { | ||
| this.ResultOfLastInvoke = actionResult; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information | ||
| namespace DotNetNuke.Web.Mvc.Framework.Modules | ||
| { | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Web.Mvc; | ||
| public class ResultCapturingActionInvoker : ControllerActionInvoker | ||
| { | ||
| public ActionResult ResultOfLastInvoke { get; set; } | ||
| /// <inheritdoc /> | ||
| protected override ActionExecutedContext InvokeActionMethodWithFilters(ControllerContext controllerContext, IList<IActionFilter> filters, ActionDescriptor actionDescriptor, IDictionary<string, object> parameters) | ||
| { | ||
| var context = base.InvokeActionMethodWithFilters(controllerContext, filters, actionDescriptor, parameters); | ||
| this.ResultOfLastInvoke = context.Result; | ||
| return context; | ||
| } | ||
| /// <inheritdoc /> | ||
| protected override ExceptionContext InvokeExceptionFilters(ControllerContext controllerContext, IList<IExceptionFilter> filters, Exception exception) | ||
| { | ||
| var context = base.InvokeExceptionFilters(controllerContext, filters, exception); | ||
| this.ResultOfLastInvoke = context.Result; | ||
| return context; | ||
| } | ||
| /// <inheritdoc /> | ||
| protected override void InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) | ||
| { | ||
| // Do not invoke the action. Instead, store it for later retrieval | ||
| if (this.ResultOfLastInvoke == null) | ||
| { | ||
| this.ResultOfLastInvoke = actionResult; | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.