예제 #1
0
        public bool DoStuff()
        {
            //Write stuff to DB
            var succes = SomeRepository.WriteStuffToDb();

            //Then we call some webservice to pass along some data.
            SomeClient.SomeCallToWebService();
            //Finally we'd like to write something to the log file.
            SomeLogger.LogStuff();
            return(succes);
        }
        public bool DoStuff()
        {
            //Write stuff to DB
            var someRepository = new SomeRepository();
            var succes = someRepository.WriteStuffToDb();
            //Then we call some webservice to pass along some data.
            var someClient = new SomeClient();
            someClient.SomeCallToWebService();
            //Finally we'd like to write something to the log file.
            var someLogger = new SomeLogger();
            someLogger.LogStuff();

            return succes;
        }