Exemplo n.º 1
0
 /// <summary></summary>
 /// <param name="pack">The associated package</param>
 /// <param name="uppm">The executing package manager</param>
 public ScriptHost(Package pack, IUppmImplementation uppm) : this()
 {
     PackageManager = uppm;
     Pack           = pack;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the name which will be used system wide to differentiate between uppm implementations
 /// </summary>
 /// <returns></returns>
 public static string GetSystemName(this IUppmImplementation impl)
 {
     return(string.IsNullOrWhiteSpace(impl.ShortName) ? "uppm" : $"uppm{SystemNameSeparator}{impl.ShortName}");
 }