/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/OneScript.Core/DependencyInjection/IServiceContainer.cs
27 строк
756 B
Andrey Ovsiankin
Продолжение работ над конструкторами. Немного распутаны спагетти инициализации типов
15 апр 2021, 12:50
15 апр 2021, 12:50
d092ece
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System; using System.Collections.Generic; namespace OneScript.DependencyInjection { public interface IServiceContainer : IDisposable { object Resolve(Type type); T Resolve<T>() where T : class; object TryResolve(Type type); T TryResolve<T>() where T : class; IEnumerable<T> ResolveEnumerable<T>() where T : class; IServiceContainer CreateScope(); } }