Skip to content
This repository was archived by the owner on Nov 18, 2017. It is now read-only.

Commit 13c7005

Browse files
enable strong naming
1 parent b0b94f4 commit 13c7005

7 files changed

Lines changed: 39 additions & 23 deletions

File tree

src/NLog.StructuredEvents/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
// COM, set the ComVisible attribute to true on that type.
1717
[assembly: ComVisible(false)]
1818

19-
[assembly: InternalsVisibleTo("NLog.StructuredEvents.Tests")]
19+
//not sure if working
20+
[assembly: InternalsVisibleTo("NLog.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ef8eab4fbdeb511eeb475e1659fe53f00ec1c1340700f1aa347bf3438455d71993b28b1efbed44c8d97a989e0cb6f01bcb5e78f0b055d311546f63de0a969e04cf04450f43834db9f909e566545a67e42822036860075a1576e90e1c43d43e023a24c22a427f85592ae56cac26f13b7ec2625cbc01f9490d60f16cfbb1bc34d9")]

src/NLog.StructuredEvents/Serialization/SerializationManager.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,7 @@ public void SaveSerializerFunc<T>(Func<T, IFormatProvider, string> func)
6161
SaveSerializer(typeof(T), new FuncSerializer<T>(func));
6262
}
6363

64-
/// <summary>
65-
/// Helper for testing
66-
/// </summary>
67-
/// <param name="value"></param>
68-
/// <returns></returns>
69-
internal string SerializeObject(object value)
70-
{
71-
var sb = new StringBuilder();
72-
73-
SerializeObject(sb, value, CultureInfo.InvariantCulture);
74-
return sb.ToString();
75-
}
64+
7665

7766
/// <summary>
7867
/// Serialize an object

src/NLog.StructuredEvents/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"net35": {
3030
}
3131
}
32-
//,
33-
//"buildOptions": {
34-
// "keyFile": "NLog.snk",
35-
// "xmlDoc": false
32+
,
33+
"buildOptions": {
34+
"keyFile": "NLog.snk",
35+
"xmlDoc": false
3636

37-
//}
37+
}
3838
}
-596 Bytes
Binary file not shown.
596 Bytes
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Globalization;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using NLog.StructuredEvents.Serialization;
8+
9+
namespace NLog.StructuredEvents.Tests
10+
{
11+
public static class TestExt
12+
{
13+
/// <summary>
14+
/// Helper for testing
15+
/// </summary>
16+
/// <param name="value"></param>
17+
/// <returns></returns>
18+
internal static string SerializeObject(this SerializationManager manager, object value)
19+
{
20+
var sb = new StringBuilder();
21+
22+
manager.SerializeObject(sb, value, CultureInfo.InvariantCulture);
23+
return sb.ToString();
24+
}
25+
}
26+
}

test/NLog.StructuredEvents.Tests/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
}
2626
}
2727
}
28-
//,
29-
//"buildOptions": {
30-
// "keyFile": "NLog.snk",
31-
// "xmlDoc": false
28+
,
29+
"buildOptions": {
30+
"keyFile": "NLogTests.snk",
31+
"xmlDoc": false
3232

33-
//}
33+
}
3434
}

0 commit comments

Comments
 (0)