/// <summary>
 /// Initializes a new instance of the <see cref="ApplicationSettingService"/> class.
 /// </summary>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public ApplicationSettingService(ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     if (this.syngentaSIPUnitOfWork == null)
     {
         this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CryptoService"/> class.
 /// </summary>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public CryptoService(ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     if (this.syngentaSIPUnitOfWork == null)
     {
         this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
     }
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRepository" /> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurityContext">The syngenta sip security context.</param>
 /// <param name="cryptoService">The crypto service.</param>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public DataRepository(ISyngentaSIPContext syngentaSIPContext, ISyngentaSIPSecurityContext syngentaSIPSecurityContext, ICryptoService cryptoService, ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     this.syngentaSIPContext         = syngentaSIPContext;
     this.syngentaSIPSecurityContext = syngentaSIPSecurityContext;
     this.cryptoService         = cryptoService;
     this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataController"/> class.
 /// </summary>
 public DataController()
 {
     this.DataService               = UnityConfig.UnityContainer.Resolve <IDataService>();
     this.UserService               = UnityConfig.UnityContainer.Resolve <IUserService>();
     this.CryptoService             = UnityConfig.UnityContainer.Resolve <ICryptoService>();
     this.StorageService            = UnityConfig.UnityContainer.Resolve <IStorageService>();
     this.ApplicationSettingService = UnityConfig.UnityContainer.Resolve <IApplicationSettingService>();
     this.syngentaSIPUnitOfWork     = UnityConfig.UnityContainer.Resolve <ISyngentaSIPUnitOfWork>();
     this.LogService = UnityConfig.UnityContainer.Resolve <ILogService>();
 }
Exemple #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DataService" /> class.
        /// </summary>
        /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
        /// <param name="cryptoService">The crypto service.</param>
        public DataService(ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork, ICryptoService cryptoService)
        {
            if (this.syngentaSIPUnitOfWork == null)
            {
                this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
            }

            if (this.cryptoService == null)
            {
                this.cryptoService = cryptoService;
            }
        }
Exemple #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserService" /> class.
        /// </summary>
        /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
        /// <param name="applicationSettings">The application settings.</param>
        /// <param name="cryptoService">The crypto service.</param>
        public UserService(ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork, IApplicationSettingRepository applicationSettings, ICryptoService cryptoService)
        {
            if (this.syngentaSIPUnitOfWork == null)
            {
                this.syngentaSIPUnitOfWork = syngentaSIPUnitOfWork;
            }

            if (this.applicationSettings == null)
            {
                this.applicationSettings = applicationSettings;
            }

            if (this.cryptoService == null)
            {
                this.cryptoService = cryptoService;
            }
        }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentRepository"/> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurityContext">The syngenta sip security context.</param>
 /// <param name="syngentaSIPUnitOfWork">The syngenta sip unit of work.</param>
 public DocumentRepository(ISyngentaSIPContext syngentaSIPContext, ISyngentaSIPSecurityContext syngentaSIPSecurityContext, ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     this.syngentaSIPContext         = syngentaSIPContext;
     this.syngentaSIPSecurityContext = syngentaSIPSecurityContext;
     this.syngentaSIPUnitOfWork      = syngentaSIPUnitOfWork;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentService"/> class.
 /// </summary>
 /// <param name="storageService">The storage service.</param>
 /// <param name="applicationSettingService">The application setting service.</param>
 public DocumentService(IStorageService storageService, IApplicationSettingService applicationSettingService, ISyngentaSIPUnitOfWork syngentaSIPUnitOfWork)
 {
     this.storageService            = storageService;
     this.applicationSettingService = applicationSettingService;
     this.syngentaSIPUnitOfWork     = syngentaSIPUnitOfWork;
 }