2
public class Handler : IHandle<ICommentInfo>{}
public class Command1 : ICommentInfo{}
public interface ICommentInfo{}
public interface IHandle<T> where T : class{}
보자 일반적인 인터페이스에 의해 서비스를 해결? 나는이 구성
builder.RegisterType<Handler>().As<IHandle<ICommentInfo>>();
는하지만이 예외
The requested service 'Icp.Test.QuerySpec.Class1+IHandle`1[[Icp.Test.QuerySpec.Class1+Command1, Icp.Test.QuerySpec, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
납니다 시도