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

            container.Register(Component.For <IEducationContext>().Instance(educationDataContext));
            return(container);
        }
Exemple #3
0
 private void ConfigureTracing(IEducationContext instance)
 {
     if (EnableTracing)
     {
         instance.Log = new TraceTextWriter();
     }
 }
 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;
 }
 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;
 }
Exemple #9
0
 public CustomFieldTypeRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public CustomFieldRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public ProviderRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public ServiceRequestRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
Exemple #13
0
 public PrivateHealthDataViewEventRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #21
0
 private void ConfigureCache(IKernel kernel, IEducationContext instance)
 {
     if (EnableCaching)
     {
         instance.Cache         = kernel.Resolve <ICache>();
         instance.CachingPolicy = CachingPolicy.CacheAll;
     }
 }
 public EulaAgreementRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
 public FulfillmentStatusRepository(IEducationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context = context;
 }
Exemple #24
0
 public void Configure(IKernel kernel, IEducationContext instance)
 {
     if (typeof(DbContext).IsAssignableFrom(instance.GetType()))
     {
         PrepareForUse((DbContext)instance);
     }
     ConfigureCache(kernel, instance);
     ConfigureTracing(instance);
 }
 public void Configure(IKernel kernel, IEducationContext instance)
 {
     if (typeof(DbContext).IsAssignableFrom(instance.GetType()))
     {
         PrepareForUse((DbContext)instance);
     }
     ConfigureCache(kernel, instance);
     ConfigureTracing(instance);
 }
Exemple #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;
 }
 public static WindsorContainer CreateWindsorContainer(IEducationContext educationDataContext)
 {
     WindsorContainer container = CreateWindsorContainer();
     container.Register(Component.For<IEducationContext>().Instance(educationDataContext));
     return container;
 }