Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Management / WebEventTraceProvider.cs / 1 / 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 //////////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 //////////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZoneMembershipCondition.cs
- Cursors.cs
- EncryptedKey.cs
- FileClassifier.cs
- XamlNamespaceHelper.cs
- BodyGlyph.cs
- DataControlImageButton.cs
- DoubleStorage.cs
- KnownTypeAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- BadImageFormatException.cs
- WSDualHttpSecurityElement.cs
- WindowsRegion.cs
- XmlQueryOutput.cs
- SiteMapNodeItemEventArgs.cs
- StyleConverter.cs
- ObjectStorage.cs
- Base64Stream.cs
- QilList.cs
- BaseCodeDomTreeGenerator.cs
- SubMenuStyle.cs
- InputReport.cs
- DbProviderManifest.cs
- WebControl.cs
- OdbcPermission.cs
- DataGridViewCellStateChangedEventArgs.cs
- ISAPIRuntime.cs
- VirtualDirectoryMapping.cs
- MergeFilterQuery.cs
- ClientOperationFormatterProvider.cs
- BinaryReader.cs
- Control.cs
- SqlIdentifier.cs
- ConnectionsZone.cs
- WindowsTab.cs
- PackageRelationshipSelector.cs
- AnnotationHighlightLayer.cs
- MultiTargetingUtil.cs
- XamlToRtfWriter.cs
- NamespaceQuery.cs
- GlyphsSerializer.cs
- StringCollection.cs
- DependencyPropertyValueSerializer.cs
- SpeechUI.cs
- DataTableNewRowEvent.cs
- Context.cs
- GridItemPattern.cs
- DockAndAnchorLayout.cs
- ZipIOFileItemStream.cs
- SimpleType.cs
- PowerEase.cs
- SafeLocalMemHandle.cs
- ComponentResourceManager.cs
- BaseResourcesBuildProvider.cs
- Directory.cs
- ClusterRegistryConfigurationProvider.cs
- WebPartEditorApplyVerb.cs
- VBCodeProvider.cs
- ILGen.cs
- XpsFixedPageReaderWriter.cs
- WsatServiceCertificate.cs
- CapacityStreamGeometryContext.cs
- DataServiceHost.cs
- ControlAdapter.cs
- AxDesigner.cs
- CompareInfo.cs
- InternalBase.cs
- ErrorLog.cs
- NumericExpr.cs
- SQLBoolean.cs
- XamlReader.cs
- Debug.cs
- ItemsControlAutomationPeer.cs
- ConnectionConsumerAttribute.cs
- SwitchLevelAttribute.cs
- SvcFileManager.cs
- ImportException.cs
- Validator.cs
- XmlSchemaSet.cs
- NativeCompoundFileAPIs.cs
- SmtpReplyReaderFactory.cs
- ComPlusContractBehavior.cs
- ResourcePool.cs
- ScrollItemProviderWrapper.cs
- SoapAttributes.cs
- WeakEventTable.cs
- PlatformNotSupportedException.cs
- BaseTreeIterator.cs
- EpmContentDeSerializerBase.cs
- URLEditor.cs
- ProxyGenerator.cs
- TablePattern.cs
- CoreChannel.cs
- SettingsProviderCollection.cs
- CustomErrorsSection.cs
- SaveFileDialog.cs
- CallbackValidatorAttribute.cs
- LinqDataView.cs
- BindingMAnagerBase.cs
- SecurityMode.cs