private static IMicrosoftStorageConfig GetAzureServiceConfig(IKernel k, ComponentModel cm, CreationContext cc)
        {
            var serviceConfig = new DefaultAzureServiceConfigurationProvider(k.Resolve<IAppConfigSettings>()).GetConfigRaw();
            var webConfig = serviceConfig["Web"];

            return new DictionaryAdapterFactory().GetAdapter<IMicrosoftStorageConfig>(webConfig);
        }
        private static IMicrosoftStorageConfig GetAzureServiceConfig(IKernel k, ComponentModel cm, CreationContext cc)
        {
            var serviceConfig = new DefaultAzureServiceConfigurationProvider(k.Resolve<IAppConfigSettings>()).GetConfigRaw();

            Dictionary<string, string> workerConfig = null;
            if (!serviceConfig.TryGetValue("Worker", out workerConfig))
            {
                workerConfig = new Dictionary<string, string>();
            }

            return new DictionaryAdapterFactory().GetAdapter<IMicrosoftStorageConfig>(workerConfig);
        }