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
- ListItemCollection.cs
- MustUnderstandBehavior.cs
- Cursor.cs
- DataGridViewCellValueEventArgs.cs
- TrustLevelCollection.cs
- BigInt.cs
- ConstructorExpr.cs
- MsmqEncryptionAlgorithm.cs
- SingleAnimation.cs
- DbInsertCommandTree.cs
- UInt16Storage.cs
- XDRSchema.cs
- ReachDocumentReferenceSerializerAsync.cs
- BaseProcessor.cs
- GuidelineSet.cs
- BaseCollection.cs
- SerializationInfo.cs
- PeerSecurityHelpers.cs
- AnnotationHelper.cs
- XmlTextReaderImpl.cs
- Transform3DGroup.cs
- PeerContact.cs
- DependencyProperty.cs
- SeverityFilter.cs
- BamlRecordHelper.cs
- XmlSchemaAnnotation.cs
- MessageHeader.cs
- RestHandler.cs
- HighlightVisual.cs
- BitmapEncoder.cs
- CodeVariableReferenceExpression.cs
- MutexSecurity.cs
- BaseCAMarshaler.cs
- SessionPageStateSection.cs
- HtmlImage.cs
- AnnotationResource.cs
- MSAANativeProvider.cs
- AuthorizationContext.cs
- MimeTextImporter.cs
- TransformerTypeCollection.cs
- IProvider.cs
- InnerItemCollectionView.cs
- PartialTrustVisibleAssembly.cs
- ContextMarshalException.cs
- SynchronizedInputHelper.cs
- TypeCollectionPropertyEditor.cs
- MarshalDirectiveException.cs
- BuilderElements.cs
- SessionEndingEventArgs.cs
- _DigestClient.cs
- InheritedPropertyChangedEventArgs.cs
- CalendarDateRangeChangingEventArgs.cs
- IRCollection.cs
- BitmapData.cs
- EnumType.cs
- ArrayTypeMismatchException.cs
- FixedFindEngine.cs
- RuleValidation.cs
- RoleBoolean.cs
- XamlSerializer.cs
- ProviderManager.cs
- AudioStateChangedEventArgs.cs
- CollectionBuilder.cs
- Timer.cs
- EpmHelper.cs
- COMException.cs
- VersionConverter.cs
- ObjectViewQueryResultData.cs
- DataControlFieldCollection.cs
- PerfCounters.cs
- DataGridTablesFactory.cs
- OperationDescriptionCollection.cs
- PingReply.cs
- TypeUtil.cs
- StorageBasedPackageProperties.cs
- WebPartConnectVerb.cs
- HttpProfileGroupBase.cs
- SocketElement.cs
- OperatorExpressions.cs
- HotSpotCollection.cs
- RC2CryptoServiceProvider.cs
- EventLogInformation.cs
- RefExpr.cs
- TextEffect.cs
- SchemaImporterExtensionElementCollection.cs
- TransportationConfigurationTypeInstallComponent.cs
- WebPartEditorApplyVerb.cs
- ArcSegment.cs
- QilPatternVisitor.cs
- PeerEndPoint.cs
- MessageQueueTransaction.cs
- PrimitiveCodeDomSerializer.cs
- PartBasedPackageProperties.cs
- MimeTypeAttribute.cs
- AssemblyAttributesGoHere.cs
- SqlColumnizer.cs
- QueryOperator.cs
- SupportsEventValidationAttribute.cs
- Roles.cs
- ImageDrawing.cs