예제 #1
0
 public AdminkaRoutineHandlerBaseAsync(
     ApplicationSettings applicationSettings,
     TUserContext userContext,
     Func <TUserContext, string> getAuditStamp,
     object input,
     Guid correlationToken,
     ITraceDocumentBuilder documentBuilder,
     bool hasVerboseLoggingPrivilege,
     string configurationFor,
     MemberTag memberTag
     ) : this( // to final
         applicationSettings,
         getAuditStamp,
         new AdminkaRoutineHandlerFactory <TUserContext>(
             correlationToken,
             InjectedManager.DefaultRoutineTagTransformException,
             InjectedManager.ComposeNLogMemberLoggerFactory(documentBuilder),
             applicationSettings.PerformanceCounters)
         .CreateLoggingHandler(
             memberTag,
             InjectedManager.CreateContainerFactory(
                 applicationSettings.ConfigurationContainerFactory
                 ).CreateContainer(memberTag, configurationFor),
             userContext,
             hasVerboseLoggingPrivilege,
             input)
         )
 {
 }
예제 #2
0
 // used by wcf and test (predefined UserContext with its own transformException)
 public AdminkaRoutineHandlerBaseAsync(
     ApplicationSettings applicationSettings,
     IPerformanceCounters performanceCounters,
     IConfigurationContainerFactory configurationFactory,
     Func <Exception, Guid, MemberTag, /* Func<Exception, string>,*/ Exception> routineTransformException,
     Guid correlationToken,
     ITraceDocumentBuilder documentBuilder,
     MemberTag memberTag,
     TUserContext userContext,
     bool hasVerboseLoggingPrivilege,
     string configurationFor,
     Func <TUserContext, string> getAuditStamp,
     object input
     ) : this(
         applicationSettings,
         performanceCounters,
         routineTransformException,
         InjectedManager.ComposeNLogMemberLoggerFactory(documentBuilder),
         InjectedManager.CreateContainerFactory(configurationFactory).CreateContainer(memberTag, configurationFor),
         correlationToken,
         memberTag,
         userContext,
         hasVerboseLoggingPrivilege,
         getAuditStamp,
         input)
 {
 }
예제 #3
0
 public AdminkaAnonymousRoutineHandlerAsync(
     ApplicationSettings applicationSettings,
     bool hasVerboseLoggingPrivilege,
     MemberTag memberTag,
     string auditStamp,
     object input) : this(
         applicationSettings,
         InjectedManager.ComposeNLogMemberLoggerFactory(null),
         hasVerboseLoggingPrivilege,
         memberTag,
         auditStamp,
         input
         )
 {
 }