public SynchronizationService(
     ILogger <SynchronizationService> logger,
     ITelemetryClient telemetryClient,
     IMediator mediator,
     IClaimsProvider claimsProvider,
     IPlantSetter plantSetter,
     ICurrentUserSetter currentUserSetter,
     IBearerTokenSetter bearerTokenSetter,
     IClaimsTransformation claimsTransformation,
     IApplicationAuthenticator authenticator,
     IPlantCache plantCache,
     IOptionsMonitor <SynchronizationOptions> options)
 {
     _logger                 = logger;
     _telemetryClient        = telemetryClient;
     _mediator               = mediator;
     _claimsProvider         = claimsProvider;
     _currentUserSetter      = currentUserSetter;
     _claimsTransformation   = claimsTransformation;
     _plantSetter            = plantSetter;
     _authenticator          = authenticator;
     _bearerTokenSetter      = bearerTokenSetter;
     _plantCache             = plantCache;
     _options                = options;
     _synchronizationUserOid = options.CurrentValue.UserOid;
 }
 public BusReceiverService(IPlantSetter plantSetter,
                           IUnitOfWork unitOfWork,
                           ITelemetryClient telemetryClient,
                           IResponsibleRepository responsibleRepository,
                           IProjectRepository projectRepository,
                           ITagFunctionRepository tagFunctionRepository,
                           ICurrentUserSetter currentUserSetter,
                           IClaimsProvider claimsProvider,
                           IBearerTokenSetter bearerTokenSetter,
                           IApplicationAuthenticator authenticator,
                           IOptionsMonitor <SynchronizationOptions> options,
                           IProjectApiService projectApiService)
 {
     _plantSetter            = plantSetter;
     _unitOfWork             = unitOfWork;
     _telemetryClient        = telemetryClient;
     _responsibleRepository  = responsibleRepository;
     _projectRepository      = projectRepository;
     _tagFunctionRepository  = tagFunctionRepository;
     _currentUserSetter      = currentUserSetter;
     _claimsProvider         = claimsProvider;
     _bearerTokenSetter      = bearerTokenSetter;
     _authenticator          = authenticator;
     _projectApiService      = projectApiService;
     _synchronizationUserOid = options.CurrentValue.UserOid;
 }
示例#3
0
 public BusReceiverService(
     IInvitationRepository invitationRepository,
     IPlantSetter plantSetter,
     IUnitOfWork unitOfWork,
     ITelemetryClient telemetryClient,
     IReadOnlyContext context,
     IMcPkgApiService mcPkgApiService,
     IApplicationAuthenticator authenticator,
     IOptionsSnapshot <AuthenticatorOptions> options,
     ICurrentUserSetter currentUserSetter,
     IBearerTokenSetter bearerTokenSetter)
 {
     _invitationRepository = invitationRepository;
     _plantSetter          = plantSetter;
     _unitOfWork           = unitOfWork;
     _telemetryClient      = telemetryClient;
     _context           = context;
     _mcPkgApiService   = mcPkgApiService;
     _authenticator     = authenticator;
     _currentUserSetter = currentUserSetter;
     _bearerTokenSetter = bearerTokenSetter;
     _ipoApiOid         = options.Value.IpoApiObjectId;
 }