/// <summary>Ctor.</summary> public ConfigurationEngineDefaults() { Threading = new ThreadingConfig(); ViewResources = new ViewResourcesConfig(); EventMeta = new EventMetaConfig(); Logging = new LoggingConfig(); Variables = new VariablesConfig(); StreamSelection = new StreamSelectionConfig(); TimeSource = new TimeSourceConfig(); MetricsReporting = new MetricsReportingConfig(); Language = new LanguageConfig(); Expression = new ExpressionConfig(); Execution = new ExecutionConfig(); ExceptionHandling = new ExceptionHandlingConfig(); ConditionHandling = new ConditionHandlingConfig(); AlternativeContext = new AlternativeContextConfig(); Patterns = new PatternsConfig(); MatchRecognize = new MatchRecognizeConfig(); Scripts = new ScriptsConfig(); }
public static void Register(HttpConfiguration config) { //var cors = new EnableCorsAttribute("*", "*", "*"); //config.EnableCors(cors); MediaTypeFormattingConfig.Configure(config); RoutingConfig.Configure(config); IoCConfig.Configure(config); TracingConfig.Configure(config, IoCConfig.Container); LoggingConfig.Configure(); ExceptionHandlingConfig.Configure(config); ValidationConfig.Configure(config); LocalizationConfig.Configure(config); //configure authentication config.MessageHandlers.Insert(0, new AuthenticationHandler()); //for gzip compression use: // config.MessageHandlers.Insert(0, new ServerCompressionHandler(new GZipCompressor(), new DeflateCompressor())); }