コード例 #1
0
        protected virtual async Task <FileContainerConfiguration> GetConfigurationInternal(string name)
        {
            var configuration = await ConfigurationCache.GetAsync(name);

            if (configuration == null)
            {
                //Read from db
                var container = await FileStoringContainerRepository.FindAsync(name);

                if (container != null)
                {
                    configuration = FileContainerConfigurationConverter.ToConfiguration(container);
                    await ConfigurationCache.SetAsync(name, configuration);
                }
            }

            return(configuration);
        }