public static void Init(Application app) { var builder = new ContainerBuilder(); PlatformSpecific.Init(builder); Container = builder.Build(); DependencyResolver.ResolveUsing(type => Container.IsRegistered(type) ? Container.Resolve(type) : null); }