Commit 983406b

mokhan <mokhan@ce5e1baf-6525-42e4-a1b2-857ea38da20a>
2009-04-28 20:30:02
git-svn-id: https://svn.xp-dev.com/svn/mokhan-mo.money@196 ce5e1baf-6525-42e4-a1b2-857ea38da20a
1 parent f7d5426
Changed files (1)
trunk
product
MoMoney.Service
Infrastructure
trunk/product/MoMoney.Service/Infrastructure/Logging/LogFileTasks.cs
@@ -1,32 +0,0 @@
-using System.IO;
-using Gorilla.Commons.Infrastructure.Reflection;
-
-namespace MoMoney.Service.Infrastructure.Logging
-{
-    public interface ILogFileTasks
-    {
-        string get_the_contents_of_the_log_file();
-        string get_the_path_to_the_log_file();
-    }
-
-    public class LogFileTasks : ILogFileTasks
-    {
-        public string get_the_contents_of_the_log_file()
-        {
-            using (
-                var file_stream = new FileStream(get_the_path_to_the_log_file(), FileMode.Open, FileAccess.Read,
-                                                 FileShare.ReadWrite))
-            {
-                using (var reader = new StreamReader(file_stream))
-                {
-                    return reader.ReadToEnd();
-                }
-            }
-        }
-
-        public string get_the_path_to_the_log_file()
-        {
-            return Path.Combine(this.startup_directory(), @"logs\log.txt");
-        }
-    }
-}
\ No newline at end of file