Code:
/ FX-1434 / FX-1434 / 1.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
- XPathItem.cs
- StreamReader.cs
- NativeMethods.cs
- DateTimeOffsetConverter.cs
- DataControlPagerLinkButton.cs
- ExtendedPropertiesHandler.cs
- TextRangeProviderWrapper.cs
- DrawingAttributesDefaultValueFactory.cs
- SystemColors.cs
- DynamicDataExtensions.cs
- FamilyCollection.cs
- ImportDesigner.xaml.cs
- ComboBoxRenderer.cs
- UrlUtility.cs
- AlternateView.cs
- TemplateBamlRecordReader.cs
- SmiEventSink_DeferedProcessing.cs
- StartUpEventArgs.cs
- WebPartMovingEventArgs.cs
- SafeHandle.cs
- EndpointDesigner.cs
- OleDbTransaction.cs
- COM2PictureConverter.cs
- EnumerableWrapperWeakToStrong.cs
- StringReader.cs
- TypeElementCollection.cs
- Attribute.cs
- MimeMapping.cs
- InkCanvas.cs
- DefaultAutoFieldGenerator.cs
- RemoveStoryboard.cs
- ListBase.cs
- QilUnary.cs
- SqlDataReaderSmi.cs
- SvcMapFileSerializer.cs
- Point.cs
- TextRunTypographyProperties.cs
- CodeDelegateInvokeExpression.cs
- TypeForwardedToAttribute.cs
- ElementHostPropertyMap.cs
- _FtpControlStream.cs
- XmlDocument.cs
- WebPartAddingEventArgs.cs
- HScrollBar.cs
- WmfPlaceableFileHeader.cs
- TabletCollection.cs
- DataGridViewHitTestInfo.cs
- Bold.cs
- SponsorHelper.cs
- SortKey.cs
- DataGridClipboardCellContent.cs
- BoundPropertyEntry.cs
- CompilationLock.cs
- ContentPosition.cs
- LogLogRecord.cs
- ToolStripPanel.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlEntity.cs
- XmlNamespaceDeclarationsAttribute.cs
- ProgressChangedEventArgs.cs
- UnitySerializationHolder.cs
- CodeExporter.cs
- _DisconnectOverlappedAsyncResult.cs
- jithelpers.cs
- Parser.cs
- HtmlInputPassword.cs
- DBNull.cs
- XmlObjectSerializerWriteContext.cs
- _CookieModule.cs
- UpdateDelegates.Generated.cs
- TerminateSequenceResponse.cs
- FillRuleValidation.cs
- ADMembershipUser.cs
- documentsequencetextview.cs
- ResourcePermissionBase.cs
- Model3DGroup.cs
- MetafileHeader.cs
- CatalogPartCollection.cs
- Italic.cs
- DataGridColumnHeadersPresenter.cs
- PartialTrustVisibleAssemblyCollection.cs
- dataobject.cs
- XmlHelper.cs
- RemoteWebConfigurationHost.cs
- TypeConverter.cs
- PasswordRecovery.cs
- DataSourceCacheDurationConverter.cs
- ApplicationManager.cs
- ReadOnlyPropertyMetadata.cs
- ButtonPopupAdapter.cs
- ListenerPerfCounters.cs
- XmlBinaryWriterSession.cs
- _DigestClient.cs
- RuntimeConfig.cs
- HttpCacheVary.cs
- GlobalizationSection.cs
- HttpRequest.cs
- QueryOptionExpression.cs
- DocumentSequenceHighlightLayer.cs
- AvtEvent.cs