Browse Source

Update index.md

pull/22471/head
maliming 2 years ago
parent
commit
896ac57e8d
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 6
      docs/en/framework/infrastructure/event-bus/distributed/index.md

6
docs/en/framework/infrastructure/event-bus/distributed/index.md

@ -297,10 +297,14 @@ Configure<AbpDistributedEntityEventOptions>(options =>
options.AutoEventSelectors.Add(
type => type.Namespace.StartsWith("MyProject.")
);
//Ignore for a single entity
options.IgnoreEventSelectors.Add<IgnoreProduct>();
});
````
* The last one provides flexibility to decide if the events should be published for the given entity type. Returns `true` to accept a `Type`.
* The `type.Namespace.StartsWith("MyProject.")` provides flexibility to decide if the events should be published for the given entity type. Returns `true` to accept a `Type`.
* The `IgnoreEventSelectors` is used to ignore the events for the specified entity types. It is useful if you enabled for all entities and want to ignore for some entities.
You can add more than one selector. If one of the selectors match for an entity type, then it is selected.

Loading…
Cancel
Save