internal static void RunServiceEndpointInitProcessing(HttpContext context, EndpointDataList endpointDataList) { try { if (endpointDataList.Any(p => p.Type.Equals("service", StringComparison.OrdinalIgnoreCase))) { if (HttpRuntime.UsingIntegratedPipeline) { var se = new ServiceEndpointInitProcessor(); se.Initialize(HttpContext.Current, null); se.Execute(); } else { throw new PlatformNotSupportedException(Resource.Server_IntegratedPipelineRequired); } } } catch (Exception ex) { if (WebProcessingReportController.Reporter.Initialized) { var map = new Map(); map.Add("Section", "Service Endpoint"); map.Add("Message", ex.Message); map.Add("Exception Type", ex.GetType().FullName); //+ WebProcessingReportController.Reporter.AddMap(map); } } }
//- ~Connect -// internal void Connect(FactoryDataList factoryDataList, ProcessorDataList processorDataList, EndpointDataList endpointDataList) { _factoryDataList = factoryDataList; _processorDataList = processorDataList; _endpointDataList = endpointDataList; }
//- ~RunFileEndpointInitProcessing -// internal static void RunFileEndpointInitProcessing(HttpContext context, EndpointDataList endpointDataList) { try { if (endpointDataList.Any(p => p.Type.Equals("file", StringComparison.OrdinalIgnoreCase))) { var se = new FileAliasInitProcessor(); se.Initialize(HttpContext.Current, null); se.Execute(); } } catch (Exception ex) { if (WebProcessingReportController.Reporter.Initialized) { var map = new Map(); map.Add("Section", "File"); map.Add("Message", ex.Message); map.Add("Exception Type", ex.GetType().FullName); //+ WebProcessingReportController.Reporter.AddMap(map); } } }