Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Management / IisTraceWebEventProvider.cs / 1305376 / IisTraceWebEventProvider.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.Web.Hosting; using System.Security.Permissions; //////////// // Events //////////// public sealed class IisTraceWebEventProvider : WebEventProvider { public IisTraceWebEventProvider() { // only supported on IIS version 7 and later HttpContext context = HttpContext.Current; if (context != null) { if (!HttpRuntime.UseIntegratedPipeline && !(context.WorkerRequest is ISAPIWorkerRequestInProcForIIS7)) { throw new PlatformNotSupportedException(SR.GetString(SR.Requires_Iis_7)); } } } public override void Initialize(string name, NameValueCollection config) { Debug.Trace("IisTraceWebEventProvider", "Initializing: name=" + name); base.Initialize(name, config); ProviderUtil.CheckUnrecognizedAttributes(config, name); } public override void ProcessEvent(WebBaseEvent eventRaised) { HttpContext context = HttpContext.Current; if (context != null) { context.WorkerRequest.RaiseTraceEvent(eventRaised); } } 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
- FloaterBaseParagraph.cs
- SchemaElementDecl.cs
- IntegerValidatorAttribute.cs
- IpcClientManager.cs
- ConfigErrorGlyph.cs
- DrawingAttributes.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- FacetDescriptionElement.cs
- TextElementCollectionHelper.cs
- SecureUICommand.cs
- SeekableReadStream.cs
- UnsafeNativeMethods.cs
- WebPartZoneBase.cs
- StringExpressionSet.cs
- TypeUtil.cs
- SqlTriggerAttribute.cs
- Ray3DHitTestResult.cs
- Internal.cs
- AnonymousIdentificationSection.cs
- ProvidersHelper.cs
- SoapHttpTransportImporter.cs
- WebBrowserNavigatingEventHandler.cs
- InternalsVisibleToAttribute.cs
- ComplexTypeEmitter.cs
- RecognizerBase.cs
- ProvidersHelper.cs
- _CookieModule.cs
- FrameAutomationPeer.cs
- PropertyStore.cs
- COSERVERINFO.cs
- DataGridViewRowEventArgs.cs
- Transform3DGroup.cs
- UnhandledExceptionEventArgs.cs
- Missing.cs
- Win32Exception.cs
- SpotLight.cs
- CacheChildrenQuery.cs
- System.Data_BID.cs
- ConstNode.cs
- QilReference.cs
- CodeAttributeArgumentCollection.cs
- EventLogPermissionEntry.cs
- Update.cs
- TemplateParser.cs
- PrinterSettings.cs
- Timer.cs
- TraceContextRecord.cs
- GrammarBuilder.cs
- ListViewUpdateEventArgs.cs
- Stream.cs
- TextFormatter.cs
- XmlCodeExporter.cs
- TextEditor.cs
- XmlPreloadedResolver.cs
- MailAddressCollection.cs
- RIPEMD160Managed.cs
- Accessors.cs
- BidPrivateBase.cs
- UnknownWrapper.cs
- SafeNativeMethods.cs
- AspCompat.cs
- DesignTimeTemplateParser.cs
- CapabilitiesRule.cs
- ConsumerConnectionPointCollection.cs
- FileRecordSequenceHelper.cs
- SafeBitVector32.cs
- ClonableStack.cs
- ControlBuilderAttribute.cs
- RuntimeArgumentHandle.cs
- IntegerValidatorAttribute.cs
- ComponentEvent.cs
- LinkLabel.cs
- InfoCardBinaryReader.cs
- FileSecurity.cs
- BulletDecorator.cs
- KeyValueConfigurationElement.cs
- MessageDroppedTraceRecord.cs
- SspiNegotiationTokenAuthenticatorState.cs
- EventLogInformation.cs
- TypeConvertions.cs
- MouseActionValueSerializer.cs
- SystemIPGlobalProperties.cs
- ArraySubsetEnumerator.cs
- AsmxEndpointPickerExtension.cs
- SQLDoubleStorage.cs
- CodeConstructor.cs
- CannotUnloadAppDomainException.cs
- CmsUtils.cs
- ExpressionNode.cs
- DuplicateContext.cs
- BackgroundWorker.cs
- RecipientInfo.cs
- WasHostedComPlusFactory.cs
- SequentialUshortCollection.cs
- AuthenticationServiceManager.cs
- StoreItemCollection.Loader.cs
- SafeLocalMemHandle.cs
- DurableOperationContext.cs
- DataGridViewBand.cs
- SqlClientMetaDataCollectionNames.cs