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
- ProfessionalColorTable.cs
- SettingsPropertyValueCollection.cs
- TableDetailsCollection.cs
- Soap.cs
- CodeCatchClause.cs
- HyperLinkStyle.cs
- DBCSCodePageEncoding.cs
- StringAnimationBase.cs
- HttpCacheParams.cs
- CallId.cs
- TableRowCollection.cs
- AttributeData.cs
- LiteralTextParser.cs
- Thread.cs
- EnglishPluralizationService.cs
- ProtectedConfigurationSection.cs
- RichTextBoxConstants.cs
- Model3DGroup.cs
- UrlMappingCollection.cs
- SafeRegistryKey.cs
- APCustomTypeDescriptor.cs
- FontConverter.cs
- userdatakeys.cs
- SynchronousReceiveBehavior.cs
- RuntimeResourceSet.cs
- TrackingMemoryStream.cs
- DocumentCollection.cs
- NaturalLanguageHyphenator.cs
- Set.cs
- XamlInt32CollectionSerializer.cs
- LexicalChunk.cs
- GridViewSortEventArgs.cs
- KnownTypesHelper.cs
- XmlLanguage.cs
- ConsoleCancelEventArgs.cs
- wmiprovider.cs
- RootBrowserWindowAutomationPeer.cs
- ApplyImportsAction.cs
- uribuilder.cs
- ReferenceConverter.cs
- ListBase.cs
- Path.cs
- SafeLocalAllocation.cs
- PtsHelper.cs
- CallbackException.cs
- BCryptSafeHandles.cs
- ButtonBase.cs
- ScrollChrome.cs
- StreamGeometryContext.cs
- RedistVersionInfo.cs
- AccessDataSourceView.cs
- WebResponse.cs
- TextSpanModifier.cs
- ScriptMethodAttribute.cs
- webeventbuffer.cs
- ParameterToken.cs
- RadioButton.cs
- RemoteWebConfigurationHost.cs
- CodePropertyReferenceExpression.cs
- Comparer.cs
- RetrieveVirtualItemEventArgs.cs
- UnsafeMethods.cs
- GenericTypeParameterBuilder.cs
- CalendarDateRange.cs
- _NestedMultipleAsyncResult.cs
- InputBindingCollection.cs
- RadialGradientBrush.cs
- DataServiceKeyAttribute.cs
- SqlClientFactory.cs
- SessionViewState.cs
- WebPartCatalogAddVerb.cs
- TextWriter.cs
- RijndaelManaged.cs
- Comparer.cs
- BindingGroup.cs
- RMPublishingDialog.cs
- WorkflowElementDialog.cs
- SharedStream.cs
- Processor.cs
- CursorConverter.cs
- LostFocusEventManager.cs
- WebServiceEndpoint.cs
- ChangeConflicts.cs
- XmlTextReaderImpl.cs
- FactoryMaker.cs
- EpmCustomContentWriterNodeData.cs
- FrugalList.cs
- TextEmbeddedObject.cs
- MetadataFile.cs
- regiisutil.cs
- StringFunctions.cs
- MemoryStream.cs
- Vector3DCollection.cs
- TrustSection.cs
- JsonServiceDocumentSerializer.cs
- StyleBamlRecordReader.cs
- WebPartZoneBase.cs
- TextEndOfSegment.cs
- NewArrayExpression.cs
- GenericPrincipal.cs