partial void FlushStreamSync(NSObject sender)
 {
     eventStream.FlushSync();
 }