コード例 #1
0
        public NotificationsHandlerService(IFamilyInfrastructureProvider infrastructure)
        {
            _infrastructure = infrastructure;

            if (this.Infrastructure == null || this.EmailService == null)
            {
                throw new CustomOperationException("Email Service is not specified in web.config settings!");
            }
        }
コード例 #2
0
        public VideoConverter(IFamilyUnitOfWork unitOfWork, IFamilyInfrastructureProvider infrastructure)
        {
            _unitOfWork     = unitOfWork;
            _infrastructure = infrastructure;

            if (_infrastructure == null)
            {
                throw new CustomArgumentException("Invalid Infrastructure provided for VideoConverter!");
            }

            _converter = new CloudConverterClient(_infrastructure.GetSettings("CloudConverterApiKey"));
        }
コード例 #3
0
 public FilesManager(IFamilyUnitOfWork uow, IFamilyInfrastructureProvider infrastructure, ITokenProvider tokenProvider)
     : base(uow, infrastructure, tokenProvider)
 {
 }
コード例 #4
0
 public MaterialModificationService(IFamilyInfrastructureProvider infrastructure, IThumbnailProvider thumbnailProvider, IVideoConverter videoConverter)
 {
     _infrastructure    = infrastructure;
     _thumbnailProvider = thumbnailProvider;
     _videoConverter    = videoConverter;
 }
コード例 #5
0
 public AuthenticationService(IFamilyInfrastructureProvider infrastructure)
 {
     _infrastructure = infrastructure;
 }
コード例 #6
0
 public BaseManager(IFamilyUnitOfWork uow, IFamilyInfrastructureProvider infrastructure, ITokenProvider tokenProvider)
     : base(uow)
 {
     _infrastructure = infrastructure;
     _tokenProvider  = tokenProvider;
 }
コード例 #7
0
 public AuthApiController(IFamilyInfrastructureProvider infrastructure, IAuthenticationProvider authProvider)
 {
     _authProvider   = authProvider;
     _infrastructure = infrastructure;
 }
コード例 #8
0
 public ThumbnailProvider(IFamilyInfrastructureProvider infrastructure)
 {
     _infrastructure = infrastructure;
 }