private void RegisterRecordingLimitReachedEvent() { _recordingLimitReachedCallback = (RecordingLimitType type, IntPtr userData) => { RecordingLimitReached?.Invoke(this, new RecordingLimitReachedEventArgs(type)); }; Native.SetLimitReachedCallback(_handle, _recordingLimitReachedCallback, IntPtr.Zero). ThrowIfError("Failed to initialize RecordingLimitReached event"); }
private void RegisterRecordingLimitReachedEvent() { _recordingLimitReachedCallback = (type, _) => { RecordingLimitReached?.Invoke(this, new RecordingLimitReachedEventArgs(type)); }; Native.SetLimitReachedCallback(_handle, _recordingLimitReachedCallback). ThrowIfError("Failed to initialize limit reached event."); }