Пример #1
0
 public CommunicationController(ICommunicationService communicationService,
                                IAttachmentService attachmentService, ICommunicationProviderService serviceProviderService)
 {
     this.communicationService   = communicationService;
     this.attachmentService      = attachmentService;
     this.serviceProviderService = serviceProviderService;
 }
Пример #2
0
        public ServiceTests()
        {
            var services = new ServiceCollection();
            var config   = InitConfiguration();

            services.AddDbContext <Inlook_Context>(
                options => options.UseSqlServer(config.GetConnectionString("DefaultConnection")));

            services.AddScoped <IAttachmentService, AttachmentService>();
            services.AddScoped <IGroupService, GroupService>();
            services.AddScoped <IMailService, MailService>();
            services.AddScoped <IRoleService, RoleService>();
            services.AddScoped <IUserService, UserService>();
            services.AddScoped <INotificationService, NotificationService>();

            services.AddSingleton(x =>
                                  new BlobServiceClient(config.GetValue <string>("AzureStorageBlobConnectionString")));

            var serviceProvider = services.BuildServiceProvider();

            this.attachmentService   = serviceProvider.GetService <IAttachmentService>();
            this.groupService        = serviceProvider.GetService <IGroupService>();
            this.mailService         = serviceProvider.GetService <IMailService>();
            this.userService         = serviceProvider.GetService <IUserService>();
            this.notificationService = serviceProvider.GetService <INotificationService>();
            this.dbContext           = serviceProvider.GetService <Inlook_Context>();

            CreateUser();
        }
Пример #3
0
        public AttachmentController(
			IAuditService<Attachment, AttachmentAudit> auditService, 
			IAttachmentService attachmentService)
        {
            this.AuditService = auditService;
            this.AttachmentService = attachmentService;
        }
Пример #4
0
        public ContentLogic(IContentService contentService, IAttachmentService attachmentService, ILegacyContentService legacyContentService, IFileViewerService fileViewerService)
        {
            if (contentService == null)
            {
                throw new ArgumentNullException("contentService");
            }

            if (attachmentService == null)
            {
                throw new ArgumentNullException("attachmentService");
            }

            if (fileViewerService == null)
            {
                throw new ArgumentNullException("fileViewerService");
            }

            if (legacyContentService == null)
            {
                throw new ArgumentNullException("legacyContentService");
            }

            ContentService       = contentService;
            AttachmentService    = attachmentService;
            LegacyContentService = legacyContentService;
            FileViewerService    = fileViewerService;
        }
Пример #5
0
 public EmailController(IEmailService emailService, ILocalizationService localizationService, IAttachmentService attachmentService)
 {
     _emailService        = emailService;
     _attachmentService   = attachmentService;
     _localizationService = localizationService;
     _languageId          = CurrentUser.LanguageId;
 }
Пример #6
0
 public UserController(UserManager <User> userManager,
                       RoleManager <Role> roleManager,
                       IUnitOfWork unitOfWork,
                       UserServiceFacade facade,
                       IMapper mapper,
                       IEmailService emailService,
                       SignInManager <User> signInManager,
                       AccountServiceFacade accountServiceFacade,
                       IConfiguration configuration,
                       IWebHostEnvironment webHostEnvironment,
                       IAttachmentService attachmentService,
                       FileServiceFacade fileService)
 {
     _userManager          = userManager;
     _roleManager          = roleManager;
     _unitOfWork           = unitOfWork;
     _facade               = facade;
     _mapper               = mapper;
     _emailService         = emailService;
     _signInManager        = signInManager;
     _accountServiceFacade = accountServiceFacade;
     _configuration        = configuration;
     _webHostEnvironment   = webHostEnvironment;
     _attachmentService    = attachmentService;
     _fileService          = fileService;
 }
