예제 #1
0
        private async Task CompareWithRemote()
        {
            RemoteExe = await Uploader.GetExecutable(LocalExe.FileName);

            if (RemoteExe == null)
            {
                return;
            }
            Deleter.Initialize(RemoteExe);

            if (RemoteExe.FileVersion == LocalExe.FileVersion)
            {
                return;
            }
            if (RemoteExe.FileHash == LocalExe.FileHash)
            {
                return;
            }

            LocalExe.nid = RemoteExe.nid;
            LocalExe.uid = RemoteExe.uid;
            HasChanges   = true;
        }