tfsaggregator / tfsaggregator-webhooks

WARNING: the team is no more maintaing this version. See aggreggator-cli instead.
https://github.com/tfsaggregator/aggregator-cli
19 stars 22 forks source link

Feature: Ability to write rules in a separate assembly #19

Closed hegold closed 5 years ago

hegold commented 6 years ago

To get the benefits of a real IDE, unit testing and debugging, it would be nice not to have to have to write code in XML files. An ideal solution might look something like:

[Rule]
[AppliesTo("Task")]
public void HelloWorldRule(IWorkItemExposed self, IWorkItemRepositoryExposed store, ILogger logger)
{
    logger.Log("Hello '{2}', World from {1} #{0}!", self.Id, self.TypeName, self["System.Title"]);
}
<policy name="SomePolicy">
  <ruleRef assembly="HelloWorldRules.dll" />
</policy>
LSTANCZYK commented 6 years ago

+1

LSTANCZYK commented 6 years ago

For now i created test project where I added all references and use the IDE to author rules, then copy paste to XML. Not ideal but works ok

jessehouwing commented 6 years ago

Can you share that project? I suppose it's helpful for others.

On Tue, 12 Jun 2018, 19:57 LSTANCZYK, notifications@github.com wrote:

For now i created test project where I added all references and use the IDE to author rules, then copy paste to XML. Not ideal but works ok

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tfsaggregator/tfsaggregator-webhooks/issues/19#issuecomment-396679098, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS9z-HcaEj6AnAlYoXHBAjP9hjAbHks5t8ADsgaJpZM4R_Nr4 .