Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Order order = CreateOrder();

            EventStorage.Event <Order> @event = new Event <Order>();
            @event.AggregateType      = "Order";
            @event.AggregateValue     = order;
            @event.EventVersion       = 1;
            @event.EventPublishedName = "NewOrder";
            IEventStorage <Order> storage = EventStorageFactory <Order> .GetDefaultEventStorage();

            storage.CommitChangesAsync(@event);
        }