Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / AppPool.cs / 1 / AppPool.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System; using System.Collections.Generic; using System.Diagnostics; using System.Security.Principal; using System.ServiceModel; using System.ServiceModel.Diagnostics; class AppPool { string appPoolId; Listapps; bool enabled; SecurityIdentifier securityIdentifier; internal AppPool(string appPoolId, bool enabled, SecurityIdentifier securityIdentifier) { this.apps = new List (); this.appPoolId = appPoolId; this.enabled = enabled; this.securityIdentifier = securityIdentifier; } internal string AppPoolId { get { return appPoolId; } } internal bool Enabled { get { return enabled; } } internal void AddApp(App app) { lock(this.apps) { this.apps.Add(app); } } internal void RemoveApp(App app) { lock(this.apps) { this.apps.Remove(app); } } internal IEnumerable SnapshotApps() { lock(this.apps) { return new List (this.apps); } } internal void OnDeleted() { // We should have removed all apps. DiagnosticUtility.DebugAssert(apps.Count == 0, ""); this.enabled = false; } internal void SetEnabledState(bool enabled) { if (this.enabled != enabled) { this.enabled = enabled; foreach (App app in apps) { app.OnAppPoolStateChanged(); } } } internal bool IsEnabled { get { return this.enabled; } } internal void SetIdentity(SecurityIdentifier securityIdentifier) { this.securityIdentifier = securityIdentifier; } } } // 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
- MDIControlStrip.cs
- CalendarBlackoutDatesCollection.cs
- TypeContext.cs
- CheckBox.cs
- PointF.cs
- PropertyStore.cs
- MonitoringDescriptionAttribute.cs
- HttpApplicationFactory.cs
- ScriptHandlerFactory.cs
- AnnotationService.cs
- InstancePersistenceCommandException.cs
- XamlFilter.cs
- CodeAccessSecurityEngine.cs
- WindowsContainer.cs
- RegexRunnerFactory.cs
- ByteStreamMessageEncoderFactory.cs
- DodSequenceMerge.cs
- CheckBoxList.cs
- OdbcFactory.cs
- ListDesigner.cs
- MenuScrollingVisibilityConverter.cs
- BamlRecordHelper.cs
- DataControlExtensions.cs
- StrongNameMembershipCondition.cs
- HttpUnhandledOperationInvoker.cs
- CompilerParameters.cs
- Int32EqualityComparer.cs
- altserialization.cs
- TableLayoutPanel.cs
- ConcatQueryOperator.cs
- TextTreePropertyUndoUnit.cs
- MappingException.cs
- Condition.cs
- _ListenerAsyncResult.cs
- CharEnumerator.cs
- OperationSelectorBehavior.cs
- PenThreadPool.cs
- ChannelServices.cs
- ColorInterpolationModeValidation.cs
- XmlDataSourceNodeDescriptor.cs
- StringToken.cs
- Schema.cs
- RemotingConfiguration.cs
- LinqDataSourceDeleteEventArgs.cs
- UpDownEvent.cs
- KnownTypeAttribute.cs
- WindowsListViewGroupSubsetLink.cs
- SerializationException.cs
- TemplateGroupCollection.cs
- SafeBuffer.cs
- WinInetCache.cs
- CryptographicAttribute.cs
- newinstructionaction.cs
- BamlLocalizabilityResolver.cs
- ScriptComponentDescriptor.cs
- TCPListener.cs
- References.cs
- Transform.cs
- Button.cs
- ISSmlParser.cs
- DependencyProperty.cs
- ClientCultureInfo.cs
- ActivationServices.cs
- JoinTreeSlot.cs
- InvalidFilterCriteriaException.cs
- InputLangChangeEvent.cs
- Error.cs
- AnimationClock.cs
- WebControlsSection.cs
- GenericPrincipal.cs
- WinEventQueueItem.cs
- BindingGroup.cs
- RadialGradientBrush.cs
- FrameworkElementFactory.cs
- EasingFunctionBase.cs
- BamlLocalizer.cs
- querybuilder.cs
- TextLineBreak.cs
- OutputWindow.cs
- XmlSchemaElement.cs
- Math.cs
- SBCSCodePageEncoding.cs
- ConfigurationStrings.cs
- HtmlHead.cs
- HtmlHistory.cs
- WmlLabelAdapter.cs
- FormatConvertedBitmap.cs
- AdPostCacheSubstitution.cs
- DebugController.cs
- CqlLexer.cs
- VisualStyleInformation.cs
- PointAnimationBase.cs
- TransformProviderWrapper.cs
- TimersDescriptionAttribute.cs
- DetailsViewModeEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- ErrorFormatterPage.cs
- BamlStream.cs
- GridViewSortEventArgs.cs
- ImageSourceValueSerializer.cs