예제 #1
0
        public CustomerUtils()
        {
            // svc = DependencyInjector.Get<ICustProdRegistrationsserviceagent, CustProdRegistrationsserviceagent>();
            commonHelper = DependencyInjector.Get <ICommonHelper, CommonHelper>();


            authUtils     = DependencyInjector.Get <IAuthenticationUtils, AuthenticationUtils>();
            isacUserUtils = DependencyInjector.Get <IUserUtils, UserUtils>();



            // svc.Setup();
        }
예제 #2
0
 public TeamService(IHttpContextAccessor httpContext,
                    AlexandriaContext context,
                    IUserUtils userUtils,
                    IAuthorizationService authorizationService,
                    IBackgroundWorker backgroundWorker,
                    IOptions <Shared.Configuration.Queue> queues,
                    IProfanityValidator profanityValidator,
                    SlackClient slackClient,
                    ICacheBreaker cacheBreaker)
 {
     this.httpContext          = httpContext.HttpContext;
     this.context              = context;
     this.userUtils            = userUtils;
     this.authorizationService = authorizationService;
     this.backgroundWorker     = backgroundWorker;
     this.queues             = queues.Value ?? throw new NoNullAllowedException("Queue Options can't be null");
     this.profanityValidator = profanityValidator;
     this.slackClient        = slackClient;
     this.cacheBreaker       = cacheBreaker;
 }
 public Authorization(IUserUtils userUtils)
 {
     _userUtils = userUtils;
 }
예제 #4
0
 public RateLimiterMiddleWare(RequestDelegate next, IRateLimiter rateLimiter, IUserUtils userUtils)
 {
     _next        = next;
     _rateLimiter = rateLimiter;
     _userUtils   = userUtils;
 }
 public UsersController(IUsersLogic usersLogic, IUserUtils userUtils)
 {
     _usersLogic = usersLogic;
     _userUtils  = userUtils;
 }