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
- SamlSecurityTokenAuthenticator.cs
- OleDbTransaction.cs
- TextViewSelectionProcessor.cs
- CheckPair.cs
- MimeWriter.cs
- GeneralTransform3DCollection.cs
- OdbcErrorCollection.cs
- CustomAttributeFormatException.cs
- AutomationPropertyInfo.cs
- _ShellExpression.cs
- PointAnimationClockResource.cs
- NameTable.cs
- StylusPointPropertyId.cs
- TreeIterator.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ParameterReplacerVisitor.cs
- Stroke2.cs
- SafeProcessHandle.cs
- ListBindableAttribute.cs
- Util.cs
- SmtpMail.cs
- ColorConvertedBitmap.cs
- CapacityStreamGeometryContext.cs
- SignatureDescription.cs
- DataTableTypeConverter.cs
- VoiceSynthesis.cs
- Point3DAnimationBase.cs
- TableParagraph.cs
- ViewStateException.cs
- BitStack.cs
- AppDomainManager.cs
- ThreadExceptionDialog.cs
- XmlSchemaSet.cs
- PerfCounterSection.cs
- Win32Exception.cs
- BindToObject.cs
- DataGridViewRow.cs
- AssemblyAttributes.cs
- _emptywebproxy.cs
- TabletDevice.cs
- AppSettingsSection.cs
- TextTreeInsertUndoUnit.cs
- RsaSecurityToken.cs
- CodeDelegateInvokeExpression.cs
- OleDbInfoMessageEvent.cs
- CrossContextChannel.cs
- SocketManager.cs
- SchemaElementDecl.cs
- MouseCaptureWithinProperty.cs
- CriticalFinalizerObject.cs
- DPCustomTypeDescriptor.cs
- BufferedWebEventProvider.cs
- XMLUtil.cs
- TextRangeBase.cs
- MSAAWinEventWrap.cs
- HttpApplication.cs
- XamlVector3DCollectionSerializer.cs
- ListBox.cs
- Point3DAnimation.cs
- IPAddress.cs
- HostingEnvironmentSection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- brushes.cs
- JsonUriDataContract.cs
- StorageEntityTypeMapping.cs
- TreeViewHitTestInfo.cs
- CompileXomlTask.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SoapFault.cs
- EmptyStringExpandableObjectConverter.cs
- DataSourceView.cs
- EventListener.cs
- TemplatingOptionsDialog.cs
- PowerStatus.cs
- ListParagraph.cs
- ObjectStateFormatter.cs
- QilXmlReader.cs
- Attributes.cs
- RegexReplacement.cs
- InternalMappingException.cs
- PenLineJoinValidation.cs
- XamlClipboardData.cs
- BoundColumn.cs
- CodeCatchClause.cs
- ActivityExecutionWorkItem.cs
- VectorAnimation.cs
- ComplusTypeValidator.cs
- SafeNativeMemoryHandle.cs
- ConditionalAttribute.cs
- HttpVersion.cs
- xml.cs
- HtmlContainerControl.cs
- PropertyItem.cs
- CommandExpr.cs
- cookie.cs
- SecurityPermission.cs
- XPathPatternBuilder.cs
- ValidatedControlConverter.cs
- StrongName.cs
- AttachedPropertyBrowsableAttribute.cs