Ejemplo n.º 1
0
        public void EntryPoint_PushTimed()
        {
            IBigBrother bb = BigBrother.CreateDefault(DevKey, DevKey).DeveloperMode();

            bb.Publish(new TestTimedEvent());
            bb.Flush();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
            }
        }