Closed jiangxiangji closed 5 years ago
It is done by registering a type with proper lifetime and then registering different interfaces for the type:
RegisterType<MyType>(new ..Lifetime);
RegisterType<IMyType1, MyType>();
RegisterType<IMyType2, MyType>();
RegisterType<IMyType3, MyType>();
Added new method to do just that.
One type registered as more different services is required. xml configuration of autofac like this: `