public override void ExecuteCmdlet() { var session = AzureSession.Instance; ContextModificationScope scope; if (MyInvocation.BoundParameters.ContainsKey(nameof(Scope)) && Scope == ContextModificationScope.CurrentUser) { scope = ScopeHelpers.GetContextModificationScopeForUser(session, WriteDebugWithTimestamp); } else { scope = ScopeHelpers.GetContextModificationScopeForProcess(WriteDebugWithTimestamp); } WriteObject(GetAutoSaveSettings(session, scope)); }
public override void ExecuteCmdlet() { if (!SharedTokenCacheProvider.SupportCachePersistence(out string message)) { WriteDebug(Resources.TokenCacheEncryptionNotSupportedWithFallback); WriteDebug(message); } var session = AzureSession.Instance; ContextModificationScope scope; if (MyInvocation.BoundParameters.ContainsKey(nameof(Scope)) && Scope == ContextModificationScope.CurrentUser) { scope = ScopeHelpers.GetContextModificationScopeForUser(session, WriteDebugWithTimestamp); } else { scope = ScopeHelpers.GetContextModificationScopeForProcess(WriteDebugWithTimestamp); } WriteObject(GetAutoSaveSettings(session, scope)); }