예제 #1
0
		void ShowMain()
		{
			if (CheckForConfigurationFormatUpgrade())
				return;

			string config = ConfigurationSettings.AppSettings["FederationNamespaceMapFile"];
			string mappedConfig = (config == null ? null : MapPath(config));
			ConfigurationChecker checker = new ConfigurationChecker(
				config,
				mappedConfig);

			checker.Check();
			checker.WriteStoplightTo(UIResponse);

			UIResponse.WriteDivider();

			Federation aFederation = null;
			try
			{
				aFederation = new Federation(mappedConfig, Formatting.OutputFormat.HTML, new LinkMaker(""));
			}
			catch (Exception)
			{
			}

			if (aFederation != null)
				ShowFederationInfo(aFederation);
		}
예제 #2
0
		private void ShowMain()
		{
			if (CheckForConfigurationFormatUpgrade())
				return;

			string config = ConfigurationManager.AppSettings["FederationNamespaceMapFile"];
			ConfigurationChecker checker = new ConfigurationChecker(
				config,
				(config == null ? null : MapPath(config)));

			checker.Check();
			checker.WriteStoplightTo(UIResponse);
			checker.WriteTo(UIResponse);
		}