[Quickfix-developers] .NET SessionSettings
Brought to you by:
orenmnero
|
From: Peter W. <Pe...@af...> - 2003-04-29 07:12:16
|
Hi, All -
I am interested in using QuickFIX and have just started putting together a
prototype - can anyone help with the following question?
The sample C# code for initialising a QuickFIX connection is given below,
straight from the documentation. However, the FileLogFactory constructor
only takes a string (Path), not a SessionSettings object, and the
SessionSettings .NET wrapper does not expose a method to extract a
particular setting value from the SessionSettings object.
Is there a way for me to access a particular SessionSettings value via the
SessionSettings.unmanaged() method? If so, I'd appreciate a code snippet,
if not how should I proceed? I could add the method, but will have to do it
every time I get a new QuickFIX version...
Regards,
Peter
using Fix;
class MyClass
{
static void Main(string[] args)
{
if(args.Length != 1) return;
String fileName = args[0];
try
{
SessionSettings settings = new SessionSettings(fileName);
Application application = new MyApplication();
FileStoreFactory storeFactory = new FileStoreFactory(settings);
FileLogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
SocketAcceptor acceptor = new SocketAcceptor
(application, factory, settings, logFactory /*optional*/,
messageFactory);
acceptor.start();
}
catch(ConfigError e)
{
Console.WriteLine(e);
}
}
}
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
|