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
- Wrapper.cs
- EntityDataSourceChangingEventArgs.cs
- Attributes.cs
- CultureSpecificStringDictionary.cs
- WebPartEditorOkVerb.cs
- PriorityBinding.cs
- ICollection.cs
- OutputCacheModule.cs
- SqlHelper.cs
- CalendarDay.cs
- Path.cs
- TdsParserStaticMethods.cs
- GeometryHitTestResult.cs
- HttpGetProtocolImporter.cs
- ContextMenu.cs
- RepeatButton.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- RemotingException.cs
- RouteData.cs
- SeverityFilter.cs
- ColorAnimationUsingKeyFrames.cs
- PeerCollaboration.cs
- ExtendedProtectionPolicyElement.cs
- WindowsClientCredential.cs
- CopyNodeSetAction.cs
- MultiByteCodec.cs
- LongSumAggregationOperator.cs
- StylusPlugInCollection.cs
- UnsignedPublishLicense.cs
- WebDisplayNameAttribute.cs
- FillBehavior.cs
- WindowsProgressbar.cs
- OpacityConverter.cs
- VarRemapper.cs
- EntityDataSourceSelectedEventArgs.cs
- NetworkInterface.cs
- RoutingBehavior.cs
- SBCSCodePageEncoding.cs
- OdbcConnectionOpen.cs
- ImportCatalogPart.cs
- BooleanFunctions.cs
- AuthenticateEventArgs.cs
- StringValueSerializer.cs
- DayRenderEvent.cs
- ReversePositionQuery.cs
- NavigatingCancelEventArgs.cs
- TagNameToTypeMapper.cs
- LogRecordSequence.cs
- ListViewEditEventArgs.cs
- BuildResult.cs
- IQueryable.cs
- GreenMethods.cs
- RichTextBoxConstants.cs
- DataBoundLiteralControl.cs
- EFDataModelProvider.cs
- NumericPagerField.cs
- IIS7UserPrincipal.cs
- ProtocolsInstallComponent.cs
- RegexCaptureCollection.cs
- EncoderNLS.cs
- ActivityTrace.cs
- ConstrainedDataObject.cs
- XmlArrayItemAttribute.cs
- QilDataSource.cs
- PointConverter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Tablet.cs
- RouteCollection.cs
- DependencyObjectValidator.cs
- IApplicationTrustManager.cs
- RepeaterItem.cs
- HtmlElementEventArgs.cs
- ToolStripItemEventArgs.cs
- DataAdapter.cs
- FloatSumAggregationOperator.cs
- XsltContext.cs
- RemoteHelper.cs
- MoveSizeWinEventHandler.cs
- RegexFCD.cs
- HwndProxyElementProvider.cs
- ModuleBuilder.cs
- DataObjectMethodAttribute.cs
- ReflectionUtil.cs
- SqlDataReader.cs
- FontFaceLayoutInfo.cs
- WmfPlaceableFileHeader.cs
- RectAnimationUsingKeyFrames.cs
- BuildProvider.cs
- SelectedCellsChangedEventArgs.cs
- DataSourceCache.cs
- ToolStripLocationCancelEventArgs.cs
- ValidationErrorCollection.cs
- IntSecurity.cs
- LinqDataSourceValidationException.cs
- SizeConverter.cs
- IPEndPoint.cs
- CacheEntry.cs
- Matrix3DStack.cs
- WebPartHelpVerb.cs
- SettingsProperty.cs