Using the client without the component
FlagsmithClient is plain C# and works from any async code on the main thread:
var client = new FlagsmithClient(new FlagsmithOptions { EnvironmentKey = key });
Flags env = await client.GetEnvironmentFlags();
Flags mine = await client.GetIdentityFlags("player-42", new Dictionary<string, object> { ["level"] = 3 });
Flag variant = await client.GetExperimentFlag("tutorial_style", "player-42");
client.TrackEvent("first_run_complete", "player-42");
await client.FlushEvents(); // you own flushing and SaveEvents() when not using the component
For tests, pass your own ITransport (see FakeTransport in the package tests) and MemoryFlagCache.