Commit Graph

1192 Commits

Author SHA1 Message Date
Renaud Paquay
6a70e66af2 Slightly refactor orchard.exe
Allows calling command execution in asp.net host, passing right set
of parameters

--HG--
branch : dev
rename : src/Tools/Orchard/OrchardArguments.cs => src/Tools/Orchard/OrchardParameters.cs
rename : src/Tools/Orchard/OrchardArgumentsParser.cs => src/Tools/Orchard/OrchardParametersParser.cs
rename : src/Tools/Orchard/Arguments/Switch.cs => src/Tools/Orchard/Parameters/CommandSwitch.cs
2010-04-09 10:29:25 -07:00
Renaud Paquay
343145933c Add ability to run commands from CommandHostAgent
--HG--
branch : dev
2010-04-08 19:54:41 -07:00
Renaud Paquay
f766320b79 Working on CommandManager
--HG--
branch : dev
2010-04-08 14:46:58 -07:00
Suha Can
c9a3913dbf - Importing patch from smwhit for issue 16373 2010-04-08 12:23:30 -07:00
Renaud Paquay
250d6fd474 Merge
--HG--
branch : dev
2010-04-08 11:06:08 -07:00
Louis DeJardin
e070353631 Removing some commented code
--HG--
branch : dev
2010-04-08 10:11:56 -07:00
Suha Can
0e3352c560 - ShellTopology to be returned from ExtensionsManager. It contains types from active extensions.
- Modifying some unit tests accordingly.

--HG--
branch : dev
2010-04-07 18:01:15 -07:00
Louis DeJardin
26add78779 Adjusting registration of dependencies to avoid duplications
Types are registered once and multiple interfaces result in several services being associated with that component.
Any singleton or transient interfaces will adjust the lifecycle of the entire component.

--HG--
branch : dev
2010-04-07 17:55:38 -07:00
Renaud Paquay
118920bbab "orchard.exe" can now invoke the CommandAgent
The CommandAgent merely initalizes an Orchard Host and Shell (for now).

--HG--
branch : dev
2010-04-07 17:45:08 -07:00
Louis DeJardin
d77526259b Moving Host.config over to ~/Config instead of ~/App_Data
Assumes you may want to consider it's settings not quite as portable as tenant info

--HG--
branch : dev
2010-04-07 17:32:34 -07:00
Louis DeJardin
ef50916694 Forcing Hg to add Sample.Host.config in App_Data
--HG--
branch : dev
2010-04-07 17:29:24 -07:00
Louis DeJardin
36622bb303 Renaming Host.config to avoid collisions with user files
--HG--
branch : dev
2010-04-07 17:03:45 -07:00
Louis DeJardin
39dfe31ee2 Merge
--HG--
branch : dev
2010-04-07 17:02:27 -07:00
Louis DeJardin
0856fce9a4 Adding file-based configurability
optional ~/App_Data/Host.config file will modify root container registrations
not implemented stub for azure tenant storage added

--HG--
branch : dev
2010-04-07 16:59:21 -07:00
Renaud Paquay
d3cd35600b Initial version of "Orchard.exe"
* Understands "/workingdirectory", "/verbose", "/virtualpath" switches
* Starts up a WebHost instance in a separate AppDomain

--HG--
branch : dev
2010-04-07 16:48:43 -07:00
Suha Can
95152b379b - Adding ExtensionRecord to hold module state.
- Modifying ExtensionManager to use it for active extensions.
- Starting to move ExtensionManager and Composition Strategy etc from Host to Shell containers. Shells are going to be per tenant.

--HG--
branch : dev
2010-04-07 16:46:29 -07:00
Louis DeJardin
7172a784c0 Fixing an incomplete save/merge for previous commit
--HG--
branch : dev
2010-04-07 15:41:43 -07:00
Louis DeJardin
ca0859f32b Merge
--HG--
branch : dev
rename : src/Orchard.Tests/Orchard.Tests.csproj => src/Orchard.Tests/Orchard.Framework.Tests.csproj
rename : src/Orchard/Orchard.csproj => src/Orchard/Orchard.Framework.csproj
2010-04-07 15:36:18 -07:00
Louis DeJardin
476abfc409 Changing shell settings loader to prep for multi-tenancy work
Adding data prefix property
Moving to a different yaml library
Renaming IShellSettingsLoader and ShellSettingsLoader to ITenantManager and DefaultTenantManager
Avoiding use of MapPath in the appdatafolder abstraction

--HG--
branch : dev
2010-04-07 15:34:38 -07:00
Renaud Paquay
011ebe9ffe Rename "Orchard" to "Orchard.Framework" pass 2
--HG--
branch : dev
2010-04-07 14:58:37 -07:00
Renaud Paquay
9647bb3f6b Rename "Orchard" to "Orchard.Framework"
--HG--
branch : dev
rename : src/Orchard.Tests/Orchard.Tests.csproj => src/Orchard.Tests/Orchard.Framework.Tests.csproj
rename : src/Orchard/Orchard.csproj => src/Orchard/Orchard.Framework.csproj
2010-04-07 14:48:11 -07:00
Suha Can
d043f22bde Merge
--HG--
branch : dev
2010-04-07 14:22:05 -07:00
Suha Can
c2dbe346ca - Adding GetExtensionsTopology to ExtensionManager. This returns the topology for the currently active extensions.
- DefaultCompositionStrategy has GetModules/Dependencies for the host to call when spinning up shells for the tenants.
- Unit tests.

