QuickFix.SessionSettings.GetSessions C# (CSharp) Method

GetSessions() public method

public GetSessions ( ) : HashSet
return HashSet
        public HashSet<SessionID> GetSessions()
        {
            HashSet<SessionID> result = new HashSet<SessionID>();
            foreach (KeyValuePair<SessionID, QuickFix.Dictionary> entry in settings_)
                result.Add(entry.Key);
            return result;
        }

Usage Example

コード例 #1
0
        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");
        }
All Usage Examples Of QuickFix.SessionSettings::GetSessions