示例#1
0
 public RoomAspectLoader(
     IRoomAspectMapper roomAspectMapper,
     IRoomRepository roomRepository,
     IParticipantRepository participantRepository)
 {
     _roomAspectMapper      = roomAspectMapper;
     _roomRepository        = roomRepository;
     _participantRepository = participantRepository;
 }
 public RoomAspectLoaderProxy(
     IRoomAspectMapper roomAspectMapper,
     IRoomRepository roomRepository,
     IParticipantRepository participantRepository,
     IMemoryCache memoryCache)
 {
     _roomAspectLoader          = new RoomAspectLoader(roomAspectMapper, roomRepository, participantRepository);
     _roomApsectLoaderDecorator = DispatchProxy.Create <IRoomAspectLoader, CacheProxy>();
     ((CacheProxy)_roomApsectLoaderDecorator).Wrapped     = _roomAspectLoader;
     ((CacheProxy)_roomApsectLoaderDecorator).CacheAction = new CacheAction <IRoomAspect, RoomReference>(memoryCache);
 }