Resvolution - ServerRegistrarResolver
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || instances.Length == 0 || getNumericId == null) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
getNumericId,
|
||||
instances);
|
||||
@@ -80,7 +80,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || id == default(int)) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
id);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || id == Guid.Empty) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
id);
|
||||
}
|
||||
@@ -107,7 +107,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || payload == null) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
payload);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || payloads == null) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
payloads.ToArray());
|
||||
}
|
||||
@@ -133,7 +133,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || jsonPayload.IsNullOrWhiteSpace()) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefresh(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
jsonPayload);
|
||||
}
|
||||
@@ -148,7 +148,7 @@ namespace Umbraco.Web.Cache
|
||||
// if (refresherId == Guid.Empty || payload == null) return;
|
||||
|
||||
// Current.ServerMessenger.Notify(
|
||||
// ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
// Current.ServerRegistrar.Registrations,
|
||||
// GetRefresherById(refresherId),
|
||||
// json);
|
||||
//}
|
||||
@@ -162,7 +162,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty) return;
|
||||
|
||||
Current.ServerMessenger.PerformRefreshAll(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid));
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace Umbraco.Web.Cache
|
||||
if (refresherGuid == Guid.Empty || id == default(int)) return;
|
||||
|
||||
Current.ServerMessenger.PerformRemove(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
id);
|
||||
}
|
||||
@@ -194,7 +194,7 @@ namespace Umbraco.Web.Cache
|
||||
public void Remove<T>(Guid refresherGuid, Func<T, int> getNumericId, params T[] instances)
|
||||
{
|
||||
Current.ServerMessenger.PerformRemove(
|
||||
ServerRegistrarResolver.Current.Registrar.Registrations,
|
||||
Current.ServerRegistrar.Registrations,
|
||||
GetRefresherById(refresherGuid),
|
||||
getNumericId,
|
||||
instances);
|
||||
|
||||
Reference in New Issue
Block a user