コード例 #1
0
 private void ConfigureTracing(IEducationContext instance)
 {
     if (EnableTracing)
     {
         instance.Log = new TraceTextWriter();
     }
 }
コード例 #2
0
        public static WindsorContainer CreateWindsorContainer(IEducationContext educationDataContext)
        {
            WindsorContainer container = CreateWindsorContainer();

            container.Register(Component.For <IEducationContext>().Instance(educationDataContext));
            return(container);
        }
コード例 #3
0
 private void ConfigureTracing(IEducationContext instance)
 {
     if (EnableTracing)
     {
         instance.Log = new TraceTextWriter();
     }
 }
コード例 #4
0
 private void ConfigureCache(IKernel kernel, IEducationContext instance)
 {
     if (EnableCaching)
     {
         instance.Cache = kernel.Resolve<ICache>();
         instance.CachingPolicy = CachingPolicy.CacheAll;
     }
 }
 public StudentAssignedOfferingRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #6
0
 public EulaAgreementRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public ServiceRequestFulfillmentRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public UserAccessChangeEventRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #9
0
 public CustomFieldTypeRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #10
0
 public CustomFieldRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #11
0
 public ProviderRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #12
0
 public ServiceRequestRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #13
0
 public PrivateHealthDataViewEventRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #14
0
 public ServiceTypeCategoryRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public PrivateHealthDataViewEventRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public FulfillmentStatusRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #17
0
 public ProviderRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public UserAccessChangeEventRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #19
0
 public ServiceAttendanceRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public StudentAssignedOfferingRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #21
0
 private void ConfigureCache(IKernel kernel, IEducationContext instance)
 {
     if (EnableCaching)
     {
         instance.Cache         = kernel.Resolve <ICache>();
         instance.CachingPolicy = CachingPolicy.CacheAll;
     }
 }
コード例 #22
0
 public EulaAgreementRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #23
0
 public FulfillmentStatusRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
コード例 #24
0
 public void Configure(IKernel kernel, IEducationContext instance)
 {
     if (typeof(DbContext).IsAssignableFrom(instance.GetType()))
     {
         PrepareForUse((DbContext)instance);
     }
     ConfigureCache(kernel, instance);
     ConfigureTracing(instance);
 }
コード例 #25
0
 public void Configure(IKernel kernel, IEducationContext instance)
 {
     if (typeof(DbContext).IsAssignableFrom(instance.GetType()))
     {
         PrepareForUse((DbContext)instance);
     }
     ConfigureCache(kernel, instance);
     ConfigureTracing(instance);
 }
コード例 #26
0
 public RepositoryContainer(IWindsorContainer windsorContainer, IEducationContext context)
 {
     if (windsorContainer == null)
     {
         throw new ArgumentNullException("windsorContainer");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     WindsorContainer = windsorContainer;
     Context          = context;
 }
コード例 #27
0
 public static WindsorContainer CreateWindsorContainer(IEducationContext educationDataContext)
 {
     WindsorContainer container = CreateWindsorContainer();
     container.Register(Component.For<IEducationContext>().Instance(educationDataContext));
     return container;
 }