Exemple #1
0
        /// <inheritdoc />
        public IAssetsConfiguration Assets(string urlPath, string fileSystemPath)
        {
            var assetConfig = new AssetConfiguration(urlPath, fileSystemPath, GetCurrentApiInformation());

            ApplicationConfigurationService.AddConfigurationObject(assetConfig);

            return(assetConfig);
        }
Exemple #2
0
        /// <inheritdoc />
        public IExposureConfiguration <T> Expose <T>()
        {
            var config = new TypeExposureConfiguration <T>(GetCurrentApiInformation());

            ApplicationConfigurationService.AddConfigurationObject(config);

            return(config);
        }
Exemple #3
0
        /// <inheritdoc />
        public ITypeSetExposureConfiguration Expose(IEnumerable <Type> types)
        {
            var config = new TypeSetExposureConfiguration(GetCurrentApiInformation(), types);

            ApplicationConfigurationService.AddConfigurationObject(config);

            return(config);
        }
Exemple #4
0
        /// <inheritdoc />
        public IExposureConfiguration Expose(Type type)
        {
            var config = new TypeExposureConfiguration(GetCurrentApiInformation(), type);

            ApplicationConfigurationService.AddConfigurationObject(config);

            return(config);
        }