Example #1
0
        public static IRegister Create()
        {
            var msDiContainer = new ContainerAdapter();

            msDiContainer.RegisterInstance <IFactory>(msDiContainer);
            return(msDiContainer);
        }
Example #2
0
 public MsDiActivator(ContainerAdapter container)
 {
     this.container = container;
 }
Example #3
0
 public MsDiWebApiDependencyResolver(ContainerAdapter container)
 {
     this.container = container;
 }
Example #4
0
 public ScopeWrapper(IServiceScope scope, ContainerAdapter adapter)
 {
     this.scope    = scope;
     this.adapter  = adapter;
     this.provider = scope.ServiceProvider;
 }