Пример #1
0
        public ApiProxyGenerationOptions CreateOptions()
        {
            var options = new ApiProxyGenerationOptions(this.Type, this.UseCache);

            if (!this.Modules.IsNullOrEmpty())
            {
                options.Modules = this.Modules.Split('|').Select(m => m.Trim()).ToArray();
            }

            if (!this.Controllers.IsNullOrEmpty())
            {
                options.Controllers = this.Controllers.Split('|').Select(m => m.Trim()).ToArray();
            }

            if (!this.Actions.IsNullOrEmpty())
            {
                options.Actions = this.Actions.Split('|').Select(m => m.Trim()).ToArray();
            }

            return(options);
        }
        public ApiProxyGenerationOptions CreateOptions()
        {
            var options = new ApiProxyGenerationOptions(Type, UseCache);

            if (!string.IsNullOrWhiteSpace(Modules))
            {
                options.Modules = Modules.Split('|').Select(m => m.Trim()).ToArray();
            }

            if (!string.IsNullOrWhiteSpace(Controllers))
            {
                options.Controllers = Controllers.Split('|').Select(m => m.Trim()).ToArray();
            }

            if (!string.IsNullOrWhiteSpace(Actions))
            {
                options.Actions = Actions.Split('|').Select(m => m.Trim()).ToArray();
            }

            return(options);
        }