Few more NRT tweaks (#12323)
* Amended GetAll() on IDataTypeService to return an empty collection rather than null. * Added a ClearSessionValue method to ISessionManager (given you can no longer set a value to null). * Allow for null values in a StatefulNotification. * Removed obsoletion of synchronous messages on TreeControllerBase. * Fixed further CS8620 warnings in core project. * Further fix to nullable warning. * Aligned nullablility of retreiving tree nodes and menus, synchronously or asynchronously (such that we no longer can get null values, always empty collection objects).
This commit is contained in:
@@ -1377,7 +1377,7 @@ namespace Umbraco.Cms.Core.Services
|
||||
/// </remarks>
|
||||
private PublishResult CommitDocumentChangesInternal(ICoreScope scope, IContent content,
|
||||
EventMessages eventMessages, IReadOnlyCollection<ILanguage> allLangs,
|
||||
IDictionary<string, object>? notificationState,
|
||||
IDictionary<string, object?>? notificationState,
|
||||
int userId = Constants.Security.SuperUserId,
|
||||
bool branchOne = false, bool branchRoot = false)
|
||||
{
|
||||
@@ -3036,7 +3036,7 @@ namespace Umbraco.Cms.Core.Services
|
||||
private PublishResult StrategyCanPublish(ICoreScope scope, IContent content, bool checkPath,
|
||||
IReadOnlyList<string>? culturesPublishing,
|
||||
IReadOnlyCollection<string>? culturesUnpublishing, EventMessages evtMsgs,
|
||||
IReadOnlyCollection<ILanguage> allLangs, IDictionary<string, object>? notificationState)
|
||||
IReadOnlyCollection<ILanguage> allLangs, IDictionary<string, object?>? notificationState)
|
||||
{
|
||||
// raise Publishing notification
|
||||
if (scope.Notifications.PublishCancelable(
|
||||
|
||||
Reference in New Issue
Block a user