/// <summary>
 /// Constructor used when running performance tests
 /// </summary>
 public MethodLoggingInterceptor(IPerfTestSvc perfTestSvc, 
     ICurrentUserSvc currentUserSvc,
     IConfigurationSvc configurationSvc,
     ILoggerFactory loggerFactory)
     : base(perfTestSvc, currentUserSvc, configurationSvc, loggerFactory)
 {
 }
示例#2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected PersistenceDALBase(ICurrentUserSvc currentUserSvc, 
     ISessionFactory sessionFactory,
     ILoggerFactory loggerFactory)
 {
     this.currentUserSvc = currentUserSvc;
     this.sessionFactory = sessionFactory;
     logger = loggerFactory.GetLogger(GetType());
 }
示例#3
0
 public void TestCurrentUser()
 {
     currentUserSvc = iocContainer.Resolve<ICurrentUserSvc>();
     List<Thread> testThreads = new List<Thread>();
     for (int idx = 0; idx < 10; idx++) testThreads.Add(new Thread(TestCurrentUserThrd));
     foreach (Thread ts in testThreads) ts.Start();
     foreach (Thread ts in testThreads) ts.Join(5000);
 }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PerfTestController(IPerfTestSvc perfTestSvc, ICurrentUserSvc currentUserSvc,
     ILoggerFactory loggerFactory)
 {
     this.perfTestSvc = perfTestSvc;
     this.currentUserSvc = currentUserSvc;
     logger = loggerFactory.GetLogger(GetType());
     resultsMap = new Dictionary<string, TestSuiteResult>();
 }
 /// <summary>
 /// Constructor used when running performance tests
 /// </summary>
 protected MethodLoggingInterceptorBase(IPerfTestSvc perfTestSvc, 
     ICurrentUserSvc currentUserSvc,
     IConfigurationSvc configurationSvc,
     ILoggerFactory loggerFactory)
 {
     this.perfTestSvc = perfTestSvc;
     this.currentUserSvc = currentUserSvc;
     this.configurationSvc = configurationSvc;
     logger = loggerFactory.GetLogger(GetType());
 }
 /// <summary>
 /// Production constructor (no PerfTest component)
 /// </summary>
 public MethodLoggingInterceptor(ICurrentUserSvc currentUserSvc,
     IConfigurationSvc configurationSvc,
     ILoggerFactory loggerFactory)
     : this(null, currentUserSvc, configurationSvc, loggerFactory)
 {
 }
 /// <summary>
 /// Production constructor (no PerfTest component)
 /// </summary>
 protected MethodLoggingInterceptorBase(ICurrentUserSvc currentUserSvc, 
     IConfigurationSvc configurationSvc,
     ILoggerFactory loggerFactory)
     : this(null, currentUserSvc, configurationSvc, loggerFactory)
 {
 }
示例#8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public AuditInterceptor(ICurrentUserSvc currentUserSvc)
 {
     this.currentUserSvc = currentUserSvc;
 }