Exemple #1
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 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyngentaSIPUnitOfWork"/> class.
 /// </summary>
 /// <param name="syngentaSIPContext">The syngenta sip context.</param>
 /// <param name="syngentaSIPSecurity">The syngenta sip security.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="planRepository">The plan repository.</param>
 /// <param name="dataRepository">The data repository.</param>
 /// <param name="applicationSettingRepository">The application setting repository.</param>
 public SyngentaSIPUnitOfWork(
     ISyngentaSIPContext syngentaSIPContext,
     ISyngentaSIPSecurityContext syngentaSIPSecurity,
     Func <IUserRepository> userRepository,
     Func <IPlanRepository> planRepository,
     Func <IDataRepository> dataRepository,
     Func <IApplicationSettingRepository> applicationSettingRepository,
     Func <IDocumentRepository> documentRepository)
 {
     this.syngentaSIPContext           = syngentaSIPContext;
     this.syngentaSIPSecurity          = syngentaSIPSecurity;
     this.userRepository               = userRepository;
     this.planRepository               = planRepository;
     this.dataRepository               = dataRepository;
     this.applicationSettingRepository = applicationSettingRepository;
     this.documentRepository           = documentRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationSettingRepository"/> class.
 /// </summary>
 /// <param name="syngentaSIPSecurity">The syngenta sip security.</param>
 public ApplicationSettingRepository(ISyngentaSIPSecurityContext syngentaSIPSecurity)
 {
     this.syngentaSIPSecurityContext = syngentaSIPSecurity;
 }
Exemple #4
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;
 }