Shannon Deminick
5e941a1c3a
Changed CollectionSaved event naming to be consistent so is renamed SavedCollection (etc).
...
Now we have no more IEnumerable<Lazy<T>> collections, we can easily strongly type the event args instead of
just IEnumerable, they are now IEnumerable<T>.
2012-12-16 04:10:39 +05:00
Shannon Deminick
0615bf64dc
Updated unit test name
2012-12-16 04:03:56 +05:00
Shannon Deminick
b765dffea7
Removed the need for the services to have IEnumerable<Lazy<T>> parameters for bulk inserting, instead we enable the ability
...
to pass in an entity reference as a parent to the object if we want to lazily create heirarchy. This has been changed for the
ContentService and ContentTypeService as well as the entities for Media, Content, ContentType, MediaType and more unit tests written for it.
2012-12-16 04:02:29 +05:00
Shannon Deminick
94f69d5007
Removed ICancellableObjectEventArgs and instead just have a base class without the strongly typed object...
...
CancellableEventArgs.
2012-12-15 21:41:09 +05:00
Shannon Deminick
b144e27d10
Merge
2012-12-15 21:28:05 +05:00
Shannon Deminick
5fadb715c1
Changed all bulk operations to use one transaction unless it is a Lazy collection (this was mostly the case before)
...
Fixed EventExtensions handling cancellations.
2012-12-15 21:27:15 +05:00
Shannon Deminick
a925b092e7
Created new event structure (currently only implemented for Saving/Saved) and new events CollectionSaving, CollectionSaved.
...
Created new way to raise events and handle their cancellations. Everything is strongly typed so should make
working with events much nicer for end users. Also ensures that the Sender is the object raising the event.
2012-12-15 21:04:17 +05:00
Shannon Deminick
41e3471f2e
Moves event args classes to separate files
2012-12-15 10:44:09 +05:00
Shannon Deminick
2035f2d77f
Moved Event Args, etc... for persistence/services to Umbraco.Core.Events namespace
2012-12-15 10:43:03 +05:00
Shannon Deminick
1d259b711c
Changed IsAllRepublished on PublishingEventArgs to be readonly (pretty sure it supposed to be like that)
2012-12-15 10:38:57 +05:00
Shannon Deminick
b73efd16dc
Fixes ServiceContext to ensure the repo's are lazy instantiated because their ctor's rely on the
...
RepositoryResolver.Current being initialized which normally doesn't occur until after the ServiceContext
is constructed. Adds instance level caching for the GetRecursiveValue method in case this is called more than
one time for a property in one view. Reverts PetaPocoUnitOfWork to allow more than one call to Commit().. this
isn't 'best practices' per se but it is more for performance reasons because otherwise we'd have to create a new
repo object + uow for any bulk saving operations... The end result is the same, bulk operations in the Services
cannot be processed in one transaction. Fixing up the ContentServiceTests by ensuring that the shared and always open sqlce
connection with the legacy SqlCeContextGuardian is closed on TearDown.
2012-12-15 10:33:29 +05:00
Shannon Deminick
ad7aa66b0b
Changes PetaPocoUnitOfWorkFactory to accept an IDatabaseFactory as ctor. Changes PetaPocoUnitOfWork to not dispose of the Database since
...
it will be shared with the current thread in order to support nested transactions and changes how the Transaction object is created
and used and then disposed of. Changes PetaPocoUnitOfWorkFactory to ensure that the UOW is
created with the shared Database instance. Fixes a method in UserService to ensure that the UOW is disposed since it wasn't using a repository.
2012-12-15 08:41:46 +05:00
Morten Christensen
f5bfb90b64
Manually merging a few changes to the ContentService, ContentFactory, ContentRepository and ContentExtensions to avoid a merge hell when pushing latest to the legacy refactor branch.
...
Current checkin has a few new failing tests due to recent changes, but a few should be resolved by adding a DataTypesResolver setup in the ContentServiceTests fixture.
2012-12-14 15:19:54 -01:00
Morten Christensen
89399ad4c8
Closing repository refactor branch as its now been merged into the main 6.0.0 branch.
2012-12-14 14:00:57 -01:00
Morten Christensen
6bc5ba2b4c
Merge with 6.0.0-Repository-Resolvers-refactor
2012-12-14 13:50:56 -01:00
Morten Christensen
3d68106f47
Correcting a few unit tests that needed to have the ApplicationContext set in the SetUp of the fixture.
2012-12-14 13:49:20 -01:00
Morten Christensen
4c256986da
Adding a few constructor options to the services to ease use when newing the services instead of using the ServiceContext.
2012-12-14 13:27:10 -01:00
Morten Christensen
3d2ca1f823
Refactoring MacroService and UserService to use the new and clean uow/repo approach.
2012-12-14 13:15:33 -01:00
Morten Christensen
0bf061751e
Refactoring LocalizationService to use the new and clean uow/repo approach.
2012-12-14 13:06:58 -01:00
Morten Christensen
2956bdcc06
Refactoring FileService to use the new and clean uow/repo approach.
2012-12-14 12:59:47 -01:00
Morten Christensen
431e346622
Refactoring DataTypeService to use the new and clean uow/repo approach.
2012-12-14 12:43:05 -01:00
Morten Christensen
c711ed8542
Updating ContentTypeService to new uow/repo approach.
...
Removing ServiceFactory as it won't be used.
Correcting constructors on ContentService for consistency.
2012-12-14 12:33:14 -01:00
Morten Christensen
f9cffdd910
Merge with 6.0.0
2012-12-14 11:51:03 -01:00
Shannon Deminick
547dab0761
Fixes: #U4-1274, U4-1304
2012-12-14 10:40:11 +05:00
Shannon Deminick
5fba1a775e
Fixes: #U4-1300
2012-12-14 09:22:28 +05:00
Shannon Deminick
e34b0cc6fe
Fixes: #U4-1272 which now enables the hidden feature of razor macros (this feature also works
...
in MVC)
2012-12-14 09:11:53 +05:00
Shannon Deminick
81b28bd0ce
Changed over remaining services to accept the RepositoryFactory as a ctor argument.
2012-12-14 08:22:42 +05:00
Shannon Deminick
1a5285dfa0
Merge with 6.0.0
2012-12-14 08:07:39 +05:00
Shannon Deminick
a37abbe622
Merge
2012-12-14 08:06:45 +05:00
Shannon Deminick
a9cb337a96
Changes ApplicationContext to expect arguments of DatabaseContext and ServiceContext for it to be
...
constructed. Changes DatabaseContext to not be a singleton. Changes ServiceContext not to be a singleton.
Removed ServicesFactory. Updated unit tests to support new changes.
2012-12-14 08:06:32 +05:00
Sebastiaan Janssen
a41e0323df
Merge
2012-12-13 16:11:56 -01:00
Stephan
3a93da6256
U4-1212, U4-1312 - fix Document.PathPublished
2012-12-13 15:48:46 -01:00
Sebastiaan Janssen
b1091f91dc
Fixes U4-1320 - Dictionary delete query isn't paremterized
2012-12-13 15:48:18 -01:00
Sebastiaan Janssen
a5775e5a27
Also add FixedDisplayModes package as NuGet dependency
2012-12-13 10:44:21 -01:00
Sebastiaan Janssen
e2eee711d8
Fixes U4-483 - Replace illegal characters in media with a dash, not underscore
...
Also removing multiple repeating dashes, leaving only one in place.
2012-12-13 09:26:34 -01:00
Morten Christensen
029824c8bc
Reverting internal methods to public methods in RepositoryFactory
2012-12-12 17:37:13 -01:00
Shannon Deminick
e5ddcc756c
Changed boot managers to public
2012-12-12 20:10:50 +05:00
Sebastiaan Janssen
21ead72d48
Add en_us files in VS project file so they'll actually be in the built zip file
2012-12-12 12:40:18 -01:00
Sebastiaan Janssen
c3c3c3856f
Update unit tests to reflect removal of cachebrowser trees
2012-12-12 12:26:28 -01:00
Morten Christensen
877c38b8bc
Moving RepositoryFactory to constructor to avoid hard dependency on the RepositoryResolver in the services.
2012-12-12 10:47:14 -01:00
Sebastiaan Janssen
23fff9be8c
Remove the legacy Cache Browser
2012-12-12 10:25:34 -01:00
Sebastiaan Janssen
849a9892c5
#U4-1246 Increase the version number in ClientDependency.config after install
2012-12-12 09:07:06 -01:00
Morten Christensen
f800744e4f
Merge with 6.0.0
2012-12-12 09:00:25 -01:00
Morten Christensen
e71a5fd5eb
Fixing an issue with the MediaService.
...
Making the two UOW Providers public, so they can be used for newing up services.
Adding a few constructor options to the PP UOW Provider to avoid config lookup.
2012-12-12 09:00:00 -01:00
Sebastiaan Janssen
5f93e20fab
Merge
2012-12-12 07:21:17 -01:00
Sebastiaan Janssen
094fbf2e6b
Putting ClienntDependency.Mvc back now that we have assembly redirects
2012-12-12 07:20:58 -01:00
Shannon Deminick
41403c13a9
Fixes a ContentService 'using' of the repo. Updated the MediaService to use the correct logic for UOWs.
2012-12-12 06:40:38 +05:00
Shannon Deminick
1e41db6d69
Removed any manual instantiation of PetaPocoUnitOfWork as this should generally always
...
be done by the PetaPocoUnitOfWorkProvider to ensure that for a UOW it always uses a new database
instance, not a shared one.
2012-12-12 06:08:03 +05:00
Shannon Deminick
a3938edde2
Changed the PetaPocoUnitOfWorkProvider to ensure that a new Database object is used for each new
...
unit of work (transaction). When the UOW is diposed, the database instance will also be disposed.
2012-12-12 05:57:52 +05:00
Shannon Deminick
1132547c24
Changed required Database references to UmbracoDatabase
2012-12-12 05:48:18 +05:00