Skip to content

Commit

Permalink
feat: Removed recursion from PAMU CDS
Browse files Browse the repository at this point in the history
  • Loading branch information
thygesteffensen committed Jan 13, 2021
1 parent 4fc7d99 commit 94bccdd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions PAMU_CDS/CommonDataServiceCurrentEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class CommonDataServiceCurrentEnvironment : IMockUpExtension
{
private readonly List<TriggerSkeleton> _triggers;
public ServiceCollection Services { get; }
readonly RecursionChecker _recursionChecker;


public CommonDataServiceCurrentEnvironment(Uri flowFolderPath)
Expand All @@ -34,8 +33,6 @@ public CommonDataServiceCurrentEnvironment(Uri flowFolderPath)
}

Services = new ServiceCollection();

_recursionChecker = new RecursionChecker();
}

public void TriggerExtension(
Expand All @@ -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<FlowRunner>();

Expand Down

0 comments on commit 94bccdd

Please sign in to comment.