Skip to content

Conversation

@wiktork
Copy link
Member

@wiktork wiktork commented Sep 20, 2021

Copy link
Contributor

@kelltrick kelltrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

return _eventPipeTriggerFactory.Create(endpointInfo, aspnetTriggerSourceConfiguration, _traceEventTriggerFactory, settings, callback);
}

private static StatusCodeRange ParseRange(string range)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good start but I imagine we may want to expand this syntax to support something like: 200,202-204

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each item in the StatusCodes property above represents either a single code or a code range. An individual item should not have a combination of them. So this is permissable:

[ "200", "202-204" ]

but not:

[ "200,202-204" ]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will leave it as is for now, but if there's strong favor for having the payload be one string I can change it.

@wiktork
Copy link
Member Author

wiktork commented Sep 21, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wiktork wiktork force-pushed the dev/wiktork/aspnetTriggers branch from 6916c7f to e29a058 Compare September 21, 2021 20:48
@wiktork wiktork merged commit 6c91cd7 into dotnet:main Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants