Skip to content
Browse files

corrections to IInitiator refactor; add ResetOnXXX to executor.cfg

  • Loading branch information...
1 parent 90ac20d commit 7d74d6fa2267b7bb03f378af52a707c50156cd36 @gbirchmeier gbirchmeier committed Oct 20, 2011
Showing with 4 additions and 26 deletions.
  1. +3 −0 Examples/Executor/executor.cfg
  2. +1 −2 QuickFIX.NET/AbstractInitiator.cs
  3. +0 −24 QuickFIX.NET/IInitiator.cs
View
3 Examples/Executor/executor.cfg
@@ -6,6 +6,9 @@ StartTime=00:00:00
EndTime=00:00:00
FileLogPath=log
UseDataDictionary=Y
+ResetOnLogon=Y
+ResetOnLogout=Y
+ResetOnDisconnect=Y
[SESSION]
BeginString=FIX.4.0
View
3 QuickFIX.NET/AbstractInitiator.cs
@@ -3,7 +3,7 @@
namespace QuickFix
{
- public abstract class AbstractInitiator
+ public abstract class AbstractInitiator : IInitiator
{
private object sync_ = new object();
private Dictionary<SessionID,Session> sessions_ = new Dictionary<SessionID, Session>();
@@ -112,7 +112,6 @@ public bool IsLoggedOn()
{
lock (sync_)
{
-
foreach (SessionID sessionID in connected_)
{
if (Session.LookupSession(sessionID).IsLoggedOn)
View
24 QuickFIX.NET/IInitiator.cs
@@ -18,29 +18,5 @@ public interface IInitiator
void Stop(bool force);
bool IsLoggedOn();
-
- /// <summary>
- /// Start connecting to targets.
- /// </summary>
- void OnStart();
-
- /// <summary>
- /// Connect and poll for events.
- /// </summary>
- /// <param name="timeout"></param>
- /// <returns></returns>
- bool OnPoll(double timeout);
-
- /// <summary>
- /// Stop a running initiator.
- /// </summary>
- void OnStop();
-
- /// <summary>
- /// Connect a session to its target.
- /// </summary>
- /// <param name="sessionID"></param>
- /// <param name="settings"></param>
- void DoConnect(SessionID sessionID, QuickFix.Dictionary settings);
}
}

0 comments on commit 7d74d6f

Please sign in to comment.
Something went wrong with that request. Please try again.