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;
List apps;
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
- AuthenticationManager.cs
- XmlReader.cs
- CollectionConverter.cs
- PartialTrustVisibleAssemblyCollection.cs
- COM2EnumConverter.cs
- DelegateBodyWriter.cs
- ArraySubsetEnumerator.cs
- Membership.cs
- Rijndael.cs
- CodeCompileUnit.cs
- TreeViewDesigner.cs
- UInt32Storage.cs
- SmiMetaDataProperty.cs
- WorkflowOwnershipException.cs
- UITypeEditors.cs
- dataobject.cs
- ResourcePermissionBase.cs
- AttachedPropertyMethodSelector.cs
- UiaCoreProviderApi.cs
- AsymmetricKeyExchangeDeformatter.cs
- SelectionProcessor.cs
- ViewEvent.cs
- UnionCqlBlock.cs
- BufferBuilder.cs
- Message.cs
- CompositeDuplexBindingElementImporter.cs
- KnownTypeAttribute.cs
- FileChangesMonitor.cs
- LayoutManager.cs
- sqlmetadatafactory.cs
- HandlerBase.cs
- DPCustomTypeDescriptor.cs
- Sequence.cs
- BigInt.cs
- ListBindableAttribute.cs
- DefaultIfEmptyQueryOperator.cs
- SiteOfOriginContainer.cs
- SqlMultiplexer.cs
- MexBindingBindingCollectionElement.cs
- ApplicationInfo.cs
- WindowsFormsLinkLabel.cs
- TextCharacters.cs
- SemanticKeyElement.cs
- ConnectivityStatus.cs
- OleAutBinder.cs
- AspNetSynchronizationContext.cs
- SqlBuilder.cs
- ConfigurationManagerHelper.cs
- DeclarativeCatalogPart.cs
- FillRuleValidation.cs
- TextSelectionHelper.cs
- PrimitiveSchema.cs
- ZipArchive.cs
- BookmarkUndoUnit.cs
- DirectoryObjectSecurity.cs
- TextParentUndoUnit.cs
- InstanceKeyCompleteException.cs
- LocalizableResourceBuilder.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Odbc32.cs
- ReferenceSchema.cs
- XmlSchemaImporter.cs
- DynamicQueryableWrapper.cs
- BitmapSource.cs
- ChildrenQuery.cs
- AssemblyBuilder.cs
- MediaTimeline.cs
- RotateTransform3D.cs
- Atom10FormatterFactory.cs
- DataGridBoolColumn.cs
- DllNotFoundException.cs
- Debug.cs
- EngineSite.cs
- SharedStatics.cs
- PackageFilter.cs
- ExcCanonicalXml.cs
- StringArrayEditor.cs
- InfiniteTimeSpanConverter.cs
- RepeatBehaviorConverter.cs
- ContextStaticAttribute.cs
- SpeechRecognitionEngine.cs
- ApplicationContext.cs
- PathSegmentCollection.cs
- fixedPageContentExtractor.cs
- UInt64Converter.cs
- EmptyStringExpandableObjectConverter.cs
- OneOfElement.cs
- SafeNativeMethods.cs
- DataObjectPastingEventArgs.cs
- LinkedList.cs
- JsonQNameDataContract.cs
- TableAdapterManagerHelper.cs
- DataIdProcessor.cs
- TableLayoutCellPaintEventArgs.cs
- EncodedStreamFactory.cs
- AddInDeploymentState.cs
- StringToken.cs
- RouteCollection.cs
- FactoryGenerator.cs
- AnnotationHighlightLayer.cs