Beispiel #1
0
        public void HandleEvent(EmployeeCreated @event)
        {
            var log = AromatoLogging.CreateLogger <EmployeeCreatedEventHandler>();

            log.LogInformation(
                "Employee created, data as follows: {Employee}", @event.Employee);
        }
Beispiel #2
0
        public void HandleEvent(EmployeeContactNoChanged @event)
        {
            var log = AromatoLogging.CreateLogger <EmployeeContactNoChangedEventHandler>();

            log.LogInformation(
                "Employee with id {EmployeeId} contact number changed from {OldContactNo} to {NewContactNo}",
                @event.EmployeeId, @event.OldContactNo, @event.NewContactNo);
        }
Beispiel #3
0
        public void HandleEvent(EmployeeEmailChanged @event)
        {
            var log = AromatoLogging.CreateLogger <EmployeeEmailChangedEventHandler>();

            log.LogInformation(
                "Employee with id {EmployeeId} email changed from {OldEmail} to {NewEmail}",
                @event.EmployeeId, @event.OldEmail, @event.NewEmail
                );
        }