File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
OptimizelySDK.Tests/EventTests Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ class BatchEventProcessorTest
28
28
private Mock < ILogger > LoggerMock ;
29
29
private BlockingCollection < object > eventQueue ;
30
30
private BatchEventProcessor EventProcessor ;
31
- private Mock < IEventDispatcher > EventDispatcherMock ;
32
- private TestEventDispatcher TestEventDispatcher ;
31
+ private Mock < IEventDispatcher > EventDispatcherMock ;
33
32
private NotificationCenter NotificationCenter = new NotificationCenter ( ) ;
34
33
private Mock < TestNotificationCallbacks > NotificationCallbackMock ;
35
34
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ public void Flush()
145
145
146
146
private void FlushQueue ( )
147
147
{
148
+ FlushingIntervalDeadline = DateTime . Now . MillisecondsSince1970 ( ) + ( long ) FlushInterval . TotalMilliseconds ;
149
+
148
150
if ( CurrentBatch . Count == 0 )
149
151
{
150
152
return ;
@@ -350,8 +352,8 @@ public BatchEventProcessor Build(bool start)
350
352
batchEventProcessor . NotificationCenter = NotificationCenter ;
351
353
352
354
batchEventProcessor . BatchSize = BatchSize < 1 ? BatchEventProcessor . DEFAULT_BATCH_SIZE : BatchSize ;
353
- batchEventProcessor . FlushInterval = FlushInterval < TimeSpan . FromSeconds ( 1 ) ? BatchEventProcessor . DEFAULT_FLUSH_INTERVAL : FlushInterval ;
354
- batchEventProcessor . TimeoutInterval = TimeoutInterval < TimeSpan . FromSeconds ( 1 ) ? BatchEventProcessor . DEFAULT_TIMEOUT_INTERVAL : TimeoutInterval ;
355
+ batchEventProcessor . FlushInterval = FlushInterval <= TimeSpan . FromSeconds ( 0 ) ? BatchEventProcessor . DEFAULT_FLUSH_INTERVAL : FlushInterval ;
356
+ batchEventProcessor . TimeoutInterval = TimeoutInterval <= TimeSpan . FromSeconds ( 0 ) ? BatchEventProcessor . DEFAULT_TIMEOUT_INTERVAL : TimeoutInterval ;
355
357
356
358
if ( start )
357
359
batchEventProcessor . Start ( ) ;
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ public class Builder
48
48
private string AccountId ;
49
49
private string ProjectId ;
50
50
private string Revision ;
51
- private string ClientName ;
52
- private string ClientVersion ;
53
51
private bool AnonymizeIP ;
54
52
55
53
public Builder WithAccountId ( string accountId )
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ public class ImpressionEvent : UserEvent
36
36
/// </summary>
37
37
public class Builder
38
38
{
39
- private string UserId ;
40
- private string UUID ;
41
- private long Timestamp ;
39
+ private string UserId ;
42
40
private EventContext EventContext ;
43
41
44
42
public VisitorAttribute [ ] VisitorAttributes ;
You can’t perform that action at this time.
0 commit comments