Пример #1
0
        static void Main2(string[] args)
        {
            var myNotificationsEngine = new MyNotificationsEngine();

            var localDataCenter  = new DataCenter();
            var remoteDataCenter = new DataCenter();

            var myController = new MyController(
                myNotificationsEngine,
                localDataCenter,
                remoteDataCenter);

            //somewhere
            myController.HandleMessageFromUser("message");


            //somewhere else
            myController.HandleReplicatedMessage("message");
        }