/// <summary>
        /// Add  <see cref="ServiceFabricConfigurationSource"/> (as another source of configurtion) to the configuration builder,
        /// that eventually will create <see cref="IConfiguration"/>
        /// This source is used to work in development environment when running a service as Web App.
        /// </summary>
        public static IConfigurationBuilder AddServiceFabricXmlConfiguration(this IConfigurationBuilder builder, string path)
        {
            var source = new ServiceFabricXmlConfigurationSource()
            {
                FileProvider   = null,
                Path           = path,
                ReloadOnChange = true,
            };

            source.ResolveFileProvider();
            return(builder.Add(source));
        }
Beispiel #2
0
 public ServiceFabricXmlConfigurationProvider(ServiceFabricXmlConfigurationSource source)
     : base(source)
 {
 }