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
- BufferedMessageWriter.cs
- ContactManager.cs
- SiteMapProvider.cs
- ParameterBuilder.cs
- UrlPath.cs
- DecoderNLS.cs
- DesignerEventService.cs
- Int32CAMarshaler.cs
- DataObjectAttribute.cs
- _TLSstream.cs
- Crypto.cs
- WebPartConnectionsConfigureVerb.cs
- StandardCommands.cs
- ParserHooks.cs
- UIPermission.cs
- InvalidPrinterException.cs
- CroppedBitmap.cs
- DbProviderManifest.cs
- DefaultAsyncDataDispatcher.cs
- OleServicesContext.cs
- RequestCachePolicyConverter.cs
- TableLayoutPanelBehavior.cs
- CodeArgumentReferenceExpression.cs
- UnsafeNativeMethodsPenimc.cs
- ObjectIDGenerator.cs
- TypeSystem.cs
- SpellerInterop.cs
- RepeaterItemEventArgs.cs
- SmiEventSink_Default.cs
- DataGridViewTextBoxCell.cs
- Win32Native.cs
- SoapSchemaExporter.cs
- ErrorEventArgs.cs
- CLSCompliantAttribute.cs
- PersistChildrenAttribute.cs
- DataGridViewRowStateChangedEventArgs.cs
- TdsParser.cs
- AlternateView.cs
- SchemaImporterExtensionElement.cs
- ParameterInfo.cs
- HttpProfileBase.cs
- WizardPanel.cs
- TailCallAnalyzer.cs
- InvalidStoreProtectionKeyException.cs
- XmlSerializableServices.cs
- SecureStringHasher.cs
- SectionUpdates.cs
- BindingUtils.cs
- ListenerElementsCollection.cs
- JournalEntry.cs
- ObjectConverter.cs
- EncoderBestFitFallback.cs
- DiscoveryReferences.cs
- Property.cs
- JsonQNameDataContract.cs
- TypeInformation.cs
- SelectionUIHandler.cs
- InputLangChangeEvent.cs
- XmlSchemaAttributeGroup.cs
- ComponentChangedEvent.cs
- Baml2006ReaderContext.cs
- SmtpDigestAuthenticationModule.cs
- FontCacheUtil.cs
- WebPartDeleteVerb.cs
- safemediahandle.cs
- EnumBuilder.cs
- Font.cs
- VSWCFServiceContractGenerator.cs
- FontFamilyValueSerializer.cs
- RelationshipWrapper.cs
- HebrewNumber.cs
- rsa.cs
- DispatcherHooks.cs
- SoapAttributeOverrides.cs
- Hyperlink.cs
- TextTabProperties.cs
- InputScopeNameConverter.cs
- RIPEMD160.cs
- CollectionContainer.cs
- WindowsFormsSectionHandler.cs
- GradientStopCollection.cs
- OrthographicCamera.cs
- EvidenceBase.cs
- OperationAbortedException.cs
- WorkflowStateRollbackService.cs
- InplaceBitmapMetadataWriter.cs
- RelatedEnd.cs
- ConfigurationSettings.cs
- ArgumentOutOfRangeException.cs
- ChooseAction.cs
- ListenerChannelContext.cs
- ProviderCommandInfoUtils.cs
- MemoryStream.cs
- ParenthesizePropertyNameAttribute.cs
- ItemsPanelTemplate.cs
- CellQuery.cs
- LineSegment.cs
- XamlToRtfParser.cs
- SafeRightsManagementSessionHandle.cs
- StylusShape.cs