mirror of
https://github.com/akpaevj/OneSTools.TechLog.git
synced 2024-12-06 08:16:09 +02:00
Из настроек ридера удален параметр Properties
This commit is contained in:
parent
df602325b8
commit
71e52702f1
45
OneSTools.TechLog/OneSTools - Backup.TechLog.csproj
Normal file
45
OneSTools.TechLog/OneSTools - Backup.TechLog.csproj
Normal 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>
|
@ -8,8 +8,8 @@
|
||||
<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>
|
||||
<Description>Библиотека для чтения и парсинга технологического журнала 1С</Description>
|
||||
<Version>2.1.4</Version>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<PackageIcon>onestools_icon_nuget.png</PackageIcon>
|
||||
<PackageLicenseExpression></PackageLicenseExpression>
|
||||
|
@ -5,7 +5,6 @@ namespace OneSTools.TechLog
|
||||
public class TechLogFolderReaderSettings
|
||||
{
|
||||
public string Folder { get; set; } = "";
|
||||
public List<string> Properties { get; set; } = new List<string>();
|
||||
public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None;
|
||||
public bool LiveMode { get; set; } = false;
|
||||
public int ReadingTimeout { get; set; } = 1;
|
||||
|
@ -71,7 +71,6 @@ namespace OneSTools.TechLog
|
||||
var settings = new TechLogFolderReaderSettings
|
||||
{
|
||||
Folder = logFolder,
|
||||
Properties = _settings.Properties,
|
||||
AdditionalProperty = _settings.AdditionalProperty,
|
||||
LiveMode = _settings.LiveMode,
|
||||
ReadingTimeout = _settings.ReadingTimeout
|
||||
|
@ -7,7 +7,6 @@ namespace OneSTools.TechLog
|
||||
public string LogFolder { get; set; } = "";
|
||||
public int BatchSize { get; set; } = 1000;
|
||||
public int BatchFactor { get; set; } = 2;
|
||||
public List<string> Properties { get; set; } = new List<string>();
|
||||
public AdditionalProperty AdditionalProperty { get; set; } = AdditionalProperty.None;
|
||||
public bool LiveMode { get; set; } = false;
|
||||
public int ReadingTimeout { get; set; } = 1;
|
||||
|
@ -11,12 +11,10 @@ namespace OneSTools.TechLogTestApp
|
||||
{
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
// Arrange
|
||||
var folderReaderSettings = new TechLogReaderSettings()
|
||||
{
|
||||
LogFolder = @"C:\Users\akpaev.e.ENTERPRISE\Desktop\TechLog",
|
||||
//Properties = new List<string>() { "Sql", "Context" },
|
||||
//AdditionalProperty = AdditionalProperty.FirstContextLine,
|
||||
AdditionalProperty = AdditionalProperty.FirstContextLine,
|
||||
BatchSize = 1000,
|
||||
BatchFactor = 2,
|
||||
LiveMode = false
|
||||
@ -30,7 +28,6 @@ namespace OneSTools.TechLogTestApp
|
||||
|
||||
int count = 0;
|
||||
|
||||
// Act
|
||||
await reader.ReadAsync(batch =>
|
||||
{
|
||||
count += batch.Length;
|
||||
@ -41,8 +38,6 @@ namespace OneSTools.TechLogTestApp
|
||||
|
||||
Console.WriteLine($"Read {count} items for {stopwatch.ElapsedMilliseconds} ms.");
|
||||
Console.ReadKey();
|
||||
|
||||
// Assign
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user