示例#1
0
 public ModelContext(MetadataModel model, ITrackingInfoProvider trackingInfoProvider)
 {
     _model = model;
     _trackingInfoProvider     = trackingInfoProvider;
     _cleanupTimer             = new Timer(WeakReferenceCleanupTimer, null, TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(60));
     _attachTransactions       = new Dictionary <AttachTransaction, DateTime>();
     _entityTransactions       = new Dictionary <EntityTransaction, DateTime>();
     _attachTransactionsSignal = new ManualResetEvent(true);
     _entityTransactionsSignal = new ManualResetEvent(true);
 }
示例#2
0
 public Core()
 {
     this.provider = new DozorDataProvider();
 }