IOrchardServices
ハンドラーにサービスが必要なため、注入したいHandler
ので、ハンドラーに次のように書きました。
public class EstatePartHandler : ContentHandler
{
private readonly IOrchardServices Services;
public EstatePartHandler(IOrchardServices services)
{
Services = services;
}
...
}
ただしOrchard
、ハンドラーの構築時に例外をスローします。
Cannot choose between multiple constructors with equal length 1 on type 'Estate.Handlers.EstatePartHandler'. Select the constructor explicitly, with the UsingConstructor() configuration method, when the component is registered.
なにが問題ですか?