Skip to content

Commit

Permalink
Typos in WuAgent.cs
Browse files Browse the repository at this point in the history
Fixed some comment typos
  • Loading branch information
zolong1 committed Oct 25, 2019
1 parent 813cc0c commit ce7cca7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions wumgr/WuAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public WuAgent()

mUpdateSession = new UpdateSession();
mUpdateSession.ClientApplicationID = Program.mName;
//mUpdateSession.UserLocale = 1033; // alwys show strings in englisch
//mUpdateSession.UserLocale = 1033; // always show strings in english

mUpdateServiceManager = new UpdateServiceManager();

Expand Down Expand Up @@ -266,7 +266,7 @@ private RetCodes ClearOffline()
{
if (mOfflineService != null)
{
// note: if we keep references to updates reffering to an removed service we may got a crash
// note: if we keep references to updates reffering to a removed service we may get a crash

This comment has been minimized.

Copy link
@koitsu

koitsu May 12, 2023

"referring" not "reffering"

foreach (MsUpdate Update in mUpdateHistory)
Update.Invalidate();
foreach (MsUpdate Update in mPendingUpdates)
Expand Down Expand Up @@ -526,7 +526,7 @@ public RetCodes UnInstallUpdatesManually(List<MsUpdate> Updates)
return RetCodes.InProgress;
}

void DownloadsFinished(object sender, UpdateDownloader.FinishedEventArgs args) // "manuall" mode
void DownloadsFinished(object sender, UpdateDownloader.FinishedEventArgs args) // "manual" mode
{
if (mCurOperation == AgentOperation.CancelingOperation)
{
Expand All @@ -539,7 +539,7 @@ void DownloadsFinished(object sender, UpdateDownloader.FinishedEventArgs args) /
AppLog.Line("wsusscn2.cab downloaded");

RetCodes ret = ClearOffline();
if (ret == RetCodes.Success)
if (ret == RetCodes.Success)l
ret = SetupOffline();
if (ret == RetCodes.Success)
ret = SearchForUpdates();
Expand Down Expand Up @@ -593,7 +593,7 @@ void DownloadProgress(object sender, ProgressArgs args)
OnProgress(args.TotalCount, args.TotalPercent, args.CurrentIndex, args.CurrentPercent, args.Info);
}

void InstallFinished(object sender, UpdateInstaller.FinishedEventArgs args) // "manuall" mode
void InstallFinished(object sender, UpdateInstaller.FinishedEventArgs args) // "manual" mode
{
if (args.Success)
{
Expand Down Expand Up @@ -1157,7 +1157,7 @@ public UpdateCallback(WuAgent agent)
// Implementation of ISearchCompletedCallback interface...
public void Invoke(ISearchJob searchJob, ISearchCompletedCallbackArgs e)
{
// !!! warning this function is invoced from a different thread !!!
// !!! warning this function is invoked from a different thread !!!
agent.mDispatcher.Invoke(new Action(() => {
agent.OnUpdatesFound(searchJob);
}));
Expand All @@ -1166,7 +1166,7 @@ public void Invoke(ISearchJob searchJob, ISearchCompletedCallbackArgs e)
// Implementation of IDownloadProgressChangedCallback interface...
public void Invoke(IDownloadJob downloadJob, IDownloadProgressChangedCallbackArgs callbackArgs)
{
// !!! warning this function is invoced from a different thread !!!
// !!! warning this function is invoked from a different thread !!!
agent.mDispatcher.Invoke(new Action(() => {
agent.OnProgress(downloadJob.Updates.Count, callbackArgs.Progress.PercentComplete, callbackArgs.Progress.CurrentUpdateIndex + 1,
callbackArgs.Progress.CurrentUpdatePercentComplete, downloadJob.Updates[callbackArgs.Progress.CurrentUpdateIndex].Title);
Expand All @@ -1176,7 +1176,7 @@ public void Invoke(IDownloadJob downloadJob, IDownloadProgressChangedCallbackArg
// Implementation of IDownloadCompletedCallback interface...
public void Invoke(IDownloadJob downloadJob, IDownloadCompletedCallbackArgs callbackArgs)
{
// !!! warning this function is invoced from a different thread !!!
// !!! warning this function is invoked from a different thread !!!
agent.mDispatcher.Invoke(new Action(() => {
agent.OnUpdatesDownloaded(downloadJob, downloadJob.AsyncState);
}));
Expand All @@ -1185,7 +1185,7 @@ public void Invoke(IDownloadJob downloadJob, IDownloadCompletedCallbackArgs call
// Implementation of IInstallationProgressChangedCallback interface...
public void Invoke(IInstallationJob installationJob, IInstallationProgressChangedCallbackArgs callbackArgs)
{
// !!! warning this function is invoced from a different thread !!!
// !!! warning this function is invoked from a different thread !!!
agent.mDispatcher.Invoke(new Action(() => {
agent.OnProgress(installationJob.Updates.Count, callbackArgs.Progress.PercentComplete, callbackArgs.Progress.CurrentUpdateIndex + 1,
callbackArgs.Progress.CurrentUpdatePercentComplete, installationJob.Updates[callbackArgs.Progress.CurrentUpdateIndex].Title);
Expand All @@ -1195,7 +1195,7 @@ public void Invoke(IInstallationJob installationJob, IInstallationProgressChange
// Implementation of IInstallationCompletedCallback interface...
public void Invoke(IInstallationJob installationJob, IInstallationCompletedCallbackArgs callbackArgs)
{
// !!! warning this function is invoced from a different thread !!!
// !!! warning this function is invoked from a different thread !!!
agent.mDispatcher.Invoke(new Action(() => {
agent.OnInstalationCompleted(installationJob, installationJob.AsyncState);
}));
Expand Down

0 comments on commit ce7cca7

Please sign in to comment.