Skip to content

Commit 13a64f6

Browse files
committed
chore: updated with new LoadProjectAsync method call name
1 parent 3249f54 commit 13a64f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

KepwareSync.Service/SyncService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
122122

123123
private static async Task<long> FetchCurrentProjectIdAsync(KepwareApiClient client, CancellationToken cancellationToken)
124124
{
125-
var project = await client.Project.LoadProject(false, cancellationToken).ConfigureAwait(false);
125+
var project = await client.Project.LoadProjectAsync(false, cancellationToken: cancellationToken).ConfigureAwait(false);
126126

127127
return project?.ProjectId ?? -1;
128128
}
@@ -166,7 +166,7 @@ private async Task ProcessChangeAsync(ChangeEvent changeEvent, CancellationToken
166166
internal async Task SyncFromPrimaryKepServerAsync(CancellationToken cancellationToken = default)
167167
{
168168
m_logger.LogInformation("Synchronizing full project from primary Kepware...");
169-
var project = await m_kepServerClient.Project.LoadProject(true);
169+
var project = await m_kepServerClient.Project.LoadProjectAsync(true);
170170
await project.Cleanup(m_kepServerClient, true, cancellationToken);
171171

172172
if (m_kepServerClient.ClientOptions.Tag is KepwareSyncTarget targetOptions &&
@@ -239,7 +239,7 @@ private async Task SyncFromSecondaryKepServerAsync(CancellationToken cancellatio
239239
m_logger.LogInformation("Syncing from secondary client {ClientHostName}...", clientToSyncFrom.ClientHostName);
240240
}
241241

242-
var projectFromSecondary = await clientToSyncFrom.Project.LoadProject(true, cancellationToken).ConfigureAwait(false);
242+
var projectFromSecondary = await clientToSyncFrom.Project.LoadProjectAsync(true, cancellationToken: cancellationToken).ConfigureAwait(false);
243243
await SyncProjectToKepServerAsync("secondary", projectFromSecondary, m_kepServerClient, "Primary",
244244
onSyncedWithChanges: () => NotifyChange(new ChangeEvent { Source = ChangeSource.PrimaryKepServer, Reason = "Sync from secondary kepserver" }),
245245
cancellationToken: cancellationToken).ConfigureAwait(false);

0 commit comments

Comments
 (0)