Skip to content

Commit

Permalink
made changes for the bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyunt committed Jan 13, 2016
1 parent d1b2bbd commit 60247aa
Show file tree
Hide file tree
Showing 63 changed files with 4,312 additions and 2,037 deletions.
18 changes: 18 additions & 0 deletions PackageManagement/Api/IHostAPI.cs
Expand Up @@ -189,6 +189,24 @@ public interface IHostApi {
/// <returns></returns>
bool ShouldContinueWithUntrustedPackageSource(string package, string packageSource);

/// <summary>
/// Allow a package provider to comfirm a user whether the process should continue
/// </summary>
/// <param name="query">Query that inquires whether the cmdlet should continue.</param>
/// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>
/// <param name="yesToAll">True if and only if the user selects the yesToall option. If this is already True, ShouldContinue will bypass the prompt and return True.</param>
/// <param name="noToAll">True if and only if the user selects the noToall option. If this is already True, ShouldContinue will bypass the prompt and return False.</param>
/// <returns></returns>
bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll);

/// <summary>
/// Allow a package provider to comfirm a user whether the process should continue
/// </summary>
/// <param name="query">Query that inquires whether the cmdlet should continue.</param>
/// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>
/// <returns></returns>
bool ShouldContinue(string query, string caption);

/// <summary>
/// Asks an arbitrary true/false question of the user.
/// </summary>
Expand Down
16 changes: 16 additions & 0 deletions PackageManagement/Api/IResponseApi.cs
Expand Up @@ -34,6 +34,22 @@ public interface IResponseApi {
/// <returns></returns>
string YieldSoftwareIdentity(string fastPath, string name, string version, string versionScheme, string summary, string source, string searchKey, string fullPath, string packageFileName);

/// <summary>
/// Used by a provider to return a swidtag in the form of an xml
/// Provider has the option to commit immediately
/// </summary>
/// <param name="xmlSwidTag"></param>
/// <param name="commitImmediately"></param>
/// <returns></returns>
string YieldSoftwareIdentityXml(string xmlSwidTag, bool commitImmediately);

/// <summary>
/// Adds a tagId to a SoftwareIdentity object
/// </summary>
/// <param name="tagId"></param>
/// <returns></returns>
string AddTagId(string tagId);

/// <summary>
/// Adds an arbitrary key/value pair of metadata to a SoftwareIdentity
///
Expand Down
3 changes: 2 additions & 1 deletion PackageManagement/Constants.cs
Expand Up @@ -58,6 +58,8 @@ internal static class Messages {
internal const string DependentPackageFailedInstall = "MSG:DependentPackageFailedInstall_dependency";
internal const string DestinationPathNotSet = "MSG:DestinationPathNotSet";
internal const string FailedProviderBootstrap = "MSG:FailedProviderBootstrap";
internal const string ProviderNotResponsive = "MSG:ProviderNotResponsive";
internal const string ProviderTimeoutExceeded = "MSG:ProviderTimeoutExceeded";
internal const string FailedPowerShellMetaProvider = "MSG:FailedPowerShellMetaProvider";
internal const string FileFailedVerification = "MSG:FileFailedVerification";
internal const string HashNotEqual = "MSG:HashNotEqual";
Expand Down Expand Up @@ -98,7 +100,6 @@ internal static class Messages {
internal const string FileNotFound = "MSG:FileNotFound";
internal const string InvalidFileType = "MSG:InvalidFileType";
internal const string ProviderNameIsNullOrEmpty = "MSG:ProviderNameIsNullOrEmpty";
internal const string UnableToImportModule = "MSG:UnableToImportModule";
internal const string FailedToImportProvider = "MSG:FailedToImportProvider";
internal const string ModuleNotFound = "MSG:ModuleNotFound";
internal const string NoMatchFoundForCriteria = "MSG:NoMatchFoundForCriteria";
Expand Down
3 changes: 2 additions & 1 deletion PackageManagement/Implementation/DefaultPackageProvider.cs
Expand Up @@ -16,12 +16,13 @@
namespace Microsoft.PackageManagement.Internal.Implementation
{
using System;
using PackageManagement.Internal.Packaging;
using Providers;

/// <summary>
/// This DefaultPackageProvider type is mainly used for the PowerShell console output.
/// </summary>
public class DefaultPackageProvider : IPackageProvider {
public class DefaultPackageProvider : Swidtag, IPackageProvider {

private readonly string _providerName;
private readonly string _providerVersion;
Expand Down

0 comments on commit 60247aa

Please sign in to comment.