public IApplicationModule Build(IApplication application, IModuleBuildArguments <object> arguments)
        {
            if (application == null)
            {
                throw new ArgumentNullException(nameof(application));
            }
            if (arguments == null)
            {
                throw new ArgumentNullException(nameof(arguments));
            }

            return(OnBuild(application, arguments));
        }
 public ModuleBuildInfo(IModuleBuilder builder, IModuleBuildArguments <object> arguments)
 {
     Builder   = builder ?? throw new ArgumentNullException(nameof(builder));
     Arguments = arguments ?? throw new ArgumentNullException(nameof(arguments));
 }
        protected override IApplicationModule OnBuild(IApplication application, IModuleBuildArguments <object> arguments)
        {
            var resources = new UnityResources();

            return(new UnityModule(resources));
        }
Example #4
0
 protected override IApplicationModule OnBuild(IApplication application, IModuleBuildArguments <object> arguments)
 {
     return(Handler(application, arguments));
 }
 protected abstract IApplicationModule OnBuild(IApplication application, IModuleBuildArguments <object> arguments);
 public IApplicationModule Build(IApplication application, IModuleBuildArguments <object> arguments)
 {
     return(Module);
 }
 protected override IApplicationModule OnBuild(IApplication application, IModuleBuildArguments <object> arguments)
 {
     return(OnBuild(application, m_description));
 }