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); }
public MEFApplicationTests() { subject = new MEFApplication(); using (IKernel kernel = new MEFKernelResolver().ResolveKernel()) { kernel.Inject(subject); } asyncManager = new MEFStateMachineAsyncManager(); }