--HG--
branch : dev
2010-04-07 14:21:16 -07:00
Anthony Steele
4b96ede0be Removed unneeded project references and using statements 2010-04-07 21:40:16 +01:00
Louis DeJardin
80007a5101 Allowing modules to add interceptors to registered components
Removes reference to Autofac contrib dynamicproxy assembly
Shell factories enable dynamic proxy as dependencies are registered
CurrentUser and CurrentSite interceptors updated for new api
Castle.DynamicProxy2 v2.1 is used to avoid rebuilding nhib binaries

--HG--
branch : dev
2010-04-07 13:30:18 -07:00
Suha Can
c26b03d046 - Making some adjustments to the previous contributions.
- Unit tests for StringExtensions belongs to the Utility\ folder.
- Unit tests files are named after classes.
- Use localizedstrings via the T localizer injected as a controller property instead of plain strings.
2010-04-07 11:36:43 -07:00
smwhit
4957a259d0 Merge 2010-04-07 15:36:41 +01:00
smwhit
8fcbea38c2 Issue 16229. Validation for empty filenames when uploading media 2010-04-07 15:31:16 +01:00
Suha Can
16782bd359 - Refactoring code duplication in DefaultOrchardCommandHandler.
--HG--
branch : dev
2010-04-06 16:51:20 -07:00
Suha Can
a6029ec425 - More extension manifest parsing, module.txt now contains features metadata.
- Dependencies, Category for module's features.
- Renaming homepage field to website.
- Unit tests for manifest.

--HG--
branch : dev
2010-04-06 16:40:57 -07:00
Suha Can
5a5f83910b - Changes to ExtensionManager to support features in module.txt.
- Adding the features mapping in module.txt and loading it into extensiondescriptors.
- Tests.

--HG--
branch : dev
2010-04-06 15:46:12 -07:00
Suha Can
40d7c95b72 Merge 2010-04-06 13:40:54 -07:00
Suha Can
76b5297713 - Fixing build break due to missing file.
- Code convention enforcement to previous contribution.
2010-04-06 13:23:59 -07:00
Suha Can
7397b7dea3 - Orchard Command Handler argument support.
- support for string and params string[] arguments.
- Unit tests for boundary cases.

--HG--
branch : dev
2010-04-06 12:36:41 -07:00
Simon Whittemore
7fd128d2f3 fix for issue 2010-04-06 19:40:51 +01:00
smwhit
4a88a8bf10 Fix for issue 16353 2010-04-06 17:17:39 +01:00
Andrew Ma
fde6eef6b9 Fix for issue [workitem:16371]
Removing FollowReturnUrl filter because it always gets executed and does not allow actions to return other view or redirect to other locations.
Replacing filter with a Controller extension method called ReturnUrlRedirect which parses the ReturnUrl in the querystring and returns a RedirectFilter action with that Url.
2010-04-05 22:36:30 -07:00
Suha Can
7e36d8bccb - Adding Arguments to CommandContext.
--HG--
branch : dev
2010-04-05 19:40:41 -07:00
Suha Can
8f83475fe2 - Command Handler support for switches.
- OrchardSwitch attribute for bool, int, string properties.
- OrchardSwitches attribute for commands to specify which switches they support.
- Unit tests.

--HG--
branch : dev
2010-04-05 19:22:38 -07:00
Suha Can
5533fa1caf - OrchardCommand attribute for command aliases and unit test.
--HG--
branch : dev
2010-04-05 17:31:34 -07:00
Suha Can
f589720049 - Orchard Command Handler infrastructure
- CommandHandler interface and reflection based default implementation.
- Basic command execution support.
- Unit tests.

--HG--
branch : dev
2010-04-05 16:59:17 -07:00
Louis DeJardin
a2e58f9470 Troubleshooting automated build
Server has a different implementation of NUnit task.
Using x86 sqlite for that environment.

--HG--
branch : dev
2010-04-05 14:01:56 -07:00
Louis DeJardin
85a08396dd Initial SpecFlow project and adjusting for x64 testing
Added bits from SpecFlow 1.2 install
Added lib/specflow libraries and nearly empty Spec test project
Updating Orchard.proj to use NUnit task and locate test projects by pattern instead of fixed list

--HG--
branch : dev
2010-04-05 13:30:02 -07:00
Suha Can
6f63904d1c - Fixing MVC controller resolution from the new autofac 2.1 container during bootstrap.
--HG--
branch : dev
2010-04-05 12:22:31 -07:00
Suha Can
307ba8b096 - Passing interface type when creating named services for mvc controllers...
--HG--
branch : dev
2010-04-02 16:40:57 -07:00
Suha Can
efad00862c Merge
--HG--
branch : dev
2010-04-02 15:17:59 -07:00
Suha Can
867aaf943f - More work related to moving Orchard to Autofac 2.1.
Need to rework the host/shell container spin-off for multitenancy.
Need to rework interception.
dev branch is now broken until the end of this sprint, enjoy the default branch.

--HG--
branch : dev
2010-04-02 15:17:13 -07:00
Bertrand Le Roy
03b016c5f8 Replacing HTML comments with server comments. Fix for bug http://orchard.codeplex.com/WorkItem/View.aspx?WorkItemId=16368
--HG--
branch : dev
2010-04-02 13:59:02 -07:00
Suha Can
1d04b75415 - Fixing namespace reference in a view.
--HG--
branch : dev
2010-04-02 12:04:17 -07:00
Suha Can
58abf23453 - Checking in Autofac 2.1 bits and licenses.
--HG--
branch : dev
2010-04-01 10:00:14 -07:00