This allows us to create loosely coupled services with automatic dependency resolution
12 lines
430 B
C#
12 lines
430 B
C#
namespace Bts.Extensions.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// This interface provides a way to move dependencies outside of the constructor (and accept them
|
|
/// via <see cref="IDependOn{T}.Reset(T?)"/> instead). It was designed to resolve circular
|
|
/// dependency issues among startup services.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type of dependency</typeparam>
|
|
public interface IDependOn<T> {
|
|
void Reset(T? value);
|
|
}
|