Explorar el Código

update base provider

Zixuan hace 13 horas
padre
commit
257e35dff5
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      Server/EEMSClientCore/ClientProvider.cs

+ 5 - 3
Server/EEMSClientCore/ClientProvider.cs

@@ -33,7 +33,7 @@ public class ClientProvider(IClientCaller clientCaller, IClientBaseProvider base
 
         if (_streamBuffer.TryRemove(fileType, out MemoryStream? memoryStream) && memoryStream is not null)
             memoryStream.Dispose();
-
+        baseProvider?.FileReceivedNotify(fileType);
         return Task.FromResult(true);
     }
 
@@ -93,6 +93,8 @@ public class ClientProvider(IClientCaller clientCaller, IClientBaseProvider base
 
 public interface IClientBaseProvider
 {
-    public string? RecipePath { get; set; }
-    public string? ConfigPath { get; set; }
+    string? RecipePath { get; set; }
+    string? ConfigPath { get; set; }
+
+    void FileReceivedNotify(FileType fileType);
 }