Example #1
0
 public CompensationRespository(ILogger <ICompensationRepository> logger, CompensationContext compensationContext, EmployeeContext employeeContext, IEmployeeService employeeService)
 {
     _compensationContext = compensationContext;
     _employeeContext     = employeeContext;
     _employeeService     = employeeService;
     _logger = logger;
 }
Example #2
0
        // Constructors
        //
        public CompensationRepository(ILogger <ICompensationRepository> logger,
                                      CompensationContext compensationContext,
                                      EmployeeContext employeeContext)
        {
            _compensationContext = compensationContext;
            _logger = logger;

            _employeeContext = employeeContext;
        }
Example #3
0
 public CompensableAttribute(string compensationMethod, int retryDelayInMilliseconds = 0, int timeout = 0, int retries = 0)
 {
     _omegaContext           = (OmegaContext)ServiceLocator.Current.GetInstance(typeof(OmegaContext));
     _compensableInterceptor = (IEventAwareInterceptor)ServiceLocator.Current.GetInstance(typeof(IEventAwareInterceptor));
     _recoveryPolicy         = (IRecoveryPolicy)ServiceLocator.Current.GetInstance(typeof(IRecoveryPolicy));
     _compensationContext    =
         (CompensationContext)ServiceLocator.Current.GetInstance(typeof(CompensationContext));
     _messageFormat           = (IMessageSerializer)ServiceLocator.Current.GetInstance(typeof(IMessageSerializer));
     Retries                  = retries;
     CompensationMethod       = compensationMethod;
     RetryDelayInMilliseconds = retryDelayInMilliseconds;
     Timeout                  = timeout;
     _parenttxId              = _omegaContext.GetGlobalTxId();
 }
 public CompensationRespository(ILogger <ICompensationRepository> logger, CompensationContext compensationContext)
 {
     _compensationContext = compensationContext;
     _logger = logger;
 }
Example #5
0
 public CompensationMessageHandler(IMessageSender sender, CompensationContext context)
 {
     _sender = sender;
     _compensationContext = context;
 }
 public CompensationRepository(CompensationContext compensationContext, ILogger <IEmployeeRepository> logger, IEmployeeService employeeService)
 {
     _compensationContext = compensationContext;
     _logger          = logger;
     _employeeService = employeeService;
 }
Example #7
0
 public CompensationRepository(CompensationContext context, ILogger <CompensationRepository> logger)
 {
     _context = context;
     _logger  = logger;
 }
 public CompensationRepository(CompensationContext compensationContext)
 {
     _compensationContext = compensationContext;
 }
Example #9
0
 public EmployeeRespository(ILogger <IEmployeeRepository> logger, EmployeeContext employeeContext, CompensationContext compensationContext)
 {
     _employeeContext     = employeeContext;
     _logger              = logger;
     _compensationContext = compensationContext;
 }