init
This commit is contained in:
40
MarketDataLib/Helper/ThreadHelper.cs
Normal file
40
MarketDataLib/Helper/ThreadHelper.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using MarketData.Utils;
|
||||
|
||||
namespace MarketData.Helper
|
||||
{
|
||||
public enum ThreadHelperEnum{MaxThreads=25};
|
||||
public class ThreadHelper
|
||||
{
|
||||
public String Symbol{get;set;}
|
||||
public DateTime Modified{get;set;}
|
||||
public ManualResetEvent ResetEvent{get;set;}
|
||||
public UpdateManager updateManager;
|
||||
|
||||
public ThreadHelper()
|
||||
{
|
||||
Modified=DateTime.Now;
|
||||
}
|
||||
public ThreadHelper(String symbol, ManualResetEvent resetEvent)
|
||||
{
|
||||
Symbol=symbol;
|
||||
ResetEvent=resetEvent;
|
||||
}
|
||||
public ThreadHelper(String symbol, DateTime modified,ManualResetEvent resetEvent)
|
||||
{
|
||||
Symbol=symbol;
|
||||
Modified=modified;
|
||||
ResetEvent=resetEvent;
|
||||
}
|
||||
public UpdateManager UpdateManager
|
||||
{
|
||||
get{return updateManager;}
|
||||
set{updateManager=value;}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user