Esempio n. 1
0
        protected virtual void OnFrontDoorEvent(FrontDoorOpenEventArgs args)
        {
            FrontDoorEvent?.Invoke(this, args);

            _bus.Publish(new DoorOpenendMessage(DoorOpenendMessage.DoorType.Front, "Fellon!"));
        }
Esempio n. 2
0
 private static void VOnFrontDoorEvent(object sender, FrontDoorOpenEventArgs args)
 {
     Console.WriteLine("Frontdoor Opened!");
 }