Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Management / IisTraceWebEventProvider.cs / 2 / 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 //////////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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() { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuTracker.cs
- PointAnimationUsingKeyFrames.cs
- EmbossBitmapEffect.cs
- TreeNodeStyleCollectionEditor.cs
- StsCommunicationException.cs
- WebConfigurationManager.cs
- Utility.cs
- baseaxisquery.cs
- SqlGenericUtil.cs
- CompensateDesigner.cs
- Decimal.cs
- IPPacketInformation.cs
- ExtensionWindow.cs
- DrawListViewSubItemEventArgs.cs
- EventsTab.cs
- ObjectDataSourceStatusEventArgs.cs
- Assert.cs
- DataRowChangeEvent.cs
- SpeechDetectedEventArgs.cs
- ZipIOExtraFieldElement.cs
- ObjectDataSourceDesigner.cs
- FontFamily.cs
- ScrollViewer.cs
- Int32KeyFrameCollection.cs
- Buffer.cs
- SubMenuStyleCollectionEditor.cs
- ValueQuery.cs
- SupportingTokenBindingElement.cs
- PartitionedDataSource.cs
- RootBrowserWindowAutomationPeer.cs
- NestPullup.cs
- CompensableActivity.cs
- Missing.cs
- ModelFactory.cs
- Listbox.cs
- RemoteWebConfigurationHost.cs
- ToolStripLabel.cs
- BatchServiceHost.cs
- PersianCalendar.cs
- FormsAuthenticationModule.cs
- WindowsAuthenticationEventArgs.cs
- InternalTransaction.cs
- DataGridCellsPanel.cs
- TaiwanLunisolarCalendar.cs
- MarkupCompiler.cs
- PickDesigner.xaml.cs
- CompressedStack.cs
- MasterPageParser.cs
- XamlPoint3DCollectionSerializer.cs
- Transform3D.cs
- prefixendpointaddressmessagefilter.cs
- SmtpReplyReaderFactory.cs
- CodeLabeledStatement.cs
- InstanceDataCollectionCollection.cs
- XomlDesignerLoader.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TextEvent.cs
- AuthorizationContext.cs
- FigureParagraph.cs
- XmlTextWriter.cs
- SerializationObjectManager.cs
- EncodingConverter.cs
- GeneralTransform3D.cs
- ConnectionPointCookie.cs
- ProcessModuleCollection.cs
- PrintDialog.cs
- SuppressMessageAttribute.cs
- OutgoingWebResponseContext.cs
- FixUp.cs
- AstTree.cs
- SqlServices.cs
- ConstructorNeedsTagAttribute.cs
- DispatcherOperation.cs
- UpdateException.cs
- AuditLogLocation.cs
- RegexCompiler.cs
- SafeNativeMethodsMilCoreApi.cs
- DependencyProperty.cs
- LayoutEvent.cs
- _SecureChannel.cs
- WindowsClientElement.cs
- Journaling.cs
- QuaternionRotation3D.cs
- XmlBindingWorker.cs
- mediapermission.cs
- InternalBufferOverflowException.cs
- EventSchemaTraceListener.cs
- Utils.cs
- StatusBarPanelClickEvent.cs
- Rfc2898DeriveBytes.cs
- Regex.cs
- ListViewGroup.cs
- FileDataSourceCache.cs
- DateRangeEvent.cs
- StreamUpgradeAcceptor.cs
- XmlSchemaAnnotated.cs
- CurrencyWrapper.cs
- PersonalizationStateInfo.cs
- DiagnosticTrace.cs
- ErrorTableItemStyle.cs