Files
Luke Malpass c97c685af9 DI Example
2018-06-13 07:29:08 +01:00

24 lines
488 B
C#

using System;
namespace DependencyExample
{
public static class DependencyProvider
{
// This would be from the DI service
public static IFileManager FileManager { get; set; }
public static ILogger Logger { get; set; }
}
public interface IFileManager
{
void WriteFileData(string path, string data);
string GetFileData(string path);
}
public interface ILogger
{
void LogMessage(string message);
}
}