diff --git a/src/IoC/IoC/Container.cs b/src/IoC/IoC/Container.cs
new file mode 100644
index 0000000..118add0
--- /dev/null
+++ b/src/IoC/IoC/Container.cs
@@ -0,0 +1,26 @@
+using Autofac;
+using IoC.implement;
+using IoC.inerface;
+
+namespace IoC
+{
+ public class Container
+ {
+ ///
+ /// 仲介公司
+ ///
+ ///
+ public static IContainer MiddleCompany()
+ {
+ ContainerBuilder builder = new ContainerBuilder();
+
+ //在仲介公司裡寫需求人申請單
+ builder.RegisterType();
+ //小明所需打掃阿姨需求
+ builder.RegisterType().As();
+
+ return builder.Build();
+ }
+
+ }
+}
diff --git a/src/IoC/IoC/IoC.csproj b/src/IoC/IoC/IoC.csproj
index b6eb4ed..2c6e46f 100644
--- a/src/IoC/IoC/IoC.csproj
+++ b/src/IoC/IoC/IoC.csproj
@@ -37,7 +37,6 @@
..\packages\Autofac.4.6.2\lib\net45\Autofac.dll
- True
@@ -52,6 +51,9 @@
+
+
+
@@ -59,6 +61,7 @@
+