rbanks54 / microcafe

Sample code to show microservices using NET, in the context of a cafe
119 stars 50 forks source link

.NET Core, Linux and Docker #3

Closed rbanks54 closed 7 years ago

rbanks54 commented 8 years ago

Port code to .NET core, deploy to Linux based containers. Use dockerised versions of RabbitMq and Redis as well

dasiths commented 7 years ago

I implemented the Apply() on Aggregate a bit differently because the old version of .NET CORE didn't support dynamics.

See the [InternalEventHandler] method attribute: https://github.com/dasiths/NEventLite/blob/master/src/Examples/NEventLite%20Example/Domain/Note.cs

My Aggregate is as follows: https://github.com/dasiths/NEventLite/blob/master/src/Framework/Domain/AggregateRoot.cs

I have this wiring up the methods: private void SetupInternalEventHandlers() { _eventHandlerCache = ReflectionHelper.FindEventHandlerMethodsInAggregate(this.GetType()); }

I believe the method marker also makes it easier to read the code in the aggregate. What are your thoughts?

rbanks54 commented 7 years ago

Closing this and separating things out to separate issues