public static void Init() { MessageService.Message += Instance.OnMessage; Instance.PostObject(new InitWorkerComplete()); #if DEBUG Console.WriteLine($"BlazorWorker.WorkerBackgroundService.{nameof(WorkerInstanceManager)}.Init(): Done."); #endif }
public void OnEvent(object _, T eventArgs) { wim.PostObject(new EventRaised() { EventHandleId = EventHandleId, InstanceId = InstanceId, ResultPayload = wim.serializer.Serialize(eventArgs) }); }
public void OnEvent(object _, T eventArgs) { //Console.WriteLine("ONEVENT"); wim.PostObject(new EventRaised() { EventHandleId = EventHandleId, InstanceId = InstanceId, ResultPayload = wim.serializer.Serialize(eventArgs) }); }
public static void Init() { MessageService.Message += Instance.OnMessage; Console.WriteLine("BlazorWorker.WorkerBackgroundService.Init(): Done."); Instance.PostObject(new InitWorkerComplete()); }