public override void SetUp() { var options = new TextFileDistributedLogOptions { StreamDirectory = TestFileDirectory }; _log = new TextFileDistributedLog(options); }
public static IServiceCollection AddTextFileDistributedLog(this IServiceCollection services, Action <TextFileDistributedLogOptions> action) { var options = new TextFileDistributedLogOptions(); action.Invoke(options); services.AddSingleton <IDistributedLog, TextFileDistributedLog>(); services.AddSingleton(options); return(services); }