Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- remotingproxy.cs
- ZipIOExtraFieldZip64Element.cs
- ApplicationHost.cs
- ControlDesigner.cs
- BitmapCacheBrush.cs
- ApplicationHost.cs
- VisualBasicReference.cs
- StaticTextPointer.cs
- StateRuntime.cs
- StructuralObject.cs
- RadioButtonPopupAdapter.cs
- LinearGradientBrush.cs
- StreamWriter.cs
- GlobalizationSection.cs
- ErrorFormatter.cs
- SQLByteStorage.cs
- Emitter.cs
- LocatorPartList.cs
- ContextActivityUtils.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- oledbmetadatacollectionnames.cs
- ProjectionPruner.cs
- HtmlHistory.cs
- indexingfiltermarshaler.cs
- DescendantBaseQuery.cs
- ServicePointManager.cs
- PKCS1MaskGenerationMethod.cs
- HttpCookie.cs
- DoubleCollectionValueSerializer.cs
- PageBreakRecord.cs
- PanelDesigner.cs
- SelfIssuedTokenFactoryCredential.cs
- bindurihelper.cs
- TemplateColumn.cs
- PageBuildProvider.cs
- HashAlgorithm.cs
- LinkConverter.cs
- RawMouseInputReport.cs
- SignedXml.cs
- ProxyGenerator.cs
- DependencyObject.cs
- AlgoModule.cs
- CmsInterop.cs
- PropertyGeneratedEventArgs.cs
- HwndTarget.cs
- SoapSchemaImporter.cs
- DataGridColumnReorderingEventArgs.cs
- Popup.cs
- BindingExpression.cs
- Repeater.cs
- PeerNearMe.cs
- ModelItemDictionaryImpl.cs
- RecognizeCompletedEventArgs.cs
- ProjectionPathBuilder.cs
- DebugController.cs
- ParameterCollection.cs
- ReflectionTypeLoadException.cs
- EntityCommandCompilationException.cs
- SchemaNamespaceManager.cs
- WindowsListBox.cs
- Inflater.cs
- DialogWindow.cs
- QilTernary.cs
- PresentationTraceSources.cs
- Fx.cs
- WindowsFont.cs
- AssociationType.cs
- TextLineResult.cs
- ObjectMemberMapping.cs
- ToolStripRenderer.cs
- OutKeywords.cs
- ObjectDataSourceFilteringEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- SmtpCommands.cs
- InvalidFilterCriteriaException.cs
- SymbolTable.cs
- WebPartAuthorizationEventArgs.cs
- XPathNavigatorReader.cs
- DataServiceQueryContinuation.cs
- DbParameterHelper.cs
- SymDocumentType.cs
- FamilyTypefaceCollection.cs
- CodeExporter.cs
- BaseAddressPrefixFilterElement.cs
- EntityStoreSchemaFilterEntry.cs
- CustomTypeDescriptor.cs
- BoolExpressionVisitors.cs
- Application.cs
- DataServiceKeyAttribute.cs
- PackUriHelper.cs
- ApplicationHost.cs
- ButtonBaseAdapter.cs
- NamedElement.cs
- XPathChildIterator.cs
- DesignerWidgets.cs
- StatusBarPanelClickEvent.cs
- HijriCalendar.cs
- NameNode.cs
- ObjectIDGenerator.cs
- TextDecorationCollection.cs