Пример #7
0
 public AttachmentController(IAttachmentService service, ILoginInfo loginInfo, FileUploadHelper fileUploadHelper, IOptionsMonitor <ModuleCommonOptions> iOptionsMonitor)
 {
     _service             = service;
     _loginInfo           = loginInfo;
     _fileUploadHelper    = fileUploadHelper;
     _moduleCommonOptions = iOptionsMonitor.CurrentValue;
 }
        public AttachmentsViewModel(
            IAttachmentService attachmentService,
            ICommandFactory commandFactory,
            IMessenger messenger,
            IFolderBrowserDialogAdapter folderDialog,
            IFileProcessor fileProcessor)
        {
            this.attachmentService = attachmentService;
            this.messenger         = messenger;
            this.folderDialog      = folderDialog;
            this.fileProcessor     = fileProcessor;
            this.fileProcessor.ProcessingFinished +=
                () => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Attachments)));

            BackButtonClick    = commandFactory.Create(OnBackButtonClick);
            ExtractButtonClick = commandFactory.Create(OnExtractButtonClick);
            DeleteButtonClick  = commandFactory.Create(OnDeleteButtonClick);
            DragEnter          = commandFactory.Create(OnDragEnter);
            DragLeave          = commandFactory.Create(OnDragLeave);
            FileDrop           = commandFactory.Create(
                async(obj) =>
            {
                await fileProcessor.ProcessFiles(obj as string[]).ConfigureAwait(false);
                IsDragOver = false;
            });
        }
Пример #9
0
        public AccountsViewModel(
            IUserService userService,
            IAttachmentService attachmentService,
            ICommandFactory commandFactory,
            IMessenger messenger,
            IFileProcessor fileProcessor)
        {
            this.userService       = userService;
            this.attachmentService = attachmentService;
            this.messenger         = messenger;
            this.fileProcessor     = fileProcessor;

            AddButtonClick          = commandFactory.Create(OnAddButtonClick);
            EditButtonClick         = commandFactory.Create(OnEditButtonClick);
            DeleteButtonClick       = commandFactory.Create(OnDeleteButtonClick);
            AttachmentsButtonClick  = commandFactory.Create(OnAttachmentsButtonClick);
            WatchButtonMouseDown    = commandFactory.Create(OnWatchButtonMouseDown);
            WatchButtonMouseUp      = commandFactory.Create(OnWatchButtonMouseUp);
            PasswordCopyButtonClick = commandFactory.Create(OnPasswordCopyButtonClick);
            LoginCopyButtonClick    = commandFactory.Create(OnLoginCopyButtonClick);
            SearchReset             = commandFactory.Create(OnSearchReset);
            MenuButtonClick         = commandFactory.Create(OnMenuButtonClick);
            DragEnter = commandFactory.Create(OnDragEnter);
            DragLeave = commandFactory.Create(OnDragLeave);
            FileDrop  = commandFactory.Create(
                (obj) =>
            {
                fileProcessor.ProcessFiles(obj as string[]);
                IsDragOver = false;
            });
        }
