10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |
12 |13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |
15 | -------------------------------------------------------------------------------- /samples/SwiftClient.Cli/Commands/ListOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | using CommandLine; 7 | using CommandLine.Text; 8 | 9 | namespace SwiftClient.Cli 10 | { 11 | [Verb("ls", HelpText = "list containers or objects in container if a container is specified")] 12 | public class ListOptions 13 | { 14 | [Option('c', "container", Required = false, HelpText = "container name")] 15 | public string Container { get; set; } 16 | 17 | [Option('d', "delimiter", Required = false, HelpText = "delimiter")] 18 | public string Delimiter { get; set; } 19 | 20 | [Option('p', "prefix", Required = false, HelpText = "prefix")] 21 | public string Prefix { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /samples/SwiftClient.AspNetCore.Demo/Models/ContainerViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace SwiftClient.AspNetCore.Demo 4 | { 5 | public class PageViewModel 6 | { 7 | public TreeViewModel Tree { get; set; } 8 | 9 | public string Message { get; set; } 10 | } 11 | 12 | public class TreeViewModel 13 | { 14 | public string text { get; set; } 15 | 16 | public string containerId { get; set; } 17 | 18 | public string objectId { get; set; } 19 | 20 | public bool isExpandable { get; set; } 21 | 22 | public bool isFile { get; set; } 23 | 24 | public bool isVideo { get; set; } 25 | 26 | public bool hasNodes { get; set; } 27 | 28 | public List