SenseNet.ContentRepository.DistributedApplication.GetChannelProviderType C# (CSharp) Method

GetChannelProviderType() private static method

private static GetChannelProviderType ( ) : Type
return System.Type
        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;
        }