Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Orleans/Configuration/ProviderConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Orleans.Runtime.Configuration
public class ProviderConfiguration : IProviderConfiguration
{
private IDictionary<string, string> properties;
private IList<ProviderConfiguration> childConfigurations;
private readonly IList<ProviderConfiguration> childConfigurations;
private IList<IProvider> childProviders;
[NonSerialized]
private IProviderManager providerManager;
Expand All @@ -52,27 +52,28 @@ public class ProviderConfiguration : IProviderConfiguration
internal ProviderConfiguration()
{
properties = new Dictionary<string, string>();
childConfigurations = new List<ProviderConfiguration>();
}

public ProviderConfiguration(IDictionary<string, string> properties, string type, string name)
{
this.properties = properties;
Type = type;
Name = name;
childConfigurations = new List<ProviderConfiguration>();
}

// for testing purposes
internal ProviderConfiguration(IDictionary<string, string> properties, IList<IProvider> childProviders)
{
this.properties = properties;
this.childProviders = childProviders;
childConfigurations = new List<ProviderConfiguration>();
}

// Load from an element with the format <Provider Type="..." Name="...">...</Provider>
internal void Load(XmlElement child, IDictionary<string, IProviderConfiguration> alreadyLoaded, XmlNamespaceManager nsManager)
{
childConfigurations = new List<ProviderConfiguration>();

if (nsManager == null)
{
nsManager = new XmlNamespaceManager(new NameTable());
Expand Down Expand Up @@ -144,7 +145,7 @@ internal void SetProviderManager(IProviderManager manager)
child.SetProviderManager(manager);
}

internal void SetProperty(string key, string val)
public void SetProperty(string key, string val)
{
if (!properties.ContainsKey(key))
{
Expand Down