예제 #1
0
 protected BaseTechnicalRequrementsTaskViewModelCommand(TechnicalRequrementsTaskViewModel viewModel, IUnityContainer container)
 {
     ViewModel           = viewModel;
     Container           = container;
     MessageService      = Container.Resolve <IMessageService>();
     FilesStorageService = Container.Resolve <IFilesStorageService>();
 }
예제 #2
0
 public VideosService(IUnitOfWork unitOfWork,
                      IdentityOptions identity,
                      IFilesStorageService storage)
 {
     _unitOfWork = unitOfWork;
     _identity   = identity;
     _storage    = storage;
 }
예제 #3
0
 public VideosService(IUnitOfWork unitOfWork,
                      IdentityOptions identity,
                      IFilesStorageService storage,
                      EnvironmentOptions env,
                      IMapper mapper,
                      ICommentsService commentsService)
 {
     _unitOfWork      = unitOfWork;
     _identity        = identity;
     _storage         = storage;
     _env             = env;
     _mapper          = mapper;
     _commentsService = commentsService;
 }
예제 #4
0
        public EventServiceClient(IUnityContainer container)
        {
            _container = container;
            _popupNotificationsService = container.Resolve <IPopupNotificationsService>();
            _fileManagerService        = container.Resolve <IFileManagerService>();
            _filesStorageService       = container.Resolve <IFilesStorageService>();

            //увеличиваем таймаут бездействия
            _netTcpBinding = new NetTcpBinding(SecurityMode.None, true)
            {
                //SendTimeout = new TimeSpan(7, 0, 0, 0),
                ReceiveTimeout = new TimeSpan(7, 0, 0, 0),
                //OpenTimeout = new TimeSpan(7, 0, 0, 0),
                //CloseTimeout = new TimeSpan(7, 0, 0, 0)
            };

            _endpointAddress = new EndpointAddress(EventServiceAddresses.TcpBaseAddress);

            SyncContainer = new SyncContainer(_container);
            SyncContainer.ServiceHostIsDisabled += DisableWaitRestart;
        }
 public TextBlobReader(IFilesStorageService filesStorageService)
 {
     _filesStorageService = filesStorageService;
 }
예제 #6
0
 public LoadFileCommand(PriceCalculationsViewModel viewModel, IUnityContainer container)
 {
     _viewModel           = viewModel;
     _container           = container;
     _filesStorageService = container.Resolve <IFilesStorageService>();
 }
 public LoadFileFromDbCommand(PriceCalculationViewModel viewModel, IUnityContainer container) : base(viewModel, container)
 {
     _filesStorageService = container.Resolve <IFilesStorageService>();
 }
 public BinaryBlobReader(IFilesStorageService filesStorageService)
 {
     _filesStorageService = filesStorageService;
 }