Ensures tree is synced on bulk publish, fixes Dimming on the content node. Starts adding ability to

make distributed calls that are strongly typed and can do more than one at a time.
This commit is contained in:
Shannon Deminick
2013-02-12 04:47:36 +06:00
parent 8dc5092763
commit cb3ac17f43
10 changed files with 55 additions and 15 deletions

View File

@@ -59,6 +59,26 @@ namespace Umbraco.Web.Cache
}
}
/// <summary>
/// Sends a request to all registered load-balanced servers to refresh node with the specified Id
/// using the specified ICacheRefresher with the guid factoryGuid.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="factoryGuid"></param>
/// <param name="getNumericId">The callback method to retreive the ID from an instance</param>
/// <param name="instances">The instances containing Ids</param>
/// <remarks>
/// This method is much better for performance because it does not need to re-lookup an object instance
/// </remarks>
public void Refresh<T>(Guid factoryGuid, Func<T, int> getNumericId, params T[] instances)
{
ServerMessengerResolver.Current.Messenger.PerformRefresh<T>(
ServerRegistrarResolver.Current.Registrar.Registrations,
GetRefresherById(factoryGuid),
getNumericId,
instances);
}
/// <summary>
/// Sends a request to all registered load-balanced servers to refresh node with the specified Id
/// using the specified ICacheRefresher with the guid factoryGuid.