public CompensationRespository(ILogger <ICompensationRepository> logger, CompensationContext compensationContext, EmployeeContext employeeContext, IEmployeeService employeeService) { _compensationContext = compensationContext; _employeeContext = employeeContext; _employeeService = employeeService; _logger = logger; }
// Constructors // public CompensationRepository(ILogger <ICompensationRepository> logger, CompensationContext compensationContext, EmployeeContext employeeContext) { _compensationContext = compensationContext; _logger = logger; _employeeContext = employeeContext; }
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; }
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; }
public CompensationRepository(CompensationContext context, ILogger <CompensationRepository> logger) { _context = context; _logger = logger; }
public CompensationRepository(CompensationContext compensationContext) { _compensationContext = compensationContext; }
public EmployeeRespository(ILogger <IEmployeeRepository> logger, EmployeeContext employeeContext, CompensationContext compensationContext) { _employeeContext = employeeContext; _logger = logger; _compensationContext = compensationContext; }