1
0
mirror of https://github.com/akpaevj/OneSTools.TechLog.git synced 2024-12-12 08:23:50 +02:00

Из настроек ридера удален параметр Properties

This commit is contained in:
Акпаев Евгений Александрович 2021-01-05 01:34:29 +03:00
parent df602325b8
commit 71e52702f1
6 changed files with 48 additions and 11 deletions

View File

@ -0,0 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Akpaev Evgeny</Authors>
<Company>Akpaev Evgeny</Company>
<RepositoryUrl>https://github.com/akpaevj/OneSTools.TechLog</RepositoryUrl>
<PackageProjectUrl>https://github.com/akpaevj/OneSTools.TechLog</PackageProjectUrl>
<Copyright>Akpaev Evgeny</Copyright>
<Description>Библиотека для парсинга технологического журнала 1С</Description>
<Version>2.1.3</Version>
<LangVersion>8.0</LangVersion>
<PackageIcon>onestools_icon_nuget.png</PackageIcon>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<None Include="C:\Users\akpaev.e.ENTERPRISE\source\repos\OneSTools.TechLog\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="C:\Users\akpaev.e.ENTERPRISE\source\repos\onestools_icon_nuget.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="5.0.0" />
</ItemGroup>
</Project>

View File

@ -8,8 +8,8 @@
<RepositoryUrl>https://github.com/akpaevj/OneSTools.TechLog</RepositoryUrl> <RepositoryUrl>https://github.com/akpaevj/OneSTools.TechLog</RepositoryUrl>
<PackageProjectUrl>https://github.com/akpaevj/OneSTools.TechLog</PackageProjectUrl> <PackageProjectUrl>https://github.com/akpaevj/OneSTools.TechLog</PackageProjectUrl>
<Copyright>Akpaev Evgeny</Copyright> <Copyright>Akpaev Evgeny</Copyright>
<Description>Библиотека для парсинга технологического журнала 1С</Description> <Description>Библиотека для чтения и парсинга технологического журнала 1С</Description>
<Version>2.1.3</Version> <Version>2.1.4</Version>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>
<PackageIcon>onestools_icon_nuget.png</PackageIcon> <PackageIcon>onestools_icon_nuget.png</PackageIcon>
<PackageLicenseExpression></PackageLicenseExpression> <PackageLicenseExpression></PackageLicenseExpression>

View File

@ -5,7 +5,6 @@ namespace OneSTools.TechLog
public class TechLogFolderReaderSettings public class TechLogFolderReaderSettings
{ {
public string Folder { get; set; } = ""; public string Folder { get; set; } = "";
public List<string> Properties { get; set; } = new List<string>();
public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None; public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None;
public bool LiveMode { get; set; } = false; public bool LiveMode { get; set; } = false;
public int ReadingTimeout { get; set; } = 1; public int ReadingTimeout { get; set; } = 1;

View File

@ -71,7 +71,6 @@ namespace OneSTools.TechLog
var settings = new TechLogFolderReaderSettings var settings = new TechLogFolderReaderSettings
{ {
Folder = logFolder, Folder = logFolder,
Properties = _settings.Properties,
AdditionalProperty = _settings.AdditionalProperty, AdditionalProperty = _settings.AdditionalProperty,
LiveMode = _settings.LiveMode, LiveMode = _settings.LiveMode,
ReadingTimeout = _settings.ReadingTimeout ReadingTimeout = _settings.ReadingTimeout

View File

@ -7,7 +7,6 @@ namespace OneSTools.TechLog
public string LogFolder { get; set; } = ""; public string LogFolder { get; set; } = "";
public int BatchSize { get; set; } = 1000; public int BatchSize { get; set; } = 1000;
public int BatchFactor { get; set; } = 2; public int BatchFactor { get; set; } = 2;
public List<string> Properties { get; set; } = new List<string>();
public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None; public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None;
public bool LiveMode { get; set; } = false; public bool LiveMode { get; set; } = false;
public int ReadingTimeout { get; set; } = 1; public int ReadingTimeout { get; set; } = 1;

View File

@ -11,12 +11,10 @@ namespace OneSTools.TechLogTestApp
{ {
static async Task Main(string[] args) static async Task Main(string[] args)
{ {
// Arrange
var folderReaderSettings = new TechLogReaderSettings() var folderReaderSettings = new TechLogReaderSettings()
{ {
LogFolder = @"C:\Users\akpaev.e.ENTERPRISE\Desktop\TechLog", LogFolder = @"C:\Users\akpaev.e.ENTERPRISE\Desktop\TechLog",
//Properties = new List<string>() { "Sql", "Context" }, AdditionalProperty = AdditionalProperty.FirstContextLine,
//AdditionalProperty = AdditionalProperty.FirstContextLine,
BatchSize = 1000, BatchSize = 1000,
BatchFactor = 2, BatchFactor = 2,
LiveMode = false LiveMode = false
@ -30,7 +28,6 @@ namespace OneSTools.TechLogTestApp
int count = 0; int count = 0;
// Act
await reader.ReadAsync(batch => await reader.ReadAsync(batch =>
{ {
count += batch.Length; count += batch.Length;
@ -41,8 +38,6 @@ namespace OneSTools.TechLogTestApp
Console.WriteLine($"Read {count} items for {stopwatch.ElapsedMilliseconds} ms."); Console.WriteLine($"Read {count} items for {stopwatch.ElapsedMilliseconds} ms.");
Console.ReadKey(); Console.ReadKey();
// Assign
} }
} }
} }