public void EntryPoint_PushTimed() { IBigBrother bb = BigBrother.CreateDefault(DevKey, DevKey).DeveloperMode(); bb.Publish(new TestTimedEvent()); bb.Flush(); }
public void EntryPoint_PushAnonymous() { IBigBrother bb = BigBrother.CreateDefault(DevKey, DevKey).DeveloperMode(); bb.Publish(new { SomeStuff = Lorem.GetSentence(), SomeMoreStuff = Lorem.GetSentence(), AndEvenMoreStuff = Lorem.GetSentence() }); bb.Flush(); }
public void EntryPoint_PushException() { const string message = "KABOOM!!!"; IBigBrother bb = BigBrother.CreateDefault(DevKey, DevKey).DeveloperMode(); try { BlowUp(message); } catch (Exception ex) { bb.Publish(ex.ToExceptionEvent()); bb.Flush(); } }