Example #1
0
        public void EntryPoint_PushTimed()
        {
            IBigBrother bb = BigBrother.CreateDefault(DevKey, DevKey).DeveloperMode();

            bb.Publish(new TestTimedEvent());
            bb.Flush();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
            }
        }