Skip to content

Watch-Event should support -MaxTriggerCount and -MessageData #29

Description

@StartAutomating

These two parameters could be passed to Register-Object/EngineEvent

-MaxTriggerCount is especially useful, as it unregisters the event subscriber after N events (which is very useful when something will only happen once).

Accordingly, both parameters should be able to be defaulted based off of a [Reflection.AssemblyMetadata] attributes of the event source, or a property on the returned object.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions