我有以下资源
[ResourceRegistration, DependencyRegistration(typeof(IConnectionAttempt), [typeof(IStatusCheck)])]
public class FooDriver : Driver
{
// Expected Dependency Injection
public IStatusCheck StatusCheck { get; set; }
public IConnectionAttempt ConnectionAttempt { get; set; }
...
}
我想要将ConnectionAttempt
和StatusCheck
属性注入到这里指定的插件中,但是当我创建资源时,我得到一个调用属性的空引用异常。