Ejemplo n.º 1
0
 public PackageManagement(string os, string version, SupportedPackageExtension extension)
 {
     this.os               = os;
     this.version          = version;
     this.packageExtension = extension;
     this.IotedgeServices  = string.Join(
         " ",
         "aziot-keyd.service",
         "aziot-certd.service",
         "aziot-identityd.service",
         "aziot-edged.service");
 }
Ejemplo n.º 2
0
 public PackageManagement(string os, string version, SupportedPackageExtension extension)
 {
     this.os               = os;
     this.version          = version;
     this.packageExtension = extension;
     this.IotedgeServices  = extension switch
     {
         SupportedPackageExtension.Deb => "iotedge.mgmt.socket iotedge.socket iotedge.service",
         SupportedPackageExtension.Rpm => "iotedge.service",
         _ => throw new NotImplementedException($"Unknown package extension '.{this.packageExtension}'")
     };
 }