public override async Task <int> ExecuteAsync() { try { IRemote remote = RemoteFactory.GetBarOnlyRemote(_options, Logger); DefaultChannel resolvedChannel = await ResolveSingleChannel(); if (resolvedChannel == null) { return(Constants.ErrorCode); } await remote.DeleteDefaultChannelAsync(resolvedChannel.Id); return(Constants.SuccessCode); } catch (AuthenticationException e) { Console.WriteLine(e.Message); return(Constants.ErrorCode); } catch (Exception e) { Logger.LogError(e, "Error: Failed remove the default channel association."); return(Constants.ErrorCode); } }