public ValuesController( IKeyValueContainer container, IKeyGenerator keyGenerator, ILogger logger) { this.container = container; this.keyGenerator = keyGenerator; this.logger = logger; }
public StatusService( ILogger logger, IKeyValueContainer keyValueContainer, IServicesConfig servicesConfig ) { this.log = logger; this.keyValueContainer = keyValueContainer; this.servicesConfig = servicesConfig; }
private void ReadParams(IKeyValueContainer keyValueStore) { while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: if (reader.Name.Equals("param")) { string key = null; string val = null; for (int i = 0; i < reader.AttributeCount; i++) { reader.MoveToAttribute(i); if (reader.Name.Equals("key")) { key = reader.Value; } else if (reader.Name.Equals("value")) { val = reader.Value; } } keyValueStore.AddKeyValueData(key, val); } break; case XmlNodeType.EndElement: if (reader.Name.Equals("params")) { return; } else if (reader.Name.Equals("context")) { return; } break; } } }