Skip to content

Commit 53f033f

Browse files
committed
adding class type fullname to AD memcache object
1 parent bfa07b1 commit 53f033f

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

rls/API.Library.dll

0 Bytes
Binary file not shown.

rls/API.Library.pdb

-84 Bytes
Binary file not shown.

rls/packages/API.Library.6.1.8.nupkg

68.4 KB
Binary file not shown.

src/API.Library/API.Library.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<PackageId>API.Library</PackageId>
1212
<Product>API Library</Product>
1313
<Copyright>Central Statistics Office, Ireland</Copyright>
14-
<Version>6.1.7</Version>
14+
<Version>6.1.8</Version>
1515
<Authors>Central Statistics Office, Ireland</Authors>
1616
<SignAssembly>False</SignAssembly>
1717
<RepositoryUrl>https://github.com/CSOIreland/Server-API-Library</RepositoryUrl>
1818
<PackageReleaseNotes>
19-
- [ENHANCEMENT] when instantiating memcacheD class check to determine if memcache is available. If its not log a fatal message
19+
- [ENHANCEMENT] adding class type fullname to AD memcache object
2020
</PackageReleaseNotes>
2121
</PropertyGroup>
2222

src/API.Library/Entities/ActiveDirectory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ private IDictionary<string, dynamic> GetDirectory<T>() where T : UserPrincipal
8181
inputDTO.password = ApiServicesHelper.ApiConfiguration.Settings["API_AD_PASSWORD"];
8282
inputDTO.custom_properties = ApiServicesHelper.ApiConfiguration.Settings["API_AD_CUSTOM_PROPERTIES"];
8383
inputDTO.blacklist_ous = ApiServicesHelper.ApiConfiguration.Settings["API_AD_BLACKLIST_OUS"];
84-
84+
inputDTO.type = typeof(T).FullName;
85+
8586
MemCachedD_Value adCache = ApiServicesHelper.CacheD.Get_BSO<dynamic>("API", "ActiveDirectory", "GetDirectory", Utility.GetSHA256(Utility.JsonSerialize_IgnoreLoopingReference(inputDTO)));
8687
if (adCache.hasData)
8788
return adCache.data.ToObject<Dictionary<string, dynamic>>();

0 commit comments

Comments
 (0)