Skip to content

Commit c14ce4c

Browse files
[Implement] SQ improvements
1 parent 8dc0fbd commit c14ce4c

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

CDP4Common/Extensions/GuidExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static Guid FromShortGuid(this string shortGuid)
102102
/// </returns>
103103
/// <remarks>
104104
/// A ShortGuid is a base64 encoded guid-string representation where any "/" has been replaced with a "_"
105-
/// and any "+" has been replaced with a "-" (to make the string representation <see cref=".Uri" /> friendly)
105+
/// and any "+" has been replaced with a "-" (to make the string representation <see cref="Uri" /> friendly)
106106
/// A ShortGuid Array is a string that starts with "[", ends with "]" and contains a number of ShortGuid separated by a ";"
107107
/// </remarks>
108108
/// <exception cref="ArgumentException">

CDP4Common/Extensions/IRuleVerificationExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public static class IRuleVerificationExtensions
3636
/// <summary>
3737
/// Returns a human readable string of a <see cref="Thing"/> to identify a <see cref="Thing"/> in RuleVerification text
3838
/// </summary>
39-
/// <typeparam name="T">Any type</typeparam>
4039
/// <param name="value">The <see cref="IRuleVerification"/> to check</param>
4140
/// <param name="thing">The <see cref="Thing"/></param>
4241
/// <returns>The human readable identifier</returns>

CDP4Common/Helpers/NestedElementTreeGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ private NestedParameter CreatedNestedParameter(ParameterOrOverrideBase parameter
691691
{
692692
actualValue = valueSet.ActualValue == null ? "-" : valueSet.ActualValue[componentIndex];
693693
}
694-
catch (ArgumentOutOfRangeException e)
694+
catch (ArgumentOutOfRangeException)
695695
{
696696
actualValue = "-";
697697
}
@@ -702,7 +702,7 @@ private NestedParameter CreatedNestedParameter(ParameterOrOverrideBase parameter
702702
{
703703
formula = valueSet.Formula == null ? "-" : valueSet.Formula[componentIndex];
704704
}
705-
catch (Exception e)
705+
catch (Exception)
706706
{
707707
formula = "-";
708708
}
@@ -754,7 +754,7 @@ private NestedParameter CreateNestedParameter(ParameterSubscription subscription
754754
{
755755
actualValue = valueSet.ActualValue == null ? "-" : valueSet.ActualValue[componentIndex];
756756
}
757-
catch (ArgumentOutOfRangeException e)
757+
catch (ArgumentOutOfRangeException)
758758
{
759759
actualValue = "-";
760760
}

CDP4Common/Types/ValueArray.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ValueArray(Thing container)
6868
/// Initializes a new instance of the <see cref="ValueArray{T}"/> class.
6969
/// </summary>
7070
/// <param name="initializationCollection">
71-
/// Collection to initialize this <see cref="Collection{T}"/>.
71+
/// Collection to initialize this <see cref="IEnumerable{T}"/>.
7272
/// </param>
7373
public ValueArray(IEnumerable<T> initializationCollection)
7474
{
@@ -79,7 +79,7 @@ public ValueArray(IEnumerable<T> initializationCollection)
7979
/// Initializes a new instance of the <see cref="ValueArray{T}"/> class.
8080
/// </summary>
8181
/// <param name="initializationCollection">
82-
/// Collection to initialize this <see cref="Collection{T}"/>.
82+
/// Collection to initialize this <see cref="IEnumerable{T}"/>.
8383
/// </param>
8484
/// <param name="container">The container of this <see cref="ValueArray{T}"/></param>
8585
public ValueArray(IEnumerable<T> initializationCollection, Thing container)

CDP4ServicesDal/CdpServicesDal.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ namespace CDP4ServicesDal
4444
using CDP4Common.CommonData;
4545
using CDP4Common.DTO;
4646
using CDP4Common.Extensions;
47+
4748
using CDP4DalCommon.Tasks;
4849

4950
using CDP4Dal;
@@ -62,7 +63,6 @@ namespace CDP4ServicesDal
6263
using EngineeringModelSetup = CDP4Common.SiteDirectoryData.EngineeringModelSetup;
6364
using Thing = CDP4Common.DTO.Thing;
6465
using UriExtensions = CDP4Dal.UriExtensions;
65-
using System.Runtime.InteropServices;
6666

6767
/// <summary>
6868
/// The purpose of the <see cref="CdpServicesDal"/> is to provide the Data Access Layer for CDP4 ECSS-E-TM-10-25
@@ -222,9 +222,7 @@ public override async Task<IEnumerable<Thing>> Write(OperationContainer operatio
222222

223223
deserializationWatch.Stop();
224224

225-
Guid iterationId;
226-
227-
if (this.TryExtractIterationIdfromUri(httpResponseMessage.RequestMessage.RequestUri, out iterationId))
225+
if (this.TryExtractIterationIdfromUri(httpResponseMessage.RequestMessage.RequestUri, out var iterationId))
228226
{
229227
this.SetIterationContainer(result, iterationId);
230228
}
@@ -1023,10 +1021,6 @@ public override async Task<IEnumerable<Thing>> CherryPick(Guid engineeringModelI
10231021
/// <param name="injectedClient">
10241022
/// The injected <see cref="HttpClient"/> that will be used to created the returned <see cref="HttpClient"/>
10251023
/// </param>
1026-
/// <param name="trustAllSSL">
1027-
/// The value that indicates whether all SSL certificates are trusted or not. If false, then only properly signed
1028-
/// SSL certs are accepted
1029-
/// </param>
10301024
/// <returns>
10311025
/// An instance of <see cref="HttpClient"/> with the DefaultRequestHeaders set
10321026
/// </returns>

0 commit comments

Comments
 (0)