Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DynamicEntity.cs
- MsmqElementBase.cs
- MLangCodePageEncoding.cs
- PenLineCapValidation.cs
- BitmapEncoder.cs
- EnumerableCollectionView.cs
- StoreConnection.cs
- UInt16Converter.cs
- XmlNotation.cs
- QilFactory.cs
- ProxyGenerationError.cs
- WebReferencesBuildProvider.cs
- SwitchLevelAttribute.cs
- CodeIdentifiers.cs
- SqlCacheDependencyDatabaseCollection.cs
- MouseDevice.cs
- SerTrace.cs
- CacheModeConverter.cs
- DataGridViewCellValidatingEventArgs.cs
- UiaCoreProviderApi.cs
- TimeoutException.cs
- ClassicBorderDecorator.cs
- GenericEnumerator.cs
- DecimalAnimationBase.cs
- SingleAnimation.cs
- XmlIlGenerator.cs
- LoginUtil.cs
- UndoUnit.cs
- Guid.cs
- Touch.cs
- StorageRoot.cs
- Object.cs
- WmpBitmapEncoder.cs
- RootProjectionNode.cs
- cryptoapiTransform.cs
- HitTestWithPointDrawingContextWalker.cs
- FirstMatchCodeGroup.cs
- PhysicalFontFamily.cs
- BindingExpression.cs
- DataColumnCollection.cs
- ProofTokenCryptoHandle.cs
- Compiler.cs
- DispatcherTimer.cs
- ExternalFile.cs
- DatatypeImplementation.cs
- KeyEventArgs.cs
- DeviceSpecificDialogCachedState.cs
- MetadataArtifactLoader.cs
- EraserBehavior.cs
- ResolveDuplex11AsyncResult.cs
- ProtocolInformationWriter.cs
- XmlCharCheckingWriter.cs
- SystemTcpConnection.cs
- TableChangeProcessor.cs
- SafeProcessHandle.cs
- BinaryObjectWriter.cs
- CompositeDataBoundControl.cs
- BuildProviderUtils.cs
- DataGridViewRowPrePaintEventArgs.cs
- SqlTrackingWorkflowInstance.cs
- Dynamic.cs
- GridItemCollection.cs
- HttpResponseInternalWrapper.cs
- SessionEndedEventArgs.cs
- XmlByteStreamReader.cs
- WindowsStatic.cs
- Debug.cs
- LocatorGroup.cs
- TableProviderWrapper.cs
- EmbeddedMailObjectsCollection.cs
- InputGestureCollection.cs
- codemethodreferenceexpression.cs
- TextWriterEngine.cs
- CompilerWrapper.cs
- XamlFigureLengthSerializer.cs
- StructuredTypeEmitter.cs
- DictionaryChange.cs
- ResourceIDHelper.cs
- TemplateApplicationHelper.cs
- Page.cs
- DictationGrammar.cs
- MappingItemCollection.cs
- ItemAutomationPeer.cs
- BitmapEffectGeneralTransform.cs
- NumberFormatter.cs
- BamlTreeNode.cs
- Debug.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- UnionCodeGroup.cs
- TextTrailingWordEllipsis.cs
- MimePart.cs
- ContextMarshalException.cs
- ExpressionBuilderContext.cs
- ObjectDataSourceView.cs
- PrinterResolution.cs
- DebugTrace.cs
- ConfigXmlComment.cs
- StorageMappingItemLoader.cs
- DataGridViewColumnEventArgs.cs
- WsdlInspector.cs