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
- MaterialCollection.cs
- ScriptReference.cs
- TextEncodedRawTextWriter.cs
- SqlCommand.cs
- DefaultObjectMappingItemCollection.cs
- ExpandoClass.cs
- DynamicResourceExtensionConverter.cs
- COM2IPerPropertyBrowsingHandler.cs
- Transform3DGroup.cs
- ResXResourceReader.cs
- EntityCommandCompilationException.cs
- SchemaTypeEmitter.cs
- GeometryHitTestResult.cs
- HttpResponseHeader.cs
- XmlKeywords.cs
- COAUTHINFO.cs
- HMACMD5.cs
- EnumMember.cs
- WebRequest.cs
- CompositeDuplexBindingElementImporter.cs
- DesignSurfaceCollection.cs
- ExtentCqlBlock.cs
- webclient.cs
- RepeatButtonAutomationPeer.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- GPPOINTF.cs
- HandlerElement.cs
- XmlWrappingWriter.cs
- CodeTryCatchFinallyStatement.cs
- UndoManager.cs
- AnimationLayer.cs
- MethodCallTranslator.cs
- CompilerLocalReference.cs
- ToolZone.cs
- IResourceProvider.cs
- precedingquery.cs
- BCryptSafeHandles.cs
- ConsoleKeyInfo.cs
- ImageFormat.cs
- LinkedList.cs
- SafeSystemMetrics.cs
- DocumentAutomationPeer.cs
- ReliableOutputConnection.cs
- StaticSiteMapProvider.cs
- RectangleGeometry.cs
- hebrewshape.cs
- CompiledIdentityConstraint.cs
- diagnosticsswitches.cs
- AlternateView.cs
- PartialCachingAttribute.cs
- SqlInternalConnectionTds.cs
- XmlSchemaSimpleContentExtension.cs
- WebServiceFault.cs
- MarshalByRefObject.cs
- BezierSegment.cs
- DbParameterHelper.cs
- MouseGestureConverter.cs
- METAHEADER.cs
- UserControl.cs
- InvalidProgramException.cs
- XmlExceptionHelper.cs
- ConsumerConnectionPoint.cs
- SystemIPInterfaceStatistics.cs
- IisTraceWebEventProvider.cs
- GeneralTransform3DTo2DTo3D.cs
- FormViewInsertedEventArgs.cs
- ActivityStatusChangeEventArgs.cs
- DesignObjectWrapper.cs
- Condition.cs
- Point3DKeyFrameCollection.cs
- PixelShader.cs
- DataGridViewRowsRemovedEventArgs.cs
- HMACSHA512.cs
- TdsParameterSetter.cs
- GatewayDefinition.cs
- TraceContext.cs
- IndexExpression.cs
- Underline.cs
- ServiceHttpHandlerFactory.cs
- TreeIterator.cs
- CaseDesigner.xaml.cs
- RecordsAffectedEventArgs.cs
- PeerSecurityManager.cs
- AtomContentProperty.cs
- WebMessageBodyStyleHelper.cs
- ProxyElement.cs
- StateMachineHelpers.cs
- TraceSwitch.cs
- InstanceDataCollection.cs
- LayoutUtils.cs
- ConfigurationLocation.cs
- XmlWriterSettings.cs
- WebPartManagerDesigner.cs
- OrderedEnumerableRowCollection.cs
- GeometryDrawing.cs
- IISMapPath.cs
- OutputCacheProfile.cs
- RSAPKCS1SignatureFormatter.cs
- CollectionChange.cs
- StylusOverProperty.cs