Beispiel #1
0
 public NhUnitOfWork(INhContext context)
 {
     Session = context.SessionFactory.
               OpenSession();
     Session.FlushMode = FlushMode.Commit;
     //Session.BeginTransaction();
 }
Beispiel #2
0
		public SourceService(INhContext context, IIOService ioService)
		{
			_context = context;
			_ioService = ioService;
			_localPath = _ioService.CombinePath(
				AppDomain.CurrentDomain.BaseDirectory,
				context.AppSettings["SourceTargetFolder"]);
		}
Beispiel #3
0
		public NhStopwatch(INhContext context, string beginMessage, string endMessage)
		{
			_context = context;
			_endMessage = endMessage;

			_watch = new Stopwatch();
			_watch.Start();
		}
Beispiel #4
0
		public PublishService(INhContext context, IPathService pathService)
		{
			_context = context;
			_pathService = pathService;

			_publishTimeout = Convert.ToInt32(context.AppSettings["PublishTimeout"]);
			_userAgent = context.AppSettings["UserAgent"];
			_sourceUrl = context.AppSettings["SourceUrl"];
		}
Beispiel #5
0
        public NhStopwatch(INhContext context, string beginMessage, string endMessage)
        {
            _context = context;
            _endMessage = endMessage;

            _context.WriteTrace(LogEntryType.Information, beginMessage);

            _watch = new Stopwatch();
            _watch.Start();
        }
Beispiel #6
0
		public ConsoleProxy(INhContext context)
		{
			_context = context;
		}
Beispiel #7
0
		public LoggerProxy(INhContext context)
		{
			_context = context;
		}
Beispiel #8
0
 public StockNhUnitOfWork(INhContext context) : base(context)
 {
     Stocks = new StockRepository(new NhRepository <Company>(context.SessionFactory.OpenSession()));
 }
Beispiel #9
0
		public PathService(INhContext context)
		{
			_sourceTargetFolder = context.AppSettings["SourceTargetFolder"];
		}