LC0079 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki

Event publishers should not be public.

This rule raises a diagnostic when an event publisher is declared as public. Public event publishers cannot have their parameters modified, as the AppSourceCop considers such changes a breaking change to the public API.

To retain the flexibility of extending event publishers in the future, event publishers should be declared as either local or internal.

Example

[IntegrationEvent(false, false)]
procedure OnAfterInitFromSalesHeader(var SalesHeader: Record "Sales Header"; SourceSalesHeader: Record "Sales Header") // Event Publishers should be local or internal to allow for future parameter extensions.
begin
end;