コード例 #1
0
        private static void DependencyInjectionInit()
        {
            var services = new ServiceCollection();

            services.AddInternalServices();

            var provider = services.BuildServiceProvider();

            _passwordStrengthService = provider.GetService <IPasswordStrengthService>();
        }
コード例 #2
0
 public PasswordStrengthController(IPasswordStrengthService passwordStrengthService)
 {
     this.PasswordStrengthService = passwordStrengthService;
 }