public static Container Register(Registry registryToExtend = null) { registryToExtend?.IncludeRegistry <RootRegistry>(); var container = new Container(cfg => { cfg.AddRegistry <RootRegistry>(); }); ResolverRoot.Init(); return(container); }
public static IMediator BuildMediator() { var mediator = ResolverRoot.Resolve <IMediator>(); return(mediator); }