コード例 #1
0
 public HomeController(ILogger <HomeController> logger, ITransientInterface transientService, IScopedInterface scopedService, ISingeletonInterface singletonService, IUpload uploadService)
 {
     _logger           = logger;
     _transientService = transientService;
     _scopedService    = scopedService;
     _singletonService = singletonService;
     _uploadService    = uploadService;
 }
コード例 #2
0
 public LifecycleController(IApplicationDbContext applicationDbContext,
                            IScopedInterface scopedInterface_1,
                            IScopedInterface scopedInterface_2,
                            ITransientInterfase transientInterfase_1,
                            ITransientInterfase transientInterfase_2,
                            ISingletonInterfase singletonInterfase_1,
                            ISingletonInterfase singletonInterfase_2
                            )
 {
     _scopedInterface_1    = scopedInterface_1;
     _scopedInterface_2    = scopedInterface_2;
     _transientInterfase_1 = transientInterfase_1;
     _transientInterfase_2 = transientInterfase_2;
     _singletonInterfase_1 = singletonInterfase_1;
     _singletonInterfase_2 = singletonInterfase_2;
 }
コード例 #3
0
        public ComputerController(IApplicationDbContext applcationDbContext,
                                  IComputerService computerService,
                                  ITransientInterface transientInterface_1,
                                  ITransientInterface transientInterface_2,
                                  IScopedInterface scopedInterface_1,
                                  IScopedInterface scopedInterface_2,
                                  ISingletonInterface singletonInterface_1,
                                  ISingletonInterface singletonInterface_2
                                  )
        {
            _computerService = computerService;

            _transientInterface_1 = transientInterface_1;
            _transientInterface_2 = transientInterface_2;

            _scopedInterface_1 = scopedInterface_1;
            _scopedInterface_2 = scopedInterface_2;

            _singletoneInterface_1 = singletonInterface_1;
            _singletoneInterface_2 = singletonInterface_2;
        }