Exemplo n.º 1
0
 public ServiceValidator(
     IUnitOfWork db,
     IClaimAccessor currentUser)
 {
     _currentUser = currentUser;
     _db          = db;
 }
Exemplo n.º 2
0
 public OrderService(IUnitOfWork db, IShoppingCart cart, IServiceValidator validator, IClaimAccessor currentUser)
 {
     _db          = db;
     _cart        = cart;
     _validator   = validator;
     _currentUser = currentUser;
 }
Exemplo n.º 3
0
 public ShoppingCart(IClaimAccessor currentUser,
                     IRecordRepository records,
                     IMapper mapper,
                     IServiceValidator validator)
 {
     _records     = records;
     _currentUser = currentUser;
     _mapper      = mapper;
     _validator   = validator;
 }
Exemplo n.º 4
0
 public CurrentUserActivities(IUserRepository users, IClaimAccessor currentUserClaims, IMapper mapper)
 {
     IsAuthenticated = currentUserClaims.IsAuthenticated;
     _mapper         = mapper;
     if (IsAuthenticated)
     {
         //todo better way than getawaiter.getresult
         _currentUser = users.Find(currentUserClaims.Id).GetAwaiter().GetResult();
         Id           = currentUserClaims.Id;
     }
 }
 public ShoppingCartCacheProxy(
     IClaimAccessor currentUser,
     IRecordRepository records,
     IMapper mapper,
     IDatabase cacheProvider,
     IServiceValidator validator)
     : base(currentUser, records, mapper, validator)
 {
     _cacheProvider = cacheProvider;
     _items         = FindCurrentUserCart();
 }
Exemplo n.º 6
0
 public AudioService(
     IAudioRepository audioRepository,
     AudioAnalyzer audioAnalyzer,
     FileStorage fileStorage,
     IServiceProvider provider,
     IBackgroundTaskQueue queue,
     IClaimAccessor currentUser)
 {
     this.audioRepository = audioRepository;
     this.audioAnalyzer   = audioAnalyzer;
     this.fileStorage     = fileStorage;
     this.queue           = queue;
     this.provider        = provider;
     this.currentUser     = currentUser;
 }
Exemplo n.º 7
0
 public AddressService(IUnitOfWork db, IServiceValidator validator, IClaimAccessor currentUser)
 {
     _db          = db;
     _validator   = validator;
     _currentUser = currentUser;
 }
Exemplo n.º 8
0
 public SetupRequestInfo(IClaimAccessor claimAccessor, IRequestInfo requestInfo)
 {
     _claimAccessor = claimAccessor;
     _requestInfo   = requestInfo;
 }