Пример #1
0
 /// <summary>
 /// Sends an <see cref="InstallRequestMessage"/> to create or delete a workload installation record.
 /// </summary>
 /// <param name="requestType">The action to perform on the workload record.</param>
 /// <param name="workloadId">The workload identifier.</param>
 /// <param name="sdkFeatureBand">The SDK feature band associated with the record.</param>
 /// <returns></returns>
 public InstallResponseMessage SendWorkloadRecordRequest(InstallRequestType requestType, WorkloadId workloadId, SdkFeatureBand sdkFeatureBand)
 {
     return(Send(new InstallRequestMessage
     {
         RequestType = requestType,
         WorkloadId = workloadId.ToString(),
         SdkFeatureBand = sdkFeatureBand.ToString(),
     }));
 }
Пример #2
0
 /// <summary>
 /// Sends an <see cref="InstallRequestMessage"/> to modify the dependent of a provider key and
 /// blocks until a response is received from the server.
 /// </summary>
 /// <param name="requestType">The action to perform on the provider key.</param>
 /// <param name="providerKeyName">The name of the provider key.</param>
 /// <param name="dependent">The dependent value.</param>
 /// <returns></returns>
 public InstallResponseMessage SendDependentRequest(InstallRequestType requestType, string providerKeyName, string dependent)
 {
     return(Send(new InstallRequestMessage
     {
         RequestType = requestType,
         ProviderKeyName = providerKeyName,
         Dependent = dependent,
     }));
 }
Пример #3
0
 /// <summary>
 /// Sends an <see cref="InstallRequestMessage"/> to install, repair, or uninstall an MSI and
 /// blocks until a response is received from the server.
 /// </summary>
 /// <param name="requestType">The action to perform on the MSI.</param>
 /// <param name="logFile">The log file to created when performing the action.</param>
 /// <param name="packagePath">The path to the MSI package.</param>
 /// <param name="productCode">The product code of the installer package.</param>
 /// <returns></returns>
 public InstallResponseMessage SendMsiRequest(InstallRequestType requestType, string logFile, string packagePath = null, string productCode = null)
 {
     return(Send(new InstallRequestMessage
     {
         RequestType = requestType,
         LogFile = logFile,
         PackagePath = packagePath,
         ProductCode = productCode,
     }));
 }
Пример #4
0
 /// <summary>
 /// Sends an <see cref="InstallRequestMessage"/> to update the MSI package cache and blocks
 /// until a response is received from the server.
 /// </summary>
 /// <param name="requestType">The action to perform</param>
 /// <param name="manifestPath">The JSON manifest associated with the MSI.</param>
 /// <param name="packageId">The ID of the workload pack package containing an MSI.</param>
 /// <param name="packageVersion">The package version.</param>
 /// <returns></returns>
 public InstallResponseMessage SendCacheRequest(InstallRequestType requestType, string manifestPath,
                                                string packageId, string packageVersion)
 {
     return(Send(new InstallRequestMessage
     {
         RequestType = requestType,
         ManifestPath = manifestPath,
         PackageId = packageId,
         PackageVersion = packageVersion,
     }));
 }