Esempio n. 1
0
        public override void SetUp()
        {
            var options = new TextFileDistributedLogOptions {
                StreamDirectory = TestFileDirectory
            };

            _log = new TextFileDistributedLog(options);
        }
Esempio n. 2
0
        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);
        }