public static ApplicationConfigurationBuilder UseDataServiceResource(this ApplicationConfigurationBuilder appBuilder, string scheme, string domainName)
        {
            appBuilder.UseCustomResourceHandler(() => new SchemeConfiguration(scheme, domainName, builder => {
                builder.ImportDataServiceAssembly(Assembly.GetEntryAssembly());
            }));

            return(appBuilder);
        }
Exemple #2
0
        public static ApplicationConfigurationBuilder UseLocalFileResource(this ApplicationConfigurationBuilder @this, string scheme, string domainName, string localFileResourceDirectory, Func <string, string> onFallback = null)
        {
            @this.UseCustomResourceHandler(() => new SchemeConfiguration(scheme, domainName, localFileResourceDirectory, onFallback));

            return(@this);
        }
Exemple #3
0
        public static ApplicationConfigurationBuilder UseEmbeddedFileResource(this ApplicationConfigurationBuilder appBuilder, string scheme, string domainName, Assembly resourceAssembly, string resourceFileRootPath = null)
        {
            appBuilder.UseCustomResourceHandler(() => new SchemeConfiguration(resourceAssembly, scheme, domainName, resourceFileRootPath));

            return(appBuilder);
        }
Exemple #4
0
        public static ApplicationConfigurationBuilder UseZippedResource(this ApplicationConfigurationBuilder @this, string scheme, string domainName, Func <Stream> zipFileStream, Func <string, string> onFallback = null)
        {
            @this.UseCustomResourceHandler(() => new SchemeConfiguration(scheme, domainName, zipFileStream, onFallback));

            return(@this);
        }
        public static ApplicationConfigurationBuilder UseDataServiceResource(this ApplicationConfigurationBuilder appBuilder, string scheme, string domainName, Action <DataServiceProvider> buildDataService = null)
        {
            appBuilder.UseCustomResourceHandler(() => new SchemeConfiguration(scheme, domainName, buildDataService));

            return(appBuilder);
        }
Exemple #6
0
        public static ApplicationConfigurationBuilder UseZippedResource(this ApplicationConfigurationBuilder @this, string scheme, string domainName, string zipFilePath)
        {
            @this.UseCustomResourceHandler(() => new SchemeConfiguration(scheme, domainName, zipFilePath));

            return(@this);
        }