public UserGateway(
     IUserAspectLoader userAspctLoader,
     IUserInfoAspectLoader userInfoAspectLoader,
     IUserInfoSynchronizer userInfoSynchronizer,
     IUserSynchronizer userSynchronizer)
 {
     _userAspctLoader      = userAspctLoader;
     _userInfoAspectLoader = userInfoAspectLoader;
     _userInfoSynchronizer = userInfoSynchronizer;
     _userSynchronizer     = userSynchronizer;
 }
Example #2
0
        public UserAspectLoaderProxy(
            IUserAspectMapper userAspectMapper,
            IUserRepository userRepository,
            IMemoryCache memoryCache)
        {
            _userAspectLoader = new UserAspectLoader(userAspectMapper, userRepository);

            _userAspectLoaderDecorator = DispatchProxy.Create <IUserAspectLoader, CacheProxy>();
            ((CacheProxy)_userAspectLoaderDecorator).Wrapped     = _userAspectLoader;
            ((CacheProxy)_userAspectLoaderDecorator).CacheAction = new CacheAction <IUserAspect, UserReference>(memoryCache);
        }