Пример #1
0
 public ClientFeatureManagementProvider(
     ICurrentClient currentClient,
     IFeatureManagementStore store)
     : base(store)
 {
     CurrentClient = currentClient;
 }
Пример #2
0
 public ClientFeatureValueProvider(
     IFeatureStore featureStore,
     ICurrentClient currentClient)
     : base(featureStore)
 {
     CurrentClient = currentClient;
 }
Пример #3
0
        public async Task <GlobalConfigurationDto> GetAsync(GlobalGetByAppIdInputDto input)
        {
            ICurrentClient client        = null;
            var            currentClient = LazyGetRequiredService(ref client);

            return(await GlobalConfigurationAppService.GetAsync(input));
        }
 public MethodInvocationAuthorizationService(
     IAuthorizationService authorizationService,
     ICurrentUser currentUser,
     ICurrentClient currentClient)
 {
     _authorizationService = authorizationService;
     _currentUser          = currentUser;
     _currentClient        = currentClient;
 }
Пример #5
0
 public AbpSerilogMiddleware(
     ICurrentTenant currentTenant,
     ICurrentUser currentUser,
     ICurrentClient currentClient,
     ICorrelationIdProvider correlationIdProvider,
     IOptions <AbpAspNetCoreSerilogOptions> options)
 {
     _currentTenant         = currentTenant;
     _currentUser           = currentUser;
     _currentClient         = currentClient;
     _correlationIdProvider = correlationIdProvider;
     _options = options.Value;
 }
Пример #6
0
 /// <summary>
 /// /初始化一个<see cref="DefaultSecurityLogManager"/>类型的实例
 /// </summary>
 /// <param name="securityLogOptions">安全日志选项配置</param>
 /// <param name="securityLogStore">安全日志存储器</param>
 /// <param name="logger">日志</param>
 /// <param name="currentUser">当前用户</param>
 /// <param name="currentClient">当前客户端</param>
 /// <param name="httpContextAccessor">Http上下文访问器</param>
 /// <param name="correlationIdProvider">跟踪标识提供程序</param>
 /// <param name="webClientInfoProvider">Web客户端信息提供程序</param>
 public AspNetCoreSecurityLogManager(IOptions <BingSecurityLogOptions> securityLogOptions
                                     , ISecurityLogStore securityLogStore
                                     , ILogger <AspNetCoreSecurityLogManager> logger
                                     , ICurrentUser currentUser
                                     , ICurrentClient currentClient
                                     , IHttpContextAccessor httpContextAccessor
                                     , ICorrelationIdProvider correlationIdProvider
                                     , IWebClientInfoProvider webClientInfoProvider)
     : base(securityLogOptions, securityLogStore)
 {
     Logger                = logger;
     CurrentUser           = currentUser;
     CurrentClient         = currentClient;
     HttpContextAccessor   = httpContextAccessor;
     CorrelationIdProvider = correlationIdProvider;
     WebClientInfoProvider = webClientInfoProvider;
 }
Пример #7
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="serviceScopeFactory"></param>
 /// <param name="distributedEventBusOptions"></param>
 /// <param name="capPublisher"></param>
 /// <param name="currentUser"></param>
 /// <param name="currentTenant"></param>
 /// <param name="currentClient"></param>
 /// <param name="cancellationTokenProvider"></param>
 /// <param name="customDistributedEventSubscriber"></param>
 public CAPDistributedEventBus(IServiceScopeFactory serviceScopeFactory,
                               IOptions <AbpDistributedEventBusOptions> distributedEventBusOptions,
                               ICapPublisher capPublisher,
                               ICurrentUser currentUser,
                               ICurrentClient currentClient,
                               ICurrentTenant currentTenant,
                               ICancellationTokenProvider cancellationTokenProvider,
                               ICustomDistributedEventSubscriber customDistributedEventSubscriber)
     : base(serviceScopeFactory, currentTenant)
 {
     CapPublisher                     = capPublisher;
     CurrentUser                      = currentUser;
     CurrentClient                    = currentClient;
     CancellationTokenProvider        = cancellationTokenProvider;
     CustomDistributedEventSubscriber = customDistributedEventSubscriber;
     AbpDistributedEventBusOptions    = distributedEventBusOptions.Value;
     HandlerFactories                 = new ConcurrentDictionary <Type, List <IEventHandlerFactory> >();
     EventTypes = new ConcurrentDictionary <string, Type>();
 }
Пример #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AuditingHelper"/> class.
        /// </summary>
        /// <param name="auditSerializer">The audit serializer.</param>
        /// <param name="options">The options.</param>
        /// <param name="currentUser">The current user.</param>
        /// <param name="currentClient">The current client.</param>
        /// <param name="auditingStore">The auditing store.</param>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="correlationIdProvider">The correlation identifier provider.</param>
        public AuditingHelper(
            IAuditSerializer auditSerializer,
            IOptions <AuditingOptions> options,
            ICurrentUser currentUser,
            ICurrentClient currentClient,
            IAuditingStore auditingStore,
            ILogger <AuditingHelper> logger,
            IServiceProvider serviceProvider,
            ICorrelationIdProvider correlationIdProvider)
        {
            Options         = options.Value;
            AuditSerializer = auditSerializer;
            CurrentUser     = currentUser;
            CurrentClient   = currentClient;
            AuditingStore   = auditingStore;

            Logger                = logger;
            ServiceProvider       = serviceProvider;
            CorrelationIdProvider = correlationIdProvider;
        }
 public RedisClientLimitFeatureNamingNormalizer(
     ICurrentClient currentClient,
     ICurrentTenant currentTenant) : base(currentTenant)
 {
     CurrentClient = currentClient;
 }