GetVersionInfo() public static method

public static GetVersionInfo ( string productName, System.Version currentVersion ) : ServiceBusMQ.HalanVersionInfo
productName string
currentVersion System.Version
return ServiceBusMQ.HalanVersionInfo
        protected override void OnDoWork(DoWorkEventArgs e)
        {
            List <HalanVersionInfo> r = new List <HalanVersionInfo>();

            List <CheckVersionObject> check = e.Argument as List <CheckVersionObject>;

            foreach (CheckVersionObject c in check)
            {
                HalanVersionInfo inf = HalanServices.GetVersionInfo(c.ProductName, c.CurrentVersion);
                if (inf != null)
                {
                    r.Add(inf);
                }
            }

            e.Result = r;
        }
Exemplo n.º 2
0
 public HalanVersionInfo GetLatestVersionInfo()
 {
     return(HalanServices.GetVersionInfo(Product, Version));
 }