From d0599aedea9d0fa84e989579e42ab5b371c98577 Mon Sep 17 00:00:00 2001 From: harid Date: Fri, 3 Oct 2025 11:04:39 +0700 Subject: [PATCH] =?UTF-8?q?comment=20=E0=B9=80=E0=B8=9E=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=B0=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=84=E0=B8=94=E0=B9=89?= =?UTF-8?q?=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B9=81=E0=B8=A5=E0=B9=89=E0=B8=A7?= =?UTF-8?q?=20#1831?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/InsigniaRequestProcessService.cs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs b/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs index abaa5093..910c525c 100644 --- a/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs +++ b/BMA.EHR.Insignia/Services/InsigniaRequestProcessService.cs @@ -33,25 +33,25 @@ public class InsigniaRequestProcessService : BackgroundService #endregion - public override async Task StartAsync(CancellationToken cancellationToken) - { - var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket", - new SocketIOOptions - { - // เพิ่ม token ใน handshake.auth - Auth = new { token = AccessToken ?? "" } - }); + //public override async Task StartAsync(CancellationToken cancellationToken) + //{ + //var client = new SocketIO("https://bma-ehr.frappet.synology.me/api/v1/org-socket", + // new SocketIOOptions + // { + // // เพิ่ม token ใน handshake.auth + // Auth = new { token = AccessToken ?? "" } + // }); - client.OnConnected += async (sender, e) => - { - Console.WriteLine("Connected to Socket.IO server"); - await client.EmitAsync("eventName", "Hello from .NET client"); - }; + //client.OnConnected += async (sender, e) => + //{ + // Console.WriteLine("Connected to Socket.IO server"); + // await client.EmitAsync("eventName", "Hello from .NET client"); + //}; - await client.ConnectAsync(); + //await client.ConnectAsync(); - await base.StartAsync(cancellationToken); - } + //await base.StartAsync(cancellationToken); + //}