[Quantproject-developers] QuantDownloader/Downloader/OpenTickDownloader/OTManagement OTManager.cs,
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-01-11 20:38:21
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/OTManagement In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17077/Downloader/OpenTickDownloader/OTManagement Modified Files: OTManager.cs Log Message: Old commented code has been removed Index: OTManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/OTManagement/OTManager.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** OTManager.cs 30 Nov 2008 22:42:37 -0000 1.3 --- OTManager.cs 11 Jan 2009 20:38:14 -0000 1.4 *************** *** 68,77 **** private static OTClient oTClient; - /// <summary> - /// used to lock OTManager.oTClient: we use a dummy BarRequest - /// but any reference type would have done the job - /// </summary> - // private static BarRequest oTClientCreatorLocker = - // new BarRequest( "A" , "A" , new DateTime( 1 , 1 , 2008 ) ); static OTManager() --- 68,71 ---- *************** *** 105,109 **** public OTManager() { - // this.logFileName = ""; this.commonInitialization(); } --- 99,102 ---- *************** *** 181,187 **** { BarRequest barRequest = this.GetBarRequest( requestId ); - // DateTime dateTimeForRequest = (DateTime) - // this.requestsThatAreNotCompletedYet[ requestId ]; - // this.requestsThatAreNotCompletedYet.Remove( requestId ); string completeMessage = message + "---" + "Ticker: " + oTDataEntity.Symbol + "---" + --- 174,177 ---- *************** *** 281,293 **** OTManager.oTClient.onMessage += new OTMessageEvent( this.onMessageEventHandler ); - // if ( oTClientWasJustCreated ) - // // oTClient was null. We want only one OTManager instance - // // to monitor (and possibly log) oTClient status changes - // { - // OTManager.oTClient.onLogin += new OTLoginEvent( - // OTManager.onLoginEventHandler ); - // OTManager.oTClient.onStatusChanged += new OTStatusChangedEvent( - // OTManager.onStatusChangedEventHandler ); - // } OTManager.oTClient.onHistoricalOHLC += new OTOHLCEvent( this.onHistoricalOHLC ); --- 271,274 ---- *************** *** 310,342 **** OTManager.oTClient.addHost( "feed1.opentick.com" , 10010 ); //OTManager.oTClient.addHost( "delayed1.opentick.com" , 10010 ); - // string username = - // System.Configuration.ConfigurationManager.AppSettings[ - // "usrnm" ]; - // string password = - // System.Configuration.ConfigurationManager.AppSettings[ - // "pswd" ]; OTManager.oTClient.login( openTickUser , openTickPassword ); } - // /// <summary> - // /// This method can be - // /// </summary> - // public void SubmitLogin() - // { - // bool oTCLientWasNullWhenThisMethodBegan; - // // TO DO add a lock to the following two statements - //// lock( ??? what could I use here??? ) - //// { - //// oTCLientWasNullWhenThisMethodBegan = - //// ( OTManager.oTClient == null ); - //// if ( oTCLientWasNullWhenThisMethodBegan ) - //// OTManager.oTClient = new OTClient(); - //// } - // this.setOTClientEventHandlers( oTCLientWasNullWhenThisMethodBegan ); - // if ( oTCLientWasNullWhenThisMethodBegan ) - // this.submitLogin(); - // } - - - public BarRequest GetBarRequest( int requestId ) --- 291,296 ---- |