v1.2.12-preview
Pre-release
Pre-release
New Features
- Added a new method
IApplicationEnvironment.TryGetAuthProviderthat lets plugins attempt to fetch instances of a class that can be used to perform specific types of authentication. This is a generic method where a plugin supplies the type of the authentication they wish to form via generic parameters. The SDK defines anIAuthMethodAzureBearerTokenAuththat plugins can request anIAuthProviderfor.- Attempting to fetch an
IAuthProviderfrom the application may fail if the application environment does not have an implementation for the requested auth method. Plugins are expected to handle cases when failures occur. IApplicationEnvironment.TryGetAuthProvideris implemented as an extension method in order to maintain backwards compatibility with the currentIApplicationEnvironmentinterface. In future major versions, this method will be directly defined on the type.
- Attempting to fetch an
What's Changed
- ProcessedEventData: delay allocation until first event. by @jmaxson-ms in #342
- Denote SDK Byte types as numeric by @mslukebo in #344
- Engine.Create(IDataSource) disposes of DataSourceSet. by @jmaxson-ms in #346
- Prevent installing plugin over previous installation folder by @mslukebo in #348
- Add support for .NET 8 by @mslukebo in #347
- Fix FileSystemObsoletePluginsRemover for in-use plugins by @mslukebo in #349
- Remove legacy path for determining plugin name by @mslukebo in #350
- Add more helper methods for serializing table configs by @mslukebo in #351
- Add support for static generic methods as bodies for struct functions by @crisl-ms in #353
- Update docstring for CompareToSafe by @mslukebo in #354
- Update docs for choosing SDK version guidance by @mslukebo in #358
- Add ability to register and retrieve auth providers to/from IApplicationEnvironment by @mslukebo in #360
- Bump System.Text.Json from 7.0.0 to 8.0.4 in /src/PluginsSystem/Microsoft.Performance.Toolkit.Plugins.Core by @dependabot in #364
- Move TryGetAuthProvider to new IApplicationEnvironmentV2 interface by @mslukebo in #365
New Contributors
Full Changelog: v1.1.2-preview...v1.2.12-preview