public static HalanVersionInfo GetVersionInfo(string productName, Version currentVersion)
        {
            BasicHttpBinding_IProductManager p = new BasicHttpBinding_IProductManager();

              LatestVersionRequest req = new LatestVersionRequest();
              req.ProductName = productName;
              req.CurrentProductVersion = currentVersion.ToString(4);

              LatestVersionResponse resp = p.GetLatestVersion(req);

              if( resp.ProductVersion.IsValid() ) {
            HalanVersionInfo r = new HalanVersionInfo();

            Version larestVer = new Version(resp.ProductVersion);
            r.Product = productName;
            r.ReleaseDate = resp.ReleaseDate;
            r.Status = ( larestVer <= currentVersion ) ? VersionStatus.Latest : VersionStatus.Old;
            r.LatestVersion = larestVer;
            r.Features = resp.Features;
            r.Url = resp.Url.Default("http://blog.halan.se/page/Service-Bus-MQ-Manager.aspx?update=true&v=" + currentVersion.ToString());
            return r;
              }

              return null;
        }
 /// <remarks/>
 public void GetLatestVersionAsync(LatestVersionRequest request, object userState) {
     if ((this.GetLatestVersionOperationCompleted == null)) {
         this.GetLatestVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLatestVersionOperationCompleted);
     }
     this.InvokeAsync("GetLatestVersion", new object[] {
                 request}, this.GetLatestVersionOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetLatestVersionAsync(LatestVersionRequest request) {
     this.GetLatestVersionAsync(request, null);
 }