Skip to content

Commit 94dcd01

Browse files
[SQ] improvements
1 parent 2e43de2 commit 94dcd01

19 files changed

Lines changed: 36 additions & 36 deletions

SysML2.NET.Serializer.Json/DeSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public async Task<IEnumerable<IData>> DeSerializeAsync(Stream stream, Serializat
153153
}
154154
}
155155

156-
this.logger.LogInformation($"stream deserialized asynchronously in {sw.ElapsedMilliseconds} [ms]");
156+
this.logger.LogInformation("stream deserialized asynchronously in {ElapsedMilliseconds} [ms]", sw.ElapsedMilliseconds);
157157

158158
return result;
159159
}

SysML2.NET.Serializer.Json/IDeSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="IDeSerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/ISerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="ISerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/PIM/ApiSerializationProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
2-
// <copyright file="SerializationProvider.cs" company="Starion Group S.A.">
2+
// <copyright file="ApiSerializationProvider.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/PIM/BranchDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="BranchDeserializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/PIM/BranchSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="BranchSerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/PIM/CommitDeSerializer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="CommitDeSerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -89,7 +89,7 @@ internal static Commit DeSerialize(JsonElement jsonElement, SerializationModeKin
8989
}
9090
else
9191
{
92-
logger.LogDebug($"the alias Json property was not found in the Commit: {dtoInstance.Id}");
92+
logger.LogDebug("The alias Json property was not found in the Commit: {Id}", dtoInstance.Id);
9393
}
9494

9595
if (jsonElement.TryGetProperty("created"u8, out JsonElement createdProperty))
@@ -98,7 +98,7 @@ internal static Commit DeSerialize(JsonElement jsonElement, SerializationModeKin
9898
}
9999
else
100100
{
101-
logger.LogDebug($"the created Json property was not found in the Commit: {dtoInstance.Id}");
101+
logger.LogDebug("The created Json property was not found in the Commit: {Id}", dtoInstance.Id);
102102
}
103103

104104
if (jsonElement.TryGetProperty("description"u8, out JsonElement descriptionProperty))

SysML2.NET.Serializer.Json/PIM/CommitSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="CommitSerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.Serializer.Json/PIM/DataIdentityDeSerializer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="DataIdentityDeSerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -89,7 +89,7 @@ internal static DataIdentity DeSerialize(JsonElement jsonElement, SerializationM
8989
}
9090
else
9191
{
92-
logger.LogDebug($"the alias Json property was not found in the DataIdentity: {dtoInstance.Id}");
92+
logger.LogDebug("the alias Json property was not found in the DataIdentity: {Id}", dtoInstance.Id);
9393
}
9494

9595
if (jsonElement.TryGetProperty("description"u8, out JsonElement descriptionProperty))
@@ -102,7 +102,7 @@ internal static DataIdentity DeSerialize(JsonElement jsonElement, SerializationM
102102
}
103103
else
104104
{
105-
logger.LogDebug($"the name Json property was not found in the DataIdentity: {dtoInstance.Id}");
105+
logger.LogDebug("the name Json property was not found in the DataIdentity: {Id}", dtoInstance.Id);
106106
}
107107

108108
if (jsonElement.TryGetProperty("resourceIdentifier"u8, out JsonElement resourceIdentifierProperty))
@@ -111,7 +111,7 @@ internal static DataIdentity DeSerialize(JsonElement jsonElement, SerializationM
111111
}
112112
else
113113
{
114-
logger.LogDebug($"the resourceIdentifier Json property was not found in the DataIdentity: {dtoInstance.Id}");
114+
logger.LogDebug("the resourceIdentifier Json property was not found in the DataIdentity: {Id}",dtoInstance.Id);
115115
}
116116

117117
logger.Log(LogLevel.Trace, "finish deserialization: DataIdentity");

SysML2.NET.Serializer.Json/PIM/DataIdentitySerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="DataIdentitySerializer.cs" company="Starion Group S.A.">
33
//
4-
// Copyright 2022-2025 Starion Group S.A.
4+
// Copyright 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)