public DependenciesController(DependencyService DependencyService, IDependencyTransient transientDependency, IDependencyScoped scopedDependency, IDependencySingleton singletonDependency, IConfiguration configuration) { _dependencyService = DependencyService; _transientDependency = transientDependency; _scopedDependency = scopedDependency; _singletonDependency = singletonDependency; _configuration = configuration; }
public DependencyService(IDependencyTransient transientDependency, IDependencyScoped scopedDependency, IDependencySingleton singletonDependency) { _scopedDependency = scopedDependency.DependencyId; _singletonDependency = singletonDependency.DependencyId; _transientDependency = transientDependency.DependencyId; }