-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test cases, database entities, storage fileStores
- Loading branch information
Showing
91 changed files
with
1,128 additions
and
988 deletions.
There are no files selected for viewing
134 changes: 0 additions & 134 deletions
134
Base/src/ThingsLibrary.Base/Attributes/IndexAttribute.cs
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
Base/src/ThingsLibrary.Base/DataType/Extensions/Assembly.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Reflection; | ||
using ThingsLibrary.DataType.Extensions; | ||
|
||
namespace ThingsLibrary.Base.DataType.Extensions | ||
{ | ||
public static class AssemblyExtensions | ||
{ | ||
public static string AgentString(this Assembly assembly) | ||
{ | ||
ArgumentNullException.ThrowIfNull(assembly); | ||
|
||
var name = assembly.GetCustomAttribute<AssemblyProductAttribute>()?.Product ?? throw new ArgumentNullException("Assembly Product Name"); | ||
|
||
var version = assembly.GetName()?.Version ?? throw new ArgumentNullException("Assembly File Version"); | ||
|
||
return $"{name}/{version.ToDotString()} ({Metrics.MachineMetrics.OsVersion()})"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace ThingsLibrary.Interfaces | ||
{ | ||
/// <summary> | ||
/// Basic Interface making sure the class has a standard 'PartitionKey' field | ||
/// </summary> | ||
public interface ILastEditDate | ||
{ | ||
/// <summary> | ||
/// DateTime (UTC) of last record edit | ||
/// </summary> | ||
public DateTimeOffset UpdatedOn { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Base/src/ThingsLibrary.Testing/Extensions/TestContainerOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
Database/ThingsLibrary.Database.Cosmos/ThingsLibrary.Database.Cosmos.csproj
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
Database/ThingsLibrary.Database.Mongo/ThingsLibrary.Database.Mongo.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.