Пример #1
0
        public override void OnRegisterModules(IModuleRegistry registry)
        {
            if (registry is null)
            {
                throw new ArgumentNullException(nameof(registry));
            }

            base.OnRegisterModules(registry);

            registry.Register <IUserManager, UserManager>();
        }
Пример #2
0
 public override void OnRegisterModules(IModuleRegistry registry)
 {
     base.OnRegisterModules(registry);
     registry.Register <ICalculator, Calculator>();
 }