private static Type GetChannelProviderType()
{
string channelProviderTypeName = ConfigurationManager.AppSettings["ClusterChannelProvider"];
//TODO localize error message
if (string.IsNullOrEmpty(channelProviderTypeName))
return typeof(VoidChannel);
Type channelAdapterType = SenseNet.ContentRepository.Storage.TypeHandler.GetType(channelProviderTypeName);
if (channelAdapterType == null)
throw new ArgumentException("ClusterChannelProvider is not correctly configured.");
return channelAdapterType;
}