public FilePortfolioServer(Framework framework, string fileName, string host = null, int port = -1) : base(framework)
{
this.host = host;
this.port = port;
this.dataFile= host == null? new DataFile(fileName, framework.StreamerManager): new NetDataFile(fileName, host, port, framework.StreamerManager);
}