public class TestPlugin : IPlugin
{
private Guid ExecutionContextId { get; } = Guid.NewGuid();
public void Execute(IServiceProvider serviceProvider)
{
var tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
tracingService.Trace($"ExecutionContextId: {ExecutionContextId}");
}
}
This fundamentally changes how we should design plugins. The documentation strongly emphasizes stateless design because of instance caching, but if instances aren't cached anymore, this guidance needs updating.
This is critical for the community to understand as it affects plugin design patterns and performance considerations.
Thanks!
WarrenBelz
973
Most Valuable Professional
MS.Ragavendar
366
Super User 2025 Season 2
Power Apps 1919
343