public HashSet<SessionID> GetSessions()
{
HashSet<SessionID> result = new HashSet<SessionID>();
foreach (KeyValuePair<SessionID, QuickFix.Dictionary> entry in settings_)
result.Add(entry.Key);
return result;
}
public AbstractInitiator( IApplication app, IMessageStoreFactory storeFactory, SessionSettings settings, ILogFactory logFactory, IMessageFactory messageFactory) { _app = app; _storeFactory = storeFactory; _settings = settings; _logFactory = logFactory; _msgFactory = messageFactory; HashSet<SessionID> definedSessions = _settings.GetSessions(); if (0 == definedSessions.Count) throw new ConfigError("No sessions defined"); }