Пример #10
0
 public Program(ICostaRepostitory costaRepository, IOstRepository ostRepository, IMapper Mapper, IAttachmentService attachmentService)
 {
     costarepository   = costaRepository;
     ostrepository     = ostRepository;
     mapper            = Mapper;
     attachmentservice = attachmentService;
 }
 public void InitializeServicesWithAuthenticationType(AuthenticationType type)
 {
     if (type == AuthenticationType.Basic)
     {
         this._userService       = new UserService(AuthenticationType.Basic);
         this._issueService      = new IssueService(AuthenticationType.Basic);
         this._transitionService = new TransitionService(AuthenticationType.Basic);
         this._priorityService   = new PriorityService(AuthenticationType.Basic);
         this._attachmentService = new AttachmentService(AuthenticationType.Basic);
         this._boardService      = new BoardService(AuthenticationType.Basic);
         this._sprintService     = new SprintService(AuthenticationType.Basic);
         this._projectService    = new ProjectService(AuthenticationType.Basic);
     }
     else if (type == AuthenticationType.OAuth)
     {
         this._userService       = new UserService(AuthenticationType.OAuth);
         this._issueService      = new IssueService(AuthenticationType.OAuth);
         this._transitionService = new TransitionService(AuthenticationType.OAuth);
         this._priorityService   = new PriorityService(AuthenticationType.OAuth);
         this._attachmentService = new AttachmentService(AuthenticationType.OAuth);
         this._boardService      = new BoardService(AuthenticationType.OAuth);
         this._sprintService     = new SprintService(AuthenticationType.OAuth);
         this._projectService    = new ProjectService(AuthenticationType.OAuth);
     }
 }
 /// <summary>
 /// Ctor
 /// </summary>
 public WorkOrderService(IRepository <WorkOrder> workOrderRepository,
                         IRepository <User> userRepository,
                         IRepository <Assignment> assignmentRepository,
                         IRepository <Attachment> attachmentRepository,
                         IRepository <Asset> assetRepository,
                         IRepository <TaskGroup> taskGroupRepository,
                         IServiceRequestService serviceRequestService,
                         IPreventiveMaintenanceService pmService,
                         ICalendarService calendarService,
                         IAutoNumberService autoNumberService,
                         IAttachmentService attachmentService,
                         DapperContext dapperContext,
                         IWorkContext workContext,
                         IDbContext dbContext,
                         IDateTimeHelper dateTimeHelper)
 {
     this._workOrderRepository   = workOrderRepository;
     this._userRepository        = userRepository;
     this._assignmentRepository  = assignmentRepository;
     this._attachmentRepository  = attachmentRepository;
     this._assetRepository       = assetRepository;
     this._taskGroupRepository   = taskGroupRepository;
     this._serviceRequestService = serviceRequestService;
     this._pmService             = pmService;
     this._calendarService       = calendarService;
     this._autoNumberService     = autoNumberService;
     this._attachmentService     = attachmentService;
     this._dapperContext         = dapperContext;
     this._workContext           = workContext;
     this._dbContext             = dbContext;
     this._dateTimeHelper        = dateTimeHelper;
 }
Пример #13
0
 public AttachmentController(IAttachmentService service, ILoginInfo loginInfo, FileUploadHelper fileUploadHelper, ModuleCommonOptions moduleCommonOptions)
 {
     _service             = service;
     _loginInfo           = loginInfo;
     _fileUploadHelper    = fileUploadHelper;
     _moduleCommonOptions = moduleCommonOptions;
 }
Пример #14
0
        public void Setup()
        {
            filename = TestUtils.GetTestPropery("filename");
            client   = TestUtils.GetClient();

            service = client.AttachmentService;
        }
Пример #15
0
 public QuickUser(UserManager <User> userManager, IHttpContextAccessor httpContextAccessor,
                  IAttachmentService attachmentService)
 {
     this._userManager         = userManager;
     this._httpContextAccessor = httpContextAccessor;
     this._attachmentService   = attachmentService;
 }
