public NhUnitOfWork(INhContext context) { Session = context.SessionFactory. OpenSession(); Session.FlushMode = FlushMode.Commit; //Session.BeginTransaction(); }
public SourceService(INhContext context, IIOService ioService) { _context = context; _ioService = ioService; _localPath = _ioService.CombinePath( AppDomain.CurrentDomain.BaseDirectory, context.AppSettings["SourceTargetFolder"]); }
public NhStopwatch(INhContext context, string beginMessage, string endMessage) { _context = context; _endMessage = endMessage; _watch = new Stopwatch(); _watch.Start(); }
public PublishService(INhContext context, IPathService pathService) { _context = context; _pathService = pathService; _publishTimeout = Convert.ToInt32(context.AppSettings["PublishTimeout"]); _userAgent = context.AppSettings["UserAgent"]; _sourceUrl = context.AppSettings["SourceUrl"]; }
public NhStopwatch(INhContext context, string beginMessage, string endMessage) { _context = context; _endMessage = endMessage; _context.WriteTrace(LogEntryType.Information, beginMessage); _watch = new Stopwatch(); _watch.Start(); }
public ConsoleProxy(INhContext context) { _context = context; }
public LoggerProxy(INhContext context) { _context = context; }
public StockNhUnitOfWork(INhContext context) : base(context) { Stocks = new StockRepository(new NhRepository <Company>(context.SessionFactory.OpenSession())); }
public PathService(INhContext context) { _sourceTargetFolder = context.AppSettings["SourceTargetFolder"]; }