Skip to content

Commit 19b812e

Browse files
Dmitry KovalDmitry Koval
authored andcommitted
switch from .NET Core 3.1 to ,NET Standard 2.0
1 parent 8df2db9 commit 19b812e

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

route4me-csharp-sdk/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## [1.1.0.0] - 2021-10-07
4+
## [1.1.1.0] - 2021-10-28
5+
6+
### Changed
7+
8+
- Route4MeSDKLibrary is Switched from .NET Core 3.1 to .NET Standard 2.0.
9+
- Threading is optimized for Route4MeManager and Route4MeManagerV5
10+
- 3rd party dependencies are updated and consolidated
11+
- Code style is adjusted
12+
- Code is cleaned up
13+
14+
## [1.1.0.0] - 2021-10-20
515

616
### Added
717

route4me-csharp-sdk/Route4MeSDKLibrary/FastProcessing/FastBulkRemoveContacts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private void RemoveContactsChunks(List<int> chunk)
5757
if (PrintMessagesOnConsole)
5858
Console.WriteLine(removed
5959
? $"The chunk of the {chunk.Count} contacts removed --- {TotalRemovedContacts}"
60-
: $"Cannot remove the chunk of the contacts: {Environment.NewLine}" + string.Join(',', chunk));
60+
: $"Cannot remove the chunk of the contacts: {Environment.NewLine}" + string.Join(",", chunk.Select(x => x.ToString())));
6161

6262
if (removed) TotalRemovedContacts += chunk.Count;
6363
}

route4me-csharp-sdk/Route4MeSDKLibrary/HttpClientHolderManager.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,13 @@ private static void OnTimerCallback()
8181
keysToRemove.Add(kvp.Key);
8282

8383
foreach (var key in keysToRemove)
84-
if (HttpClientWrappers.Remove(key, out var removed))
84+
{
85+
if (HttpClientWrappers.TryGetValue(key, out var removed))
86+
{
87+
HttpClientWrappers.Remove(key);
8588
removed.HttpClient.Dispose();
89+
}
90+
}
8691
}
8792
}
8893

route4me-csharp-sdk/Route4MeSDKLibrary/Route4MeSDKLibrary.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<Authors>Oleg Guchashvili</Authors>
66
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
77
<Description>Route4Me Route Optimization SaaS C# SDK (.net core framework).
@@ -16,13 +16,13 @@ The service is typically used by organizations who must route many drivers to ma
1616
<RepositoryUrl>https://github.com/route4me/route4me-net-core/tree/master/route4me-csharp-sdk</RepositoryUrl>
1717
<RepositoryType>git</RepositoryType>
1818
<PackageTags>Route4Me, Route Optimization, SDK, GIS</PackageTags>
19-
<Version>1.1.0.0</Version>
19+
<Version>1.1.1.0</Version>
2020
<PackageReleaseNotes>Changed the classes: DataContractResolver, FastBulkGeocoding, FastFileReading, PropertyValidation, Route4MeManagerV5
2121
Added the classes: AddressBookContact (V5), AddressBookContactsResponse (V5), AddressBookParameters (V5), FastFileReading, FastValidateData
2222

2323
See https://github.com/route4me/route4me-net-core/blob/master/route4me-csharp-sdk/CHANGELOG.md for release note details.</PackageReleaseNotes>
24-
<AssemblyVersion>1.1.0.0</AssemblyVersion>
25-
<FileVersion>1.1.0.0</FileVersion>
24+
<AssemblyVersion>1.1.1.0</AssemblyVersion>
25+
<FileVersion>1.1.1.0</FileVersion>
2626
</PropertyGroup>
2727

2828
<ItemGroup>
@@ -37,6 +37,7 @@ See https://github.com/route4me/route4me-net-core/blob/master/route4me-csharp-sd
3737
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
3838
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
3939
<PackageReference Include="SocketIoClientDotNet.Standard" Version="0.0.6" />
40+
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
4041
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
4142
</ItemGroup>
4243

0 commit comments

Comments
 (0)