segmentio / Analytics-CSharp

The hassle-free way to add Segment analytics to your C# written app (.Net/Xamarin/Unity).
MIT License
21 stars 8 forks source link

Feature - Add methods to make flush synchronously #94

Closed edsonjab closed 8 months ago

edsonjab commented 8 months ago

The main idea is adding a property synchroniceFlush and a new constructor for Configuration class to define when the process will execute async or sync process.

Help to solve an issue

I have an issue on flow because I can't fill the queue with all the events before the make the flush, the methods involved are WriteSync and UploadSync on EventPipeline class.

NOTE: this is my solution if exist a better option to implement I can work on that suggestion.