You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at this sample app and have a question why this sample uses a static modifier for ec2Client? As far as I understand, the intention is to use this client as singleton, but the same behavior will be reached if ec2Client will be non static, won't it? Like:
private AmazonEC2Client ec2Client;
public Function() {
AWSSDKHandler.RegisterXRayForAllServices();
ec2Client = new AmazonEC2Client();
}