Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            MainActivityLocator.Set(this);

            var container = new IocContainer();

            Setup(container).Wait();

            container.Resolve <TestAggregateThing>().Do();

            SqlLitePersistenceEngine engine = new SqlLitePersistenceEngine(new JsonSerializer());
            SqlLiteEventStore        store  = new SqlLiteEventStore(engine);

            //TestRootId testRootId = new TestRootId();

            //IEventStream stream = store.OpenStream(testRootId.ToEventStreamId());
            //stream.Add(new SourcedEvent
            //{
            //    Body = new TestEvent
            //    {
            //        TestValue = "Hello",
            //        TestStructure = new TestStructure
            //        {
            //            TestStructureValue = 1
            //        }
            //    }
            //});

            //stream.CommitChanges(Guid.NewGuid());

            store.GetCommits().ForEach(c => c.Events.ForEach(OutputEvent));
            base.OnCreate(bundle);
        }
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     MainActivityLocator.Set(this);
     SetContentView(layoutId);
     SetupProgressIndication();
     AfterInitialContentSetup();
 }
Exemplo n.º 3
0
 public void Navigate(Email toSend)
 {
     MainActivityLocator.Locate().NavigateToSendEmail(toSend);
 }
Exemplo n.º 4
0
 public void Display(string message)
 {
     Toast.MakeText(MainActivityLocator.Locate(), message, ToastLength.Long).Show();
 }