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
- WorkingDirectoryEditor.cs
- LinqDataSourceView.cs
- XmlBoundElement.cs
- StylusTip.cs
- RepeaterItemCollection.cs
- FeatureSupport.cs
- SqlUserDefinedAggregateAttribute.cs
- ListViewItemEventArgs.cs
- SqlExpander.cs
- TrustLevel.cs
- VisualSerializer.cs
- XmlNodeChangedEventArgs.cs
- ListCommandEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- METAHEADER.cs
- WebServiceErrorEvent.cs
- TextParagraphCache.cs
- SR.cs
- TypeUtil.cs
- MessageBox.cs
- ParallelTimeline.cs
- SiteOfOriginPart.cs
- FrameworkContentElement.cs
- ListBoxItemAutomationPeer.cs
- DependencyStoreSurrogate.cs
- Point3DCollectionValueSerializer.cs
- TypeAccessException.cs
- HashRepartitionEnumerator.cs
- ContentControl.cs
- RepeaterItem.cs
- MediaTimeline.cs
- OracleConnectionString.cs
- HtmlInputControl.cs
- GridViewRowEventArgs.cs
- TraceEventCache.cs
- ClientScriptManagerWrapper.cs
- Timer.cs
- PointAnimationUsingPath.cs
- ContentFileHelper.cs
- BooleanExpr.cs
- RowCache.cs
- XPathDocumentNavigator.cs
- ContextBase.cs
- exports.cs
- OleDbCommand.cs
- ComponentEditorForm.cs
- MemberInitExpression.cs
- ContourSegment.cs
- DataTrigger.cs
- CodeTypeMemberCollection.cs
- Timer.cs
- XmlReader.cs
- ClrPerspective.cs
- DataGridViewSelectedRowCollection.cs
- EventEntry.cs
- SqlRetyper.cs
- DefaultParameterValueAttribute.cs
- ServiceMemoryGates.cs
- LocalizationComments.cs
- DynamicValidatorEventArgs.cs
- Pts.cs
- SqlLiftIndependentRowExpressions.cs
- UrlAuthorizationModule.cs
- FileReader.cs
- ContentOperations.cs
- DiffuseMaterial.cs
- RandomNumberGenerator.cs
- MailDefinition.cs
- HttpModuleAction.cs
- ToolStripDropDownButton.cs
- HttpRequestMessageProperty.cs
- FixedDocumentPaginator.cs
- DataGridViewRow.cs
- CodeTypeDeclarationCollection.cs
- PageRanges.cs
- ModelToObjectValueConverter.cs
- BaseValidatorDesigner.cs
- StringSource.cs
- DynamicRendererThreadManager.cs
- objectquery_tresulttype.cs
- CodeExpressionCollection.cs
- PatternMatcher.cs
- ProvidePropertyAttribute.cs
- ResizeBehavior.cs
- GridPatternIdentifiers.cs
- SoapSchemaImporter.cs
- AssociativeAggregationOperator.cs
- KeyNotFoundException.cs
- OracleTimeSpan.cs
- FormsAuthenticationTicket.cs
- ToolStripKeyboardHandlingService.cs
- StylusDownEventArgs.cs
- EntityKey.cs
- handlecollector.cs
- SerializerWriterEventHandlers.cs
- DocumentApplicationJournalEntry.cs
- CoreSwitches.cs
- HideDisabledControlAdapter.cs
- ExceptionUtility.cs
- CustomMenuItemCollection.cs