Skip to content

Commit

Permalink
Adding logging of current user name for troubleshooting during alpha …
Browse files Browse the repository at this point in the history
…release...
  • Loading branch information
jordimontana82 committed Feb 4, 2024
1 parent 6aa6746 commit 863db20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/FakeXrmEasy.Core/Middleware/MiddlewareBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ public IMiddlewareBuilder SetLicense(FakeXrmEasyLicense license)
/// <returns></returns>
public IMiddlewareBuilder SetSubscriptionStorageProvider(ISubscriptionStorageProvider storageProvider, bool upgradeRequested = false, bool renewalRequested = false)
{
SubscriptionManager.SetSubscriptionStorageProvider(storageProvider, new UserReader(), upgradeRequested, renewalRequested);
var userReader = new UserReader();
Console.WriteLine($"Setting Subscription Storage Provider...");
Console.WriteLine($" -> Running as '{userReader.GetCurrentUserName()}' ...");

SubscriptionManager.SetSubscriptionStorageProvider(storageProvider, userReader, upgradeRequested, renewalRequested);

Console.WriteLine($"Setting Subscription Storage Provider ok.");
return this;
}
}
Expand Down

0 comments on commit 863db20

Please sign in to comment.