GithubHelp home page GithubHelp logo

startautomating / eventful Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 0.0 270 KB

Easy Eventful PowerShell

Home Page: https://eventful.start-automating.com/

License: MIT License

PowerShell 100.00%
events powershell powershell-module

eventful's People

Contributors

startautomating avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eventful's Issues

Use MaxTriggerCount in One-Time Event Sources

Some event sources will definitely only run once.

For instance, once we've done on@delay "00:00:01" {} we will never subscribe to that particular timer again.

MaxTriggerCount 1 should automatically be passed in all one-time event sources.

On LocationChanged

This should generate an event when the location has changed, using:

$exectutionContext.SessionState.InvokeCommand.LocationChangedAction

On CommandNotFound

On@CommandNotFound

On@CommandNotFound is a very useful new event source in Eventful.

As the name implies, it's generated whenever a command is not found.

How CommandNotFound works

The PowerShell language supports having a command CommandNotFound handler.

It's available in:

$executionContext.SessionState.InvokeCommand.CommandNotFound 

The generator simply sets that handler to generate an event with the source identifier PowerShell.CommandNotFound.

On CommandLookup

This should have a -Pre and -Post switch parameter to clarify which of these two eventhandlers should be assigned:

$executionContext.SessionState.InvokeCommand.PostCommandLookupAction
$executionContext.SessionState.InvokeCommand.PreCommandLookupAction

Eventfully Transpile

Eventing should be supported in PipeScript via Transpilers, or integrated into the language.

Watch-Event should allow event sources -Recursively

Watch-Event currently checks only the current directory and its source directory for event sources. While this is faster, it requires registration of event sources within a .psd1 to discover them. This is suboptimal. Therefore, performance should lose this trade-off and any file named @nameofsource should be searched for -Recrusively.

Import-Event

We should be easily able to import events, and optionally -Resend them.

Watch-Event should support -MaxTriggerCount and -MessageData

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.

Describe Event Channels

An event channel should be the combination of several possible events / conditions. It should also (probably) have a polling frequency.

OnEventCreate

Hello,
This is a feature request to extend Eventful to incorporate a process to send data to Azure's Event Hub. When Eventful creates an event, this data point can be sent to AZ's EventHub for later or real-time processing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.