コード例 #1
0
        public MultimediaService(
            IModelDbFactory modelDbFactory,
            ISanitizer sanitizer,
            IAutoMapperService mapper,
            IEfDbContextSaveChanges context,
            IPhotoArtSystemEfDbRepository <Multimedia> multimedia)
        {
            Guard.WhenArgument(
                modelDbFactory,
                GlobalConstants.ModelDbFactoryRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                sanitizer,
                GlobalConstants.SanitizerRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                context,
                GlobalConstants.EfDbContextRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                multimedia,
                GlobalConstants.MultimediaEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();

            this.modelDbFactory = modelDbFactory;
            this.sanitizer      = sanitizer;
            this.mapper         = mapper;
            this.context        = context;
            this.multimedia     = multimedia;
        }
コード例 #2
0
        public ImageService(
            IModelDbFactory modelDbFactory,
            IAutoMapperService mapper,
            IEfDbContextSaveChanges context,
            IPhotoArtSystemEfDbRepository <Image> images,
            IImageCloudStorage storage)
        {
            Guard.WhenArgument(
                modelDbFactory,
                GlobalConstants.ModelDbFactoryRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                context,
                GlobalConstants.EfDbContextRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                images,
                GlobalConstants.ImageEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                storage,
                GlobalConstants.CloudStorageRequiredExceptionMessage).IsNull().Throw();

            this.modelDbFactory = modelDbFactory;
            this.mapper         = mapper;
            this.context        = context;
            this.images         = images;
            this.storage        = storage;
        }
コード例 #3
0
        public PhotocourseService(
            IModelDbFactory modelDbFactory,
            ISanitizer sanitizer,
            IAutoMapperService mapper,
            IEfDbContextSaveChanges context,
            IPhotoArtSystemEfDbRepository <Photocourse> photocourses)
        {
            Guard.WhenArgument(
                modelDbFactory,
                GlobalConstants.ModelDbFactoryRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                sanitizer,
                GlobalConstants.SanitizerRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                context,
                GlobalConstants.EfDbContextRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                photocourses,
                GlobalConstants.PhotocourseEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();

            this.modelDbFactory = modelDbFactory;
            this.sanitizer      = sanitizer;
            this.mapper         = mapper;
            this.context        = context;
            this.photocourses   = photocourses;
        }
コード例 #4
0
            // The Typed method for RawAutoMappers
            static IAutoMapperRequestKey <TSource, TDestination> SubmitRawAutoMapperRequest <TSource, TDestination>
            (
                IAutoMapperConfigDetails autoMapperConfigDetails,
                Type sourceType,
                Type destinationType,
                string configPackageName,
                IHaveAMapperConfigurationStep configStarterForThisRequest,
                IAutoMapperService autoMapperProvider
            )
            {
                IMapTypeDefinition srcMapTypeDef = new MapTypeDefinition(typeof(TSource));
                IMapTypeDefinition dstMapTypeDef = new MapTypeDefinition(typeof(TDestination));

                IAutoMapperRequestKey <TSource, TDestination> result
                    = autoMapperProvider.SubmitRawAutoMapperRequest <TSource, TDestination>
                      (
                          srcMapTypeDef: srcMapTypeDef,
                          dstMapTypeDef: dstMapTypeDef,
                          configuationDetails: autoMapperConfigDetails,
                          configPackageName: configPackageName,
                          configStarterForThisRequest: configStarterForThisRequest
                      );

                return(result);
            }
 public TransportationController(
     IMessageBrokerService messageBrokerService,
     IAutoMapperService autoMapperService)
 {
     _messageBrokerService = messageBrokerService;
     _autoMapperService    = autoMapperService;
 }
コード例 #6
0
 public ArticleController(IArticleRepository articleRepository, ILoggerService logService,
                          IAutoMapperService mapperService
                          ) : base(logService)
 {
     this.articleRepository = articleRepository;
     _logService            = logService;
     _mapperService         = mapperService;
 }
 public GetAlertQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertService alertService,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertService      = alertService;
     _autoMapperService = autoMapperService;
 }
コード例 #8
0
 public MultimediaSetupController(
     IMultimediaService multimediaService,
     ICacheService cache,
     IAutoMapperService mapper)
     : base(mapper)
 {
     this.multimediaService = multimediaService;
     this.cache             = cache;
 }
コード例 #9
0
 public GetUserViolationListQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IViolationService violationService,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _violationService  = violationService;
     _autoMapperService = autoMapperService;
 }
コード例 #10
0
 public PostAlertQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertRepository alertRepository,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertRepository   = alertRepository;
     _autoMapperService = autoMapperService;
 }
コード例 #11
0
 public PhotocourseController(
     IPhotocourseService photocourseService,
     ICacheService cache,
     IAutoMapperService mapper)
     : base(mapper)
 {
     this.photocourseService = photocourseService;
     this.cache = cache;
 }
 public GetTransportationAlertListQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertRepository alertRepository,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertRepository   = alertRepository;
     _autoMapperService = autoMapperService;
 }
 public PostCapturedLocationQueueHandler(
     ILoggingService loggingService,
     IAutoMapperService autoMapperService,
     ICapturedLocationService capturedLocationService
     )
     : base(loggingService.GetLogAction())
 {
     _autoMapperService       = autoMapperService;
     _capturedLocationService = capturedLocationService;
 }
 public PhotocourseSetupController(
     ICacheService cache,
     IImageService imageService,
     IPhotocourseService photocourseService,
     IAutoMapperService mapper)
     : base(mapper)
 {
     this.cache              = cache;
     this.imageService       = imageService;
     this.photocourseService = photocourseService;
 }
コード例 #15
0
 public HomeController(
     IInformationGetService informationService,
     IPhotocourseGetService photocourseService,
     ICacheService cache,
     IAutoMapperService mapper)
     : base(mapper)
 {
     this.informationService = informationService;
     this.photocourseService = photocourseService;
     this.cache = cache;
 }
コード例 #16
0
 public GetUsersQueueHandler(
     IUserRepository userRepository,
     ILoggingService loggingService,
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAutoMapperService autoMapperService
     )
     : base(loggingService.GetLogAction())
 {
     _userRepository = userRepository;
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _autoMapperService = autoMapperService;
 }
コード例 #17
0
        public ApplicationUserProfileService(IAutoMapperService mapper, IPhotoArtSystemEfDbRepository <ApplicationUser> users)
        {
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                users,
                GlobalConstants.ApplicationUserEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();

            this.mapper = mapper;
            this.users  = users;
        }
コード例 #18
0
 public SimplePropBagMapperService
 (
     IMapTypeDefinitionProvider mapTypeDefinitionProvider,
     IPropBagMapperBuilderProvider mapperBuilderProvider,
     ICachePropBagMappers mappersCachingService,
     IAutoMapperService autoMapperService
 )
 {
     _mapTypeDefinitionProvider = mapTypeDefinitionProvider ?? throw new ArgumentNullException(nameof(mapTypeDefinitionProvider));
     _mapperBuilderProvider     = mapperBuilderProvider ?? throw new ArgumentNullException(nameof(mapperBuilderProvider));
     _propBagMappersCache       = mappersCachingService ?? throw new ArgumentNullException(nameof(mappersCachingService));
     _autoMapperService         = autoMapperService ?? throw new ArgumentNullException(nameof(autoMapperService));
 }
コード例 #19
0
        public StudentService(IAutoMapperService mapper, IEfDbContextSaveChanges context, IPhotoArtSystemEfDbRepository <Student> students)
        {
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                context,
                GlobalConstants.EfDbContextRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                students,
                GlobalConstants.StudentEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();

            this.mapper   = mapper;
            this.context  = context;
            this.students = students;
        }
コード例 #20
0
        public InformationService(
            IAutoMapperService mapper,
            IEfDbContextSaveChanges context,
            IPhotoArtSystemEfDbRepository <Information> information)
        {
            Guard.WhenArgument(
                mapper,
                GlobalConstants.AutoMapperServiceRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                context,
                GlobalConstants.EfDbContextRequiredExceptionMessage).IsNull().Throw();
            Guard.WhenArgument(
                information,
                GlobalConstants.InformationEfDbRepositoryRequiredExceptionMessage).IsNull().Throw();

            this.mapper      = mapper;
            this.context     = context;
            this.information = information;
        }
コード例 #21
0
 public TeachingUnitService(IUnitOfWork uow, IAutoMapperService mapper, ILogger <TeachingUnitService> logger) : base(uow, mapper, logger)
 {
 }
コード例 #22
0
 public AccountController(SignInManager <AppUser> signInManager, IAutoMapperService mapper, UserManager <AppUser> userManager)
 {
     this.signInManager = signInManager;
     this.mapper        = mapper;
     this.userManager   = userManager;
 }
コード例 #23
0
 public ServiceBase(IUnitOfWork uow, IAutoMapperService mapper, ILogger <ServiceBase> logger)
 {
     _uow    = uow;
     _mapper = mapper;
     _logger = logger;
 }
コード例 #24
0
ファイル: PeopleBlock.cs プロジェクト: nixiaozi/BoB
 protected override void Init()
 {
     _autoMapperService = CurrentServiceProvider.GetService <IAutoMapperService>();
 }
コード例 #25
0
 public FileDocumentService(IUnitOfWork uow, IAutoMapperService mapper, ILogger <FileDocumentService> logger) : base(uow, mapper, logger)
 {
 }
コード例 #26
0
 public ClientService(IUnitOfWork uow, IAutoMapperService mapper, ILogger <ClientService> logger)
     : base(uow, mapper, logger)
 {
 }
コード例 #27
0
 public StatusService(IUnitOfWork uow, IAutoMapperService mapper, ILogger <CoffeeService> logger) : base(uow, mapper, logger)
 {
 }
コード例 #28
0
 public PersonServiceCsv(IFileLoader fileLoaderCsv, IAutoMapperService mapper)
 {
     _fileLoaderCsv = fileLoaderCsv;
     _mapper        = mapper;
 }
コード例 #29
0
 protected BaseController(IAutoMapperService mapper)
 {
     this.Mapper = mapper;
 }
コード例 #30
0
ファイル: PersonService.cs プロジェクト: jaoude/InciOneSoft
 public PersonService(IUnitOfWork uow, IAutoMapperService mapper, ILogger <PersonService> logger) : base(uow, mapper, logger)
 {
 }