Skip to content

Instantly share code, notes, and snippets.

@stormwild
Created October 25, 2014 03:49
Show Gist options
  • Save stormwild/0a017900d7c79161602b to your computer and use it in GitHub Desktop.
Save stormwild/0a017900d7c79161602b to your computer and use it in GitHub Desktop.
		// container.Register(typeof(IRepository<>), typeof(AzureRepository<>)).AsMultiInstance();
		// container.Register(typeof (IService<TEntity>), typeof ()).AsPerRequestSingleton();
		
		// Unity -- container.RegisterType<IUnitOfWorkAsync, UnitOfWork>(new PerRequestLifetimeManager())

		//container.Register(typeof(IDataContextAsync), typeof(SanlaanContext)).AsPerRequestSingleton();
		//container.Register(typeof (IUnitOfWorkAsync), typeof (UnitOfWork)).AsPerRequestSingleton();
		//container.Register(typeof(IRepositoryAsync<>), typeof(Repository<>)).AsPerRequestSingleton();
		//container.Register(typeof(IService<Item>), typeof(ItemService)).AsPerRequestSingleton();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment