/// <summary> /// Constructor used when running performance tests /// </summary> public MethodLoggingInterceptor(IPerfTestSvc perfTestSvc, ICurrentUserSvc currentUserSvc, IConfigurationSvc configurationSvc, ILoggerFactory loggerFactory) : base(perfTestSvc, currentUserSvc, configurationSvc, loggerFactory) { }
/// <summary> /// Constructor. /// </summary> protected PersistenceDALBase(ICurrentUserSvc currentUserSvc, ISessionFactory sessionFactory, ILoggerFactory loggerFactory) { this.currentUserSvc = currentUserSvc; this.sessionFactory = sessionFactory; logger = loggerFactory.GetLogger(GetType()); }
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); }
/// <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) { }
/// <summary> /// Constructor. /// </summary> public AuditInterceptor(ICurrentUserSvc currentUserSvc) { this.currentUserSvc = currentUserSvc; }