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
- InvariantComparer.cs
- HtmlInputImage.cs
- ScrollBar.cs
- ExportOptions.cs
- ContentPresenter.cs
- DataRowExtensions.cs
- PictureBox.cs
- QilParameter.cs
- GenericsInstances.cs
- LogicalTreeHelper.cs
- InvalidProgramException.cs
- Quaternion.cs
- CorrelationManager.cs
- ModelTreeManager.cs
- DataGridViewCellStyleEditor.cs
- TreeNode.cs
- ManagementOperationWatcher.cs
- ComplexLine.cs
- DetailsViewDeleteEventArgs.cs
- RuntimeTransactionHandle.cs
- PathSegment.cs
- DataTableReaderListener.cs
- WorkflowRuntime.cs
- MouseEventArgs.cs
- Helper.cs
- TextPenaltyModule.cs
- Expander.cs
- AnnotationResourceCollection.cs
- _ProxyChain.cs
- ArraySubsetEnumerator.cs
- RepeaterItemEventArgs.cs
- PlaceHolder.cs
- WebPartEventArgs.cs
- SQLRoleProvider.cs
- ByteAnimationBase.cs
- SHA256.cs
- Select.cs
- Quaternion.cs
- OpCodes.cs
- BitmapImage.cs
- PathGeometry.cs
- MenuItemCollectionEditor.cs
- Label.cs
- ImportOptions.cs
- CodeTypeReferenceExpression.cs
- KeyboardNavigation.cs
- IntSecurity.cs
- EntityDataSourceSelectedEventArgs.cs
- PopupControlService.cs
- IconHelper.cs
- CompositionDesigner.cs
- DataKey.cs
- PaintEvent.cs
- HtmlInputReset.cs
- StreamUpdate.cs
- ProfileProvider.cs
- FlowchartSizeFeature.cs
- LicenseProviderAttribute.cs
- EditingMode.cs
- RuntimeEnvironment.cs
- TypeUsageBuilder.cs
- CodeParameterDeclarationExpression.cs
- CompareValidator.cs
- SqlDataSourceCache.cs
- CodeCommentStatementCollection.cs
- HtmlElementErrorEventArgs.cs
- SqlUserDefinedAggregateAttribute.cs
- CodeAccessSecurityEngine.cs
- DelegateSerializationHolder.cs
- NumericUpDown.cs
- ObjectHelper.cs
- ExpandCollapseProviderWrapper.cs
- IndicCharClassifier.cs
- SQLInt16.cs
- securestring.cs
- TypeBuilder.cs
- DesignerView.xaml.cs
- ValueUnavailableException.cs
- graph.cs
- RawStylusSystemGestureInputReport.cs
- BooleanStorage.cs
- PriorityBindingExpression.cs
- ParameterModifier.cs
- OneOfScalarConst.cs
- Utils.cs
- TdsValueSetter.cs
- ExpressionBuilder.cs
- HtmlEmptyTagControlBuilder.cs
- SessionEndingEventArgs.cs
- unsafenativemethodsother.cs
- RuntimeHelpers.cs
- DataGridDetailsPresenterAutomationPeer.cs
- ProfileSettingsCollection.cs
- WebPartDisplayModeCollection.cs
- MembershipPasswordException.cs
- SqlBooleanMismatchVisitor.cs
- UIElementParaClient.cs
- XmlAtomErrorReader.cs
- CellTreeNode.cs
- ToolStripContainer.cs