Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / comsvcutil / ToolConsole.cs / 1 / ToolConsole.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.Tools.ServiceModel.ComSvcConfig { using System; using System.ServiceModel.Channels; using System.IO; using Microsoft.Tools.ServiceModel; using Microsoft.Tools.ServiceModel.SvcUtil; internal static class ToolConsole { static bool verbose = false; static public bool Verbose { set { verbose = value; } } internal static void WriteQueryLine(string str) { Console.WriteLine(str); } internal static void WriteLine(string str) { Console.WriteLine(str); } internal static void WriteError(Exception e) { WriteError(e, SR.GetString(SR.Error)); } internal static void WriteWarning(string message) { if (verbose ) { Console.Write(SR.GetString(SR.Warning)); Console.WriteLine(message); } } internal static void WriteNonVerboseWarning(string message) { Console.Write(SR.GetString(SR.Warning)); Console.WriteLine(message); } internal static void WriteError(string errMsg, string prefix) { Console.Error.Write(prefix); Console.Error.WriteLine(errMsg); } internal static void WriteError(Exception e, string prefix) { WriteError(e.Message, prefix); if (e.InnerException != null) WriteError(e.InnerException, " "); } internal static void WriteDetailedException (Exception e, string prefix) { WriteError(e, prefix); if (e.InnerException != null) WriteError(e.InnerException, " "); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AlgoModule.cs
- AssertSection.cs
- Matrix.cs
- CachedFontFamily.cs
- TriggerCollection.cs
- SynchronizedDispatch.cs
- EntityDataSourceDataSelectionPanel.cs
- ExtensionFile.cs
- TextDecorationCollectionConverter.cs
- CodeLinePragma.cs
- FormViewModeEventArgs.cs
- InstanceDataCollectionCollection.cs
- GridItemCollection.cs
- HttpPostClientProtocol.cs
- BitmapSourceSafeMILHandle.cs
- BitVector32.cs
- EncoderParameter.cs
- EntityClassGenerator.cs
- EditorPartCollection.cs
- RectConverter.cs
- Formatter.cs
- AutomationPattern.cs
- AnnotationMap.cs
- Quad.cs
- DBPropSet.cs
- AppSettingsReader.cs
- BitmapEffectRenderDataResource.cs
- NamespaceList.cs
- PagerSettings.cs
- WhitespaceSignificantCollectionAttribute.cs
- TrustSection.cs
- Rules.cs
- StandardMenuStripVerb.cs
- DesignerOptionService.cs
- BaseCollection.cs
- ManualResetEvent.cs
- Matrix.cs
- ConfigurationProperty.cs
- ProtocolElement.cs
- controlskin.cs
- PnrpPermission.cs
- DiscoveryClientProtocol.cs
- ConfigurationStrings.cs
- RtfControlWordInfo.cs
- TextSerializer.cs
- FileDialogCustomPlace.cs
- util.cs
- TypedAsyncResult.cs
- DateTimeOffsetConverter.cs
- PropertyMapper.cs
- PassportAuthenticationEventArgs.cs
- ZipIOFileItemStream.cs
- FormsAuthenticationUser.cs
- DocumentXPathNavigator.cs
- EventLogQuery.cs
- MenuDesigner.cs
- RawMouseInputReport.cs
- GraphicsState.cs
- Transactions.cs
- DescendantBaseQuery.cs
- SelectionHighlightInfo.cs
- TemplateBindingExpressionConverter.cs
- ToolStripPanelCell.cs
- FileNotFoundException.cs
- ConstNode.cs
- ObjectKeyFrameCollection.cs
- GlobalizationSection.cs
- RectIndependentAnimationStorage.cs
- ObjectToModelValueConverter.cs
- FamilyTypeface.cs
- RsaKeyIdentifierClause.cs
- WindowsFormsHost.cs
- TdsParserSessionPool.cs
- DataSourceCacheDurationConverter.cs
- SimpleType.cs
- SoapMessage.cs
- ClrProviderManifest.cs
- XhtmlBasicTextViewAdapter.cs
- securitymgrsite.cs
- WorkBatch.cs
- TextServicesHost.cs
- Component.cs
- DataTableNameHandler.cs
- SamlAssertionKeyIdentifierClause.cs
- TransformConverter.cs
- CodeDirectionExpression.cs
- embossbitmapeffect.cs
- BmpBitmapEncoder.cs
- RegisteredDisposeScript.cs
- EmptyEnumerator.cs
- DataServiceQueryContinuation.cs
- GridLength.cs
- SafeProcessHandle.cs
- ObjectHandle.cs
- BatchParser.cs
- SqlConnectionStringBuilder.cs
- HttpDictionary.cs
- StateMachineHistory.cs
- ImageUrlEditor.cs
- StructureChangedEventArgs.cs