service-fabric-healer/SampleHealerPlugin
Naresh Kumar ac002aa535
disable plugin reload at every repair workflow start (#181)
* deprecation notice

* new contract changes

* add token to async api

* update callers

* add sample plugin for new plugin contracts

* add default definition for remaing plugin interface methods too

* nit - format

* let plugins control predicate type construction - adds more flexibility

* no need abstraction for plugin loader

* new interface rename

* no need to break service initializer

* move deserialization extension point to predicate type interface

* move predicate load api to existing interface and delete the new one

* give a default body for the obselete method so the plugins dont have to implement those

* change existing usage instead of adding new samples, as it's confusing

* add new app param to determine which version of plugin code shud be used

* use the app param

* automate FH nuget consumption in sample project

* Revert "automate FH nuget consumption in sample project"

This reverts commit 31ae6af2b5.

* reverting sample project changes

* undo app rule change

* var rename

* nit - doc

* no need to catch null ref any more as we check for attribute instance for null

* now that attributes are merged, a single plugin will have multiple attribute usages. so handle that

* prev commit

* caller needs to know the type info even if we use a generic type.
and also that has to be child of FH's TelemetryData not FO's TelemetryData.
so better use string itself.
flexibility over type safety

* nit

* - remove old code
 - remove config that switches flow from old to new as it's not needed any more

* remove attributes that arent used anymore

* nit - method rename

* Made the suggested changes, plus a few minor ones.

* update documentation for plugin changes

* nit

---------

Co-authored-by: Charles Torre <ctorre@microsoft.com>
Co-authored-by: Sidhant Bhatia <sibhatia@microsoft.com>
2024-10-21 11:19:36 -04:00
..
SampleHealerPlugin.csproj disable plugin reload at every repair workflow start (#181) 2024-10-21 11:19:36 -04:00
SampleRepairPredicateType.cs disable plugin reload at every repair workflow start (#181) 2024-10-21 11:19:36 -04:00
SampleRepairPredicateTypeStartup.cs nit - sample rule rename 2024-03-09 12:24:17 +05:30
SampleServiceInitializer.cs undo service initializer rename and namespace change, to avoid breaking changes 2024-03-05 10:12:05 +05:30
SampleTelemetryData.cs disable plugin reload at every repair workflow start (#181) 2024-10-21 11:19:36 -04:00