-
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.
- Loading branch information
Showing
16 changed files
with
405 additions
and
286 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@ECHO OFF | ||
CLS | ||
|
||
..\src\.nuget\nuget Pack iEEDID.1.0.5.nuspec -NoDefaultExcludes -NoPackageAnalysis -OutputDirectory ..\deployment\nuget | ||
..\src\.nuget\nuget Pack iEEDID.1.0.6.nuspec -NoDefaultExcludes -NoPackageAnalysis -OutputDirectory ..\deployment\nuget | ||
|
||
pause | ||
|
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
12 changes: 12 additions & 0 deletions
12
...ore/iTin.Core.Hardware/iTin.Core.Hardware.Common/ComponentModel/PropertyItemDictionary.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,12 @@ | ||
| ||
namespace iTin.Core.Hardware.Common.ComponentModel | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Define a suitable generic dictionary to store properties and their position inside a collection. | ||
/// </summary> | ||
public class PropertyItemDictionary : Dictionary<int, PropertyItem> | ||
{ | ||
} | ||
} |
File renamed without changes.
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
109 changes: 109 additions & 0 deletions
109
...Core.Hardware/iTin.Core.Hardware.Common/Property/Results/QueryPropertyDictionaryResult.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,109 @@ | ||
| ||
namespace iTin.Core.Hardware.Common | ||
{ | ||
using System.Collections.Generic; | ||
|
||
using iTin.Core.ComponentModel; | ||
|
||
using ComponentModel; | ||
|
||
/// <summary> | ||
/// Specialization of <see cref="ResultBase{T}"/> interface.<br/> | ||
/// Where <c>T</c> is <see cref="PropertyItemDictionary"/>.<br/> | ||
/// Represents result after query operation. | ||
/// </summary> | ||
public class QueryPropertyDictionaryResult : ResultBase<PropertyItemDictionary> | ||
{ | ||
/// <summary> | ||
/// Returns a new <see cref="QueryPropertyDictionaryResult"/> with specified detailed error. | ||
/// </summary> | ||
/// <param name="message">Error message</param> | ||
/// <param name="code">Error code</param> | ||
/// <returns> | ||
/// A new invalid <see cref="QueryPropertyDictionaryResult"/> with specified detailed error. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult CreateErroResult(string message, string code = "") => CreateErroResult(new IResultError[] { new ResultError { Code = code, Message = message } }); | ||
|
||
/// <summary> | ||
/// Returns a new <see cref="QueryPropertyDictionaryResult"/> with specified detailed error. | ||
/// </summary> | ||
/// <param name="message">Error message</param> | ||
/// <param name="value">Result value</param> | ||
/// <param name="code">Error code</param> | ||
/// <returns> | ||
/// A new invalid <see cref="QueryPropertyDictionaryResult"/> with specified detailed error. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult CreateErroResult(string message, PropertyItemDictionary value, string code = "") => CreateErroResult(new IResultError[] { new ResultError { Code = code, Message = message } }, value); | ||
|
||
/// <summary> | ||
/// Returns a new <see cref="QueryPropertyDictionaryResult"/> with specified detailed errors collection. | ||
/// </summary> | ||
/// <param name="errors">A errors collection</param> | ||
/// <returns> | ||
/// A new invalid <see cref="QueryPropertyDictionaryResult"/> with specified detailed errors collection. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult CreateErroResult(IResultError[] errors) => | ||
new QueryPropertyDictionaryResult | ||
{ | ||
Value = default, | ||
Success = false, | ||
Errors = (IResultError[])errors.Clone() | ||
}; | ||
|
||
/// <summary> | ||
/// Returns a new <see cref="QueryPropertyDictionaryResult"/> with specified detailed errors collection. | ||
/// </summary> | ||
/// <param name="errors">A errors collection</param> | ||
/// <param name="value">Result value</param> | ||
/// <returns> | ||
/// A new invalid <see cref="QueryPropertyDictionaryResult"/> with specified detailed errors collection. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult CreateErroResult(IResultError[] errors, PropertyItemDictionary value) => | ||
new QueryPropertyDictionaryResult | ||
{ | ||
Value = value, | ||
Success = false, | ||
Errors = (IResultError[])errors.Clone() | ||
}; | ||
|
||
/// <summary> | ||
/// Returns a new success result. | ||
/// </summary> | ||
/// <param name="value">Result value</param> | ||
/// <returns> | ||
/// A new valid <see cref="QueryPropertyDictionaryResult"/>. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult CreateSuccessResult(PropertyItemDictionary value) => | ||
new QueryPropertyDictionaryResult | ||
{ | ||
Value = value, | ||
Success = true, | ||
Errors = new List<IResultError>() | ||
}; | ||
|
||
/// <summary> | ||
/// Creates a new <see cref="QueryPropertyDictionaryResult"/> instance from known exception. | ||
/// </summary> | ||
/// <param name="exception">Target exception.</param> | ||
/// <returns> | ||
/// A new <see cref="QueryPropertyDictionaryResult"/> instance for specified exception. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult FromException(System.Exception exception) => FromException(exception, default); | ||
|
||
/// <summary> | ||
/// Creates a new <see cref="QueryPropertyDictionaryResult"/> instance from known exception. | ||
/// </summary> | ||
/// <param name="exception">Target exception.</param> | ||
/// <param name="value">Result value</param> | ||
/// <returns> | ||
/// A new <see cref="QueryPropertyDictionaryResult"/> instance for specified exception. | ||
/// </returns> | ||
public new static QueryPropertyDictionaryResult FromException(System.Exception exception, PropertyItemDictionary value) => | ||
new QueryPropertyDictionaryResult | ||
{ | ||
Value = value, | ||
Success = false, | ||
Errors = new List<IResultError> { new ResultExceptionError { Exception = exception } } | ||
}; | ||
} | ||
} |
14 changes: 9 additions & 5 deletions
14
...t/iTin.Core/iTin.Core.Hardware/iTin.Core.Hardware.Common/iTin.Core.Hardware.Common.csproj
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
14 changes: 9 additions & 5 deletions
14
....Specification/iTin.Hardware.Specification.Eedid/iTin.Hardware.Specification.Eedid.csproj
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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net461;netcoreapp2.1;netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile> | ||
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Version>1.0.0.0</Version> | ||
<Description>Logging library</Description> | ||
<Copyright>Copyright © 2020</Copyright> | ||
<PackageProjectUrl></PackageProjectUrl> | ||
<AssemblyName>iTin.Logging</AssemblyName> | ||
<PackageId>iTin.Logging</PackageId> | ||
<Version>1.0.0.0</Version> | ||
<Authors>iTin</Authors> | ||
<Company>iTin</Company> | ||
<Product>iTin.Logging</Product> | ||
<Description>Logging library</Description> | ||
<Copyright>Copyright © 2020</Copyright> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\..\..\.editorconfig" Link=".editorconfig" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.