Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Management / WebEventTraceProvider.cs / 1305376 / WebEventTraceProvider.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Management { using System.Configuration; using System.Configuration.Provider; using System.Collections.Specialized; using System.Web.Util; using System.Security.Permissions; //////////// // Events //////////// public sealed class TraceWebEventProvider : WebEventProvider, IInternalWebEventProvider { internal TraceWebEventProvider() { } public override void Initialize(string name, NameValueCollection config) { Debug.Trace("TraceWebEventProvider", "Initializing: name=" + name); base.Initialize(name, config); ProviderUtil.CheckUnrecognizedAttributes(config, name); } public override void ProcessEvent(WebBaseEvent eventRaised) { if (eventRaised is WebBaseErrorEvent) { System.Diagnostics.Trace.TraceError(eventRaised.ToString()); } else { System.Diagnostics.Trace.TraceInformation(eventRaised.ToString()); } } public override void Flush() { } public override void Shutdown() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathDescendantIterator.cs
- ExpressionNormalizer.cs
- WriteableBitmap.cs
- DependencyPropertyChangedEventArgs.cs
- NetPeerTcpBindingElement.cs
- SchemaElementDecl.cs
- HttpClientChannel.cs
- HebrewNumber.cs
- RuntimeWrappedException.cs
- PropertyInformation.cs
- ObservableCollection.cs
- ResourceAttributes.cs
- EntityContainerEmitter.cs
- GridViewCommandEventArgs.cs
- DeleteIndexBinder.cs
- Signature.cs
- InterleavedZipPartStream.cs
- MDIControlStrip.cs
- TextHidden.cs
- FormViewPagerRow.cs
- Range.cs
- ModuleConfigurationInfo.cs
- bidPrivateBase.cs
- ILGenerator.cs
- HttpGetProtocolReflector.cs
- NameValueFileSectionHandler.cs
- ComboBoxAutomationPeer.cs
- ProtocolReflector.cs
- UInt64.cs
- Point3DCollection.cs
- WmpBitmapEncoder.cs
- WCFModelStrings.Designer.cs
- Base64Stream.cs
- DataGridRowDetailsEventArgs.cs
- TextEffectCollection.cs
- MatrixConverter.cs
- FixedDocumentPaginator.cs
- ProfileBuildProvider.cs
- EntityDataSourceDesigner.cs
- X509SecurityToken.cs
- Literal.cs
- SQLChars.cs
- NumberFormatInfo.cs
- ChildDocumentBlock.cs
- WeakReferenceEnumerator.cs
- StandardOleMarshalObject.cs
- RoleGroupCollectionEditor.cs
- MissingManifestResourceException.cs
- SpellCheck.cs
- PrimitiveDataContract.cs
- ReachUIElementCollectionSerializerAsync.cs
- OutOfProcStateClientManager.cs
- Positioning.cs
- XamlHttpHandlerFactory.cs
- ProviderSettingsCollection.cs
- RequestSecurityTokenResponse.cs
- ControlType.cs
- RadioButtonBaseAdapter.cs
- InvokeMethodActivityDesigner.cs
- DataFormats.cs
- DataGridColumnEventArgs.cs
- WmiEventSink.cs
- DynamicPropertyReader.cs
- DurableDispatcherAddressingFault.cs
- InlinedAggregationOperatorEnumerator.cs
- SecurityTokenTypes.cs
- CompilerLocalReference.cs
- PropertyEntry.cs
- ListItemCollection.cs
- QilGenerator.cs
- ThreadAbortException.cs
- OperandQuery.cs
- PathGradientBrush.cs
- FormViewRow.cs
- MatrixAnimationBase.cs
- Label.cs
- ResXFileRef.cs
- ModelPropertyImpl.cs
- XmlBufferReader.cs
- FontFaceLayoutInfo.cs
- TemplatePropertyEntry.cs
- ComplexType.cs
- StringComparer.cs
- ExecutionEngineException.cs
- HttpCachePolicy.cs
- DocumentSchemaValidator.cs
- DynamicRendererThreadManager.cs
- OneOf.cs
- XmlCollation.cs
- StorageScalarPropertyMapping.cs
- EventLogPermissionEntry.cs
- DoWhileDesigner.xaml.cs
- SymbolUsageManager.cs
- ServiceDurableInstance.cs
- StatusBarItemAutomationPeer.cs
- SqlTypesSchemaImporter.cs
- XmlProcessingInstruction.cs
- EndpointReference.cs
- SqlMetaData.cs
- WpfXamlType.cs