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
- validationstate.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TransportConfigurationTypeElementCollection.cs
- ColumnClickEvent.cs
- Iis7Helper.cs
- XmlNodeChangedEventArgs.cs
- XmlDataSourceView.cs
- RoutedPropertyChangedEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- CompoundFileIOPermission.cs
- Transform3DGroup.cs
- DesignTimeParseData.cs
- TypeDependencyAttribute.cs
- DataControlLinkButton.cs
- X509ChainPolicy.cs
- DataGridCellItemAutomationPeer.cs
- ValuePattern.cs
- HttpRuntime.cs
- UnsafeNativeMethods.cs
- XmlQualifiedName.cs
- DocComment.cs
- ConfigurationManagerHelper.cs
- StorageSetMapping.cs
- CodeArrayCreateExpression.cs
- SqlMethodTransformer.cs
- IndexedEnumerable.cs
- AuthenticationService.cs
- NavigationProperty.cs
- DeferredTextReference.cs
- FullTextLine.cs
- HandlerBase.cs
- ObjectStorage.cs
- SqlDataSourceCache.cs
- _DomainName.cs
- GiveFeedbackEvent.cs
- EmptyStringExpandableObjectConverter.cs
- ResourceReferenceExpression.cs
- ContainerUtilities.cs
- EventProviderWriter.cs
- AuthenticationService.cs
- LinqDataSourceStatusEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- SQLChars.cs
- ReachDocumentPageSerializerAsync.cs
- UrlPropertyAttribute.cs
- EntityParameter.cs
- ByteRangeDownloader.cs
- CodeIndexerExpression.cs
- BinaryConverter.cs
- TextViewSelectionProcessor.cs
- DBCommand.cs
- OleServicesContext.cs
- SiteOfOriginContainer.cs
- ViewStateException.cs
- XmlDataSource.cs
- Message.cs
- XmlReader.cs
- CodeBinaryOperatorExpression.cs
- BaseUriHelper.cs
- KnownBoxes.cs
- KeyTimeConverter.cs
- InnerItemCollectionView.cs
- EventMappingSettings.cs
- TransformCryptoHandle.cs
- Pen.cs
- GlobalizationSection.cs
- OleCmdHelper.cs
- ApplicationManager.cs
- StandardBindingCollectionElement.cs
- BitmapSizeOptions.cs
- XmlIgnoreAttribute.cs
- connectionpool.cs
- EdgeModeValidation.cs
- HwndSource.cs
- HeaderCollection.cs
- SelectionHighlightInfo.cs
- WebServiceParameterData.cs
- sqlmetadatafactory.cs
- MimeMapping.cs
- WbemException.cs
- SystemKeyConverter.cs
- CodeEntryPointMethod.cs
- ProtocolViolationException.cs
- versioninfo.cs
- RSAPKCS1SignatureFormatter.cs
- SimpleFieldTemplateUserControl.cs
- BaseDataList.cs
- AlphabeticalEnumConverter.cs
- DrawTreeNodeEventArgs.cs
- ControlCommandSet.cs
- ToolStripItemDesigner.cs
- FixedSOMGroup.cs
- ExceptionCollection.cs
- DesignConnection.cs
- QilXmlWriter.cs
- DescriptionCreator.cs
- PropertyValueUIItem.cs
- DbDataAdapter.cs
- Converter.cs
- HttpServerUtilityBase.cs