private async void ExecuteStartLinkCloudCommand(List <object> parameters) { var provider = (CloudStorageProvider)parameters.First(); var authenticationUserControl = (CloudStorageAuthenticationUserControl)parameters.Last(); authenticationUserControl.AuthenticationCanceled += AuthenticationUserControl_AuthenticationCanceled; authenticationUserControl.AuthenticationCompleted += AuthenticationUserControl_AuthenticationCompleted; Logger.Instance.Information($"The will try to login to {provider.Name}."); await SignOutCloudAsync(); DispatcherHelper.CreateNewThread().Invoke(() => { AuthenticateCloudAsync(provider, authenticationUserControl); }); }