IIocResolver container = new AutofacResolver(); var instance = container.Resolve();
IIocResolver container = new UnityResolver(); var instance = container.ResolvePackage Library: These code examples use third-party DI container libraries Autofac and Unity.();