Пример #16
0
 public AttachmentController(IAttachmentService service, ILoginInfo loginInfo, FileUploadHelper fileUploadHelper, IConfigProvider configProvider)
 {
     _service          = service;
     _loginInfo        = loginInfo;
     _fileUploadHelper = fileUploadHelper;
     _configProvider   = configProvider;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 public PreventiveMaintenanceService(IRepository <PreventiveMaintenance> preventiveMaintenanceRepository,
                                     IRepository <ValueItem> valueItemRepository,
                                     IRepository <WorkOrder> workOrderRepository,
                                     IRepository <WorkOrderTask> workOrderTaskRepository,
                                     IRepository <Assignment> assignmentRepository,
                                     IRepository <Asset> assetRepository,
                                     IRepository <TaskGroup> taskGroupRepository,
                                     ICalendarService calendarService,
                                     IAutoNumberService autoNumberService,
                                     IAttachmentService attachmentService,
                                     IWorkContext workContext,
                                     DapperContext dapperContext,
                                     IDbContext dbContext)
 {
     this._preventiveMaintenanceRepository = preventiveMaintenanceRepository;
     this._valueItemRepository             = valueItemRepository;
     this._workOrderRepository             = workOrderRepository;
     this._workOrderTaskRepository         = workOrderTaskRepository;
     this._assignmentRepository            = assignmentRepository;
     this._assetRepository     = assetRepository;
     this._taskGroupRepository = taskGroupRepository;
     this._calendarService     = calendarService;
     this._autoNumberService   = autoNumberService;
     this._attachmentService   = attachmentService;
     this._workContext         = workContext;
     this._dapperContext       = dapperContext;
     this._dbContext           = dbContext;
 }
        public ContentLogic(IContentService contentService, IAttachmentService attachmentService, ILegacyContentService legacyContentService, IFileViewerService fileViewerService)
        {
            if (contentService == null)
            {
                throw new ArgumentNullException("contentService");
            }

            if (attachmentService == null)
            {
                throw new ArgumentNullException("attachmentService");
            }

            if (fileViewerService == null)
            {
                throw new ArgumentNullException("fileViewerService");
            }

            if (legacyContentService == null)
            {
                throw new ArgumentNullException("legacyContentService");
            }

            ContentService = contentService;
            AttachmentService = attachmentService;
            LegacyContentService = legacyContentService;
            FileViewerService = fileViewerService;
        }
Пример #19
0
        public AttachmentController()
        {
            postService   = new ContentPostService();
            attachService = new AttachmentService();

            HideLayout(typeof(wojilu.Web.Controller.Content.LayoutController));
        }
Пример #20
0
        public void Setup()
        {
            _filename = TestUtils.GetTestProperty("filename");
            _client   = TestUtils.GetClient();

            _service = _client.AttachmentService;
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="attachmentService">
 /// The attachment service this controller should use
 /// </param>
 /// <param name="identityService">
 /// The identity service this controller should use
 /// </param>
 ///  /// <param name="organizationService">
 /// The organization service this controller should use
 /// </param>
 /// <param name="employerService">
 /// The employer service this controller should use
 /// </param>
 public AttachmentController(IAttachmentService attachmentService, IIdentityService identityService, IOrganizationService organizationService, IEmployerService employerService)
 {
     _attachmentService   = attachmentService;
     _identityService     = identityService;
     _organizationService = organizationService;
     _employerService     = employerService;
 }
Пример #22
0
 public EventsService(IEventsDataSource dataSource
                      , ITagsService tagsService
                      , IAttachmentService attachmentService)
 {
     _dataSource        = dataSource;
     _tagsService       = tagsService;
     _attachmentService = attachmentService;
 }
Пример #23
0
 public FeedEntryService(IGenericRepository<FeedEntryEntity> feedEntryRepository,
     IFeedEntryQuery feedEntryQuery,
     IAttachmentService attachmentService)
 {
     _feedEntryRepository = feedEntryRepository;
     _feedEntryQuery = feedEntryQuery;
     _attachmentService = attachmentService;
 }
Пример #24
0
        public AttachmentController(IWorkContext workContext
                                    , IAttachmentService attachmentService)
        {
            _attachmentRootPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "attachments");

            _attachmentService = attachmentService;
            _workContext       = workContext;
        }
Пример #25
0
        public PostController() {
            LayoutControllerType = typeof( Section.LayoutController );

            postService = new ContentPostService();
            sectionService = new ContentSectionService();
            attachmentService = new AttachmentService();
            psService = new ContentPostSectionService();
        }
Пример #26
0
 public TaskItemController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, ITaskItemService taskItemService, IMapper mapper, ICategoryService categoryService, IAttachmentService attachmentService, IProjectService projectService) : base(loggerServices, userService, userDepartmentServices)
 {
     _attachmentService = attachmentService;
     _projectService    = projectService;
     _mapper            = mapper;
     _categoryService   = categoryService;
     _taskItemService   = taskItemService;
 }
Пример #27
0
 public TopicController()
 {
     boardService  = new ForumBoardService();
     topicService  = new ForumTopicService();
     postService   = new ForumPostService();
     incomeService = new UserIncomeService();
     attachService = new AttachmentService();
 }
Пример #28
0
 public QuotationController(IQuotationService quotationService, IUserService userService, IRoleService roleService, IAttachmentService attachmentService, IOptions <AppSettings> appSettings)
 {
     this.quotationService  = quotationService;
     this.userService       = userService;
     this.roleService       = roleService;
     this.attachmentService = attachmentService;
     this._appSettings      = appSettings.Value;
 }
Пример #29
0
        public void Load()
        {
            CleanUp();
            _memberService     = new MemberService();
            _attachmentService = new AttachmentService();

            GetLiveMembersBk();
        }
Пример #30
0
        public EmployeePhotoViewModel()
        {
            CleanUp();
            _employeeService   = new EmployeeService();
            _attachmentService = new AttachmentService();

            Messenger.Default.Register <EmployeeDTO>(this, message => { SelectedEmployee = message; });
        }
Пример #31
0
 /// <summary>
 /// Constructor to inject services
 /// </summary>
 /// <param name="saveService">The Save service this controller should use </param>
 /// <param name="identityService">The Identity service this controller should use </param>
 /// <param name="organizationService">The Organization service this controller should use </param>
 /// <param name="employerService">The Employer service this controller should use </param>
 /// <param name="attachmentService">The attachment service this controller should use </param>
 public SaveController(ISaveService saveService, IIdentityService identityService, IOrganizationService organizationService, IEmployerService employerService, IAttachmentService attachmentService)
 {
     _saveService         = saveService;
     _identityService     = identityService;
     _organizationService = organizationService;
     _employerService     = employerService;
     _attachmentService   = attachmentService;
 }
Пример #32
0
 public NewsController(IsqlQueryService isqlQueryService, IUserService iuserService, INewsService inewsService, IAttachmentService iAttachmentService, ISectionService isectionService)
 {
     this._iuserService       = iuserService;
     this._inewsService       = inewsService;
     this._iattachmentservice = iAttachmentService;
     this._isectionService    = isectionService;
     this._isqlQueryService   = isqlQueryService;
 }
Пример #33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AttachmentController"/>
 /// class.
 /// </summary>
 /// <param name="logger">An injected instance of the logger.</param>
 /// <param name="attachmentService">
 /// An injected instance of the attachment service.
 /// </param>
 /// <param name="attachmentFilters">
 /// An injected collection of attachment filters.
 /// </param>
 public AttachmentController(
     ILogger <AttachmentController> logger,
     IAttachmentService attachmentService,
     IEnumerable <IAttachmentFilter> attachmentFilters)
 {
     this._logger            = logger;
     this._attachmentService = attachmentService;
     this._attachmentFilters = attachmentFilters;
 }
 public CreditRequestService(
     ICreditUow creditUow, 
     INotificationService notificationService,
     IAttachmentService attachmentService)
 {
     this.creditUow = creditUow;
     this.notificationService = notificationService;
     this.attachmentService = attachmentService;
 }
Пример #35
0
        public AttachmentController(IAttachmentService attachmentService)
        {
            if (attachmentService == null)
            {
                throw new ArgumentNullException("attachmentService");
            }

            _attachmentService = attachmentService;
        }
        public AttachmentService(IAttachmentService service, ProtocolVersion version) : 
                base(version)
        {
            // Set the service implementation properties
            m_service = service;

            // Set base service properties
            ServiceNamespace = new WsXmlNamespace("att", "http://schemas.example.org/AttachmentService");
            ServiceID = "urn:uuid:6a97c339-8d5e-4c2e-a8a3-d4d109983c8a";
            ServiceTypeName = "AttachmentService";

            // Add service types here
            ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/AttachmentService", "OneWayAttachment"));
            ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/AttachmentService", "TwoWayAttachment"));

            // Add event sources here
        }
 public AttachmentController(IAttachmentService attachmentService)
 {
     _attachmentService = attachmentService;
 }
Пример #38
0
 public SummaryController() {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
     attachService = new AttachmentService();
 }
Пример #39
0
 public AttachmentController() {
     postService = new ContentPostService();
     attachmentService = new AttachmentService();
 }
Пример #40
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AttachmentFilter"/> class.
 /// </summary>
 /// <param name="attachmentService">The attachment service.</param>
 public AttachmentFilter(IAttachmentService attachmentService)
 {
     this.AttachmentService = attachmentService;
 }
 public AttachmentService(IAttachmentService service) : 
         this(service, new ProtocolVersion10())
 {
 }
Пример #42
0
 public DocumentApiController(IAttachmentDataQuery attachmentDataQuery,
     IAttachmentService attachmentService)
 {
     _attachmentDataQuery = attachmentDataQuery;
     _attachmentService = attachmentService;
 }
Пример #43
0
        public AttachmentController() {
            postService = new ContentPostService();
            attachService = new AttachmentService();

            HideLayout( typeof( wojilu.Web.Controller.Content.LayoutController ) );
        }