Skip to content

GenerateInterfaceAttribute.RequestHandler property

Whether the interface derives from the request handler interface that fits the class, so AddServiceHandlers registers it in every application. Set it to false for a class that only its own Add method should register, e.g. as it needs services that other applications don't have. The class should not implement a request handler interface otherwise.

public bool RequestHandler { get; set; }

See Also