© 2026 Hedgehog Software, LLC
BackgroundWorker backgroundWorker = new(); client.Initialize(); await client.Authenticate(); client.AddCallback<TestObject>(ShowOrders); var testString = "a"; XX test = new() { Test = "xx" }; void ShowOrders(TestObject response) { test.Test = "xx"; testString = "b"; } for (var x = 0; x<9; x++) { await client.GetAccount(); await Task.Delay(500); } backgroundWorker.RunWorkerAsync(client.Receive()); await Task.Delay(5000); System.Console.WriteLine(testString); public class XX { public string? Test { get; set; } }
client.AddCallback<TestObject>(ShowOrders);
Use of unassigned local variable 'test'
testString