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