Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / xws_reg / System / ServiceModel / Install / ServiceModelInstallComponent.cs / 1 / ServiceModelInstallComponent.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Install { using System; internal abstract class ServiceModelInstallComponent { internal abstract string DisplayName { get; } protected abstract string InstallActionMessage { get; } internal abstract string[] InstalledVersions { get; } internal abstract bool IsInstalled { get; } protected abstract string ReinstallActionMessage { get; } protected abstract string UninstallActionMessage { get; } internal string GetActionString(InstallAction action) { string retVal = string.Empty; switch (action) { case (InstallAction.Install): retVal = this.InstallActionMessage; break; case (InstallAction.Uninstall): retVal = this.UninstallActionMessage; break; case (InstallAction.Reinstall): retVal = this.ReinstallActionMessage; break; } return retVal; } internal abstract void Install(OutputLevel outputLevel); internal abstract void Uninstall(OutputLevel outputLevel); internal abstract InstallationState VerifyInstall(); internal virtual void Reinstall(OutputLevel outputLevel) { if (OutputLevel.Quiet != outputLevel) { EventLogger.LogToConsole(SR.GetString(SR.UninstallMessage, this.DisplayName)); } EventLogger.WriteMsiStyleLogEntry(SR.GetString(SR.UninstallMessage, this.DisplayName)); this.Uninstall(outputLevel); if (OutputLevel.Quiet != outputLevel) { EventLogger.LogToConsole(SR.GetString(SR.InstallMessage, this.DisplayName)); } EventLogger.WriteMsiStyleLogEntry(SR.GetString(SR.InstallMessage, this.DisplayName)); this.Install(outputLevel); } } } // 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
- ResourceDisplayNameAttribute.cs
- LogArchiveSnapshot.cs
- PrivilegedConfigurationManager.cs
- RadioButton.cs
- ColorEditor.cs
- Missing.cs
- MsmqAppDomainProtocolHandler.cs
- MimeMapping.cs
- CultureMapper.cs
- AmbientLight.cs
- Vector3DKeyFrameCollection.cs
- RoleServiceManager.cs
- AsyncStreamReader.cs
- IChannel.cs
- StringStorage.cs
- EntityProxyFactory.cs
- IconEditor.cs
- XmlDictionaryWriter.cs
- ToolStripSplitButton.cs
- RequestCachePolicy.cs
- PageRanges.cs
- ViewSimplifier.cs
- CommandBinding.cs
- ProfileInfo.cs
- AnnotationMap.cs
- AutomationEventArgs.cs
- ElementMarkupObject.cs
- Stroke.cs
- HashCodeCombiner.cs
- SqlCachedBuffer.cs
- CommandTreeTypeHelper.cs
- FormViewUpdateEventArgs.cs
- XhtmlBasicLinkAdapter.cs
- XamlGridLengthSerializer.cs
- SimpleRecyclingCache.cs
- LineMetrics.cs
- ProfileGroupSettingsCollection.cs
- SchemaConstraints.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataBindingHandlerAttribute.cs
- ListItemsCollectionEditor.cs
- TextEditorSelection.cs
- InboundActivityHelper.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ClientTarget.cs
- PrimitiveDataContract.cs
- AutoSizeComboBox.cs
- CounterSetInstance.cs
- ISCIIEncoding.cs
- TailCallAnalyzer.cs
- WaitForChangedResult.cs
- SystemResourceKey.cs
- CTreeGenerator.cs
- HorizontalAlignConverter.cs
- HandlerBase.cs
- WindowsAuthenticationEventArgs.cs
- Rotation3D.cs
- EditorZoneBase.cs
- PathGeometry.cs
- AnnotationMap.cs
- ArgumentException.cs
- XmlCodeExporter.cs
- XmlComplianceUtil.cs
- Metadata.cs
- Run.cs
- FontInfo.cs
- TextTrailingCharacterEllipsis.cs
- DesignerMetadata.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ConnectionString.cs
- DataSourceView.cs
- InputProviderSite.cs
- DefaultPrintController.cs
- EntityDataSourceDataSelection.cs
- DataTableExtensions.cs
- ObjectDataSourceDisposingEventArgs.cs
- DeclaredTypeElementCollection.cs
- MatrixUtil.cs
- Boolean.cs
- CopyOfAction.cs
- TagPrefixInfo.cs
- EventLogEntry.cs
- KeyboardDevice.cs
- CompilerWrapper.cs
- StringPropertyBuilder.cs
- HybridDictionary.cs
- HttpConfigurationContext.cs
- CommandManager.cs
- PingOptions.cs
- PropertyInformation.cs
- ImageAnimator.cs
- FixedSOMGroup.cs
- PropertyDescriptor.cs
- MemberHolder.cs
- DiagnosticsConfiguration.cs
- GlyphElement.cs
- CodeNamespace.cs
- AnimatedTypeHelpers.cs
- _NegoStream.cs
- ClonableStack.cs