Skip to content

Commit

Permalink
[C#] 0.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Dec 20, 2020
1 parent 03726fa commit 91a9a2f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
submodules: true
- name: Test
run: dotnet test -c Release -f netcoreapp3.1
run: dotnet test -c Release -f net5
- name: Generate PDF with CSharp code
if: github.event_name == 'push'
run: |
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,3 @@ ASALocalRun/

# MFractors (Xamarin productivity tool) working folder
.mfractor/

# GitHub refuses chages to .github folder at the moment
.github/
48 changes: 0 additions & 48 deletions Platform.Timestamps.csproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.1;net5</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
9 changes: 3 additions & 6 deletions csharp/Platform.Timestamps/Platform.Timestamps.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<Description>LinksPlatform's Platform.Timestamps Class Library</Description>
<Copyright>Konstantin Diachenko</Copyright>
<AssemblyTitle>Platform.Timestamps</AssemblyTitle>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionPrefix>0.2.0</VersionPrefix>
<Authors>Konstantin Diachenko</Authors>
<TargetFrameworks>net472;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net472;netstandard2.0;netstandard2.1;net5</TargetFrameworks>
<AssemblyName>Platform.Timestamps</AssemblyName>
<PackageId>Platform.Timestamps</PackageId>
<PackageTags>LinksPlatform;Timestamps;Timestamp;UniqueTimestampFactory</PackageTags>
Expand All @@ -24,10 +24,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<LangVersion>latest</LangVersion>
<PackageReleaseNotes>Lowest supported version of .NET Framework is now 4.7.2.
Platform.Interfaces dependency updated from 0.2.2 to 0.3.0.
Performance optimizations, bug fix.
Test added.</PackageReleaseNotes>
<PackageReleaseNotes>Added support for .NET 5.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
Expand Down
4 changes: 2 additions & 2 deletions csharp/Platform.Timestamps/Timestamp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ namespace Platform.Timestamps
/// </summary>
/// <remarks>
/// <para>To make this timestamp truly unique, it is recommended to use <see cref="UniqueTimestampFactory"/>.</para>
/// <para>Чтобы эта метка времени была дейстительно уникальна рекомендуется использовать <see cref="UniqueTimestampFactory"/>.</para>
/// <para>Чтобы эта метка времени была действительно уникальна рекомендуется использовать <see cref="UniqueTimestampFactory"/>.</para>
/// </remarks>
public struct Timestamp : IEquatable<Timestamp>
{
/// <summary>
/// <para>Returns a string containg the default DateTime format for Timestamp.</para>
/// <para>Returns a string containing the default DateTime format for Timestamp.</para>
/// <para>Возвращает строку, содержащую формат даты и времени по умолчанию для метки времени.</para>
/// </summary>
public static readonly string DefaultFormat = "yyyy.MM.dd hh:mm:ss.fffffff";
Expand Down
2 changes: 1 addition & 1 deletion csharp/Platform.Timestamps/UniqueTimestampFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class UniqueTimestampFactory : IFactory<Timestamp>

/// <summary>
/// <para>Creates a timestamp corresponding to the current UTC date and time or next unique timestamp.</para>
/// <para>Создаёт отмеку времени соответствующую текущей дате и времени по UTC или следующую уникальную отметку времени.</para>
/// <para>Создаёт отметку времени соответствующую текущей дате и времени по UTC или следующую уникальную отметку времени.</para>
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Timestamp Create()
Expand Down

0 comments on commit 91a9a2f

Please sign in to comment.