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
- Converter.cs
- TreeViewTemplateSelector.cs
- RoleManagerSection.cs
- BrowserDefinition.cs
- JournalEntryListConverter.cs
- thaishape.cs
- DbBuffer.cs
- SpecialTypeDataContract.cs
- invalidudtexception.cs
- FilteredDataSetHelper.cs
- MoveSizeWinEventHandler.cs
- DebugView.cs
- typedescriptorpermission.cs
- Root.cs
- CodeTypeReferenceExpression.cs
- ThreadInterruptedException.cs
- MsmqIntegrationInputChannel.cs
- SharedStatics.cs
- OutputCacheSettingsSection.cs
- TableItemStyle.cs
- FormViewPagerRow.cs
- WebPartAuthorizationEventArgs.cs
- WsdlBuildProvider.cs
- BatchServiceHost.cs
- JsonFormatReaderGenerator.cs
- RadioButton.cs
- WebServiceErrorEvent.cs
- ConfigXmlSignificantWhitespace.cs
- PackWebRequest.cs
- StreamInfo.cs
- DataContract.cs
- ConstraintManager.cs
- EntityParameter.cs
- DataGridViewHeaderCell.cs
- FocusWithinProperty.cs
- PropertyDescriptorGridEntry.cs
- LogLogRecord.cs
- Vector.cs
- ListParaClient.cs
- LocalizabilityAttribute.cs
- TransportConfigurationTypeElementCollection.cs
- ParameterCollection.cs
- CodeDomConfigurationHandler.cs
- SubclassTypeValidator.cs
- OleDbWrapper.cs
- ScrollableControl.cs
- ContentTextAutomationPeer.cs
- KeyValueSerializer.cs
- XmlAttributeCache.cs
- FileDialog_Vista.cs
- ComEventsHelper.cs
- DefaultExpressionVisitor.cs
- RtfControls.cs
- ExclusiveCanonicalizationTransform.cs
- SqlProcedureAttribute.cs
- MarginsConverter.cs
- PerformanceCounter.cs
- GridViewRowPresenter.cs
- AdapterDictionary.cs
- Menu.cs
- DesignerCategoryAttribute.cs
- RequestBringIntoViewEventArgs.cs
- TypeBuilderInstantiation.cs
- TreeViewHitTestInfo.cs
- sqlinternaltransaction.cs
- SystemDropShadowChrome.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SizeAnimationClockResource.cs
- DbDataReader.cs
- ScriptingScriptResourceHandlerSection.cs
- recordstatescratchpad.cs
- TrackBarRenderer.cs
- HtmlInputControl.cs
- System.Data_BID.cs
- XmlWrappingWriter.cs
- HostingEnvironmentWrapper.cs
- ProcessModule.cs
- BaseTemplateBuildProvider.cs
- XamlPointCollectionSerializer.cs
- MessageSmuggler.cs
- HtmlContainerControl.cs
- XmlUnspecifiedAttribute.cs
- CacheDependency.cs
- ManualResetEvent.cs
- ProxyElement.cs
- StringConverter.cs
- CountAggregationOperator.cs
- CorrelationToken.cs
- ExtendedProperty.cs
- ImageAnimator.cs
- FileUtil.cs
- TextEditorSpelling.cs
- ActivityTypeResolver.xaml.cs
- SqlDataSourceSelectingEventArgs.cs
- IResourceProvider.cs
- SqlRemoveConstantOrderBy.cs
- DesignerWidgets.cs
- SqlRecordBuffer.cs
- DefaultPropertiesToSend.cs
- StylusPointPropertyUnit.cs