File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Source/Adobe.Target.Client/Util Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1010 */
1111namespace Adobe . Target . Client . Util
1212{
13+ using System . Reflection ;
14+
1315 /// <summary>
1416 /// Target Constants
1517 /// </summary>
1618 public static class TargetConstants
1719 {
18- /// <summary>
19- /// SDK Version
20- /// </summary>
21- public const string SdkVersion = "1.0.2" ;
22-
2320 /// <summary>
2421 /// Mbox cookie name
2522 /// </summary>
@@ -60,9 +57,19 @@ public static class TargetConstants
6057 /// </summary>
6158 public const string DefaultSdidConsumerId = "target-global-mbox" ;
6259
60+ /// <summary>
61+ /// SDK Version
62+ /// </summary>
63+ public static readonly string SdkVersion = Assembly . GetEntryAssembly ( )
64+ ! . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( )
65+ ! . InformationalVersion ;
66+
6367 internal const string SdkNameHeader = "X-EXC-SDK" ;
68+
6469 internal const string SdkNameValue = "AdobeTargetNet" ;
70+
6571 internal const string SdkVersionHeader = "X-EXC-SDK-Version" ;
72+
6673 internal static readonly string SdkUserAgent = $ "{ SdkNameValue } /{ SdkVersion } ";
6774 }
6875}
You can’t perform that action at this time.
0 commit comments