示例#1
0
 public MEFActivator()
 {
     using (IKernel kernel = new MEFKernelResolver().ResolveKernel())
     {
         kernel.Inject(this);
     }
 }
        IMEFApplication IMEFApplicationProvider.GetMEFApplication()
        {
            MEFApplication application = new MEFApplication();

            using (IKernel kernel = new MEFKernelResolver().ResolveKernel())
            {
                kernel.Inject(application);
            }

            return(application);
        }
示例#3
0
        public MEFApplicationTests()
        {
            subject = new MEFApplication();

            using (IKernel kernel = new MEFKernelResolver().ResolveKernel())
            {
                kernel.Inject(subject);
            }

            asyncManager = new MEFStateMachineAsyncManager();
        }