AddNotices() extension method performs registration of notice publisher service INoticePublisher and notice handlers implementing INoticeHandler or inherited from NoticeHandler class.
Param name
Param type
Description
assembliesToScan
params Assembly[]
List of assemblies to search notice handlers.
configureOptions
Action<NoticeServiceOptions>
Options to be used by notices handling service.
Additionally configure INoticePublisher service by specifying it's type and lifetime used NoticeServiceOptions.
NoticeServiceOptions properties:
Property name
Property type
Description
PublisherServiceType
Type
Changes standard implementation of INoticePublisher to specified one. Default value is typeof(NoticePublisher).
PublisherServiceLifetime
ServiceLifetime
Specifies the lifetime of an INoticePublisher service. Default value is Transient.
Usage
The main difference from Structr.Operations package is that notice can handling by any of handlers while operation can handling by only one handler.