forked from SharpRepository/SharpRepository
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnityExtensions.cs
More file actions
25 lines (23 loc) · 1.17 KB
/
UnityExtensions.cs
File metadata and controls
25 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using Microsoft.Practices.Unity;
using SharpRepository.Repository.Configuration;
namespace SharpRepository.Ioc.Unity
{
public static class UnityExtensions
{
public static void RegisterSharpRepository(this UnityContainer container, string repositoryName = null)
{
throw new NotImplementedException();
// using InjectionFactory I can get access to the container but I don't seem to ahve access to a context
// in the other Ioc's there is a context where I can get access to the type being resolved and get the generic arguments which is what i need
// container.RegisterType(typeof (IRepository<>), new InjectionFactory(c =>
// {
//
// });
}
public static void RegisterSharpRepository(this UnityContainer container, ISharpRepositoryConfiguration configuration)
{
throw new NotImplementedException();
}
}
}