private MinioOption GetMiniOption(StatefulServiceContext context) { var result = context?.GetOption <MinioOption>("BackupSettings.Minio"); //if (result == null || // string.IsNullOrEmpty(result.EndPoint) || // string.IsNullOrEmpty(result.AccessKey) || // string.IsNullOrEmpty(result.SecretKey)) // throw new Exception("Minio配置不能够为空"); return(result); }