diff --git a/PAMU_CDS/CommonDataServiceCurrentEnvironment.cs b/PAMU_CDS/CommonDataServiceCurrentEnvironment.cs index 6273947..55d98a6 100644 --- a/PAMU_CDS/CommonDataServiceCurrentEnvironment.cs +++ b/PAMU_CDS/CommonDataServiceCurrentEnvironment.cs @@ -19,7 +19,6 @@ public class CommonDataServiceCurrentEnvironment : IMockUpExtension { private readonly List _triggers; public ServiceCollection Services { get; } - readonly RecursionChecker _recursionChecker; public CommonDataServiceCurrentEnvironment(Uri flowFolderPath) @@ -34,8 +33,6 @@ public CommonDataServiceCurrentEnvironment(Uri flowFolderPath) } Services = new ServiceCollection(); - - _recursionChecker = new RecursionChecker(); } public void TriggerExtension( @@ -51,14 +48,7 @@ public void TriggerExtension( var flows = ApplyCriteria(request); - var temp = new PamuCdsOrganizationService(organizationService, _recursionChecker); - - if (_recursionChecker.IsRecursiveCall(currentEntity.Id, request.RequestName.ToLower())) - { - throw new PowerAutomateException("Recursive call detected."); - } - - var sp = BuildServiceCollection(temp).BuildServiceProvider(); + var sp = BuildServiceCollection(organizationService).BuildServiceProvider(); // var flowRunner = sp.GetRequiredService();