示例#1
0
 public PessoaRepository(
     IConfiguration configuration,
     CallCountScoped callCountScoped,
     CallCountSingleton callCountSingleton,
     CallCountTransient callCountTransient)
 {
     callCountScoped.Count++;
     callCountSingleton.Count++;
     callCountTransient.Count++;
     _connectionString = configuration.GetValue <string>("OneToManyConnectionString");
 }
        public PessoaController(
            ICarroService carroService,
            IPessoaService pessoaService,
            CallCountScoped callCountScoped,
            CallCountSingleton callCountSingleton,
            CallCountTransient callCountTransient)
        {
            callCountScoped.Count++;
            callCountSingleton.Count++;
            callCountTransient.Count++;

            _carroService  = carroService;
            _pessoaService = pessoaService;
        }