Skip to content

Commit 7ccaf6d

Browse files
committed
Corrected for new SDK API
1 parent b6322a0 commit 7ccaf6d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/demos/modules/DotNetLongProcess/DotNetLongProcessWorker.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
using System;
2-
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
42
using System.Diagnostics;
53
using System.Dynamic;
64
using System.IO;
7-
using System.Linq;
5+
using System.Threading;
86
using System.Threading.Tasks;
97

108
using Microsoft.Extensions.Configuration;
119
using Microsoft.Extensions.Logging;
1210
using Microsoft.Extensions.Hosting;
1311

14-
using CodeProject.AI.SDK;
1512
using CodeProject.AI.SDK.API;
13+
using CodeProject.AI.SDK.Backend;
14+
using CodeProject.AI.SDK.Common;
1615
using CodeProject.AI.SDK.Utils;
1716

18-
using SkiaSharp;
19-
using System.Threading;
20-
2117
namespace CodeProject.AI.Modules.DotNetLongProcess
2218
{
2319
/// <summary>
@@ -43,7 +39,7 @@ public class LongProcessModuleResponse : ModuleResponse
4339
/// While intended for development and tests, this also demonstrates how a backend service can
4440
/// be created with the .NET Core framework.
4541
/// </summary>
46-
public class DotNetLongProcessWorker : ModuleWorkerBase
42+
public class DotNetLongProcessWorker : ModuleRunnerBase
4743
{
4844
private const int _maxSteps = 10;
4945

0 commit comments

Comments
 (0)