lsoft / DpdtInject

Highly efficient compile-time general purpose DI container based on C# source generators.
https://www.nuget.org/packages/Dpdt.Injector/
MIT License
32 stars 3 forks source link

cluster type as binding source\target #49

Closed lsoft closed 2 years ago

lsoft commented 2 years ago

disallow to the any cluster type to be a source\target for binding clauses.

e.g. do not allow following:

public partial class Cluster0 : DefaultCluster {...}

public partial class Cluster1 : DefaultCluster
{
    [DpdtBindingMethod]
    public void BindMethod0()
    {
         Bind<Cluster0>().To<Cluster0>()...;
    }
}