|
3 | 3 |
|
4 | 4 | using System; |
5 | 5 | using System.Collections.Generic; |
| 6 | +using System.Diagnostics.CodeAnalysis; |
6 | 7 | using System.Diagnostics.Tracing; |
7 | 8 | using System.Linq; |
8 | 9 | using System.Reflection; |
@@ -385,6 +386,7 @@ public virtual void PeekMessageStart(string identifier, long? sequenceNumber, in |
385 | 386 |
|
386 | 387 | [NonEvent] |
387 | 388 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 389 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
388 | 390 | private unsafe void PeekMessageStartCore(int eventId, string identifier, long? sequenceNumber, int messageCount) |
389 | 391 | { |
390 | 392 | fixed (char* identifierPtr = identifier) |
@@ -1094,6 +1096,7 @@ private void ProcessorMessageHandlerExceptionCore(string identifier, long sequen |
1094 | 1096 |
|
1095 | 1097 | [NonEvent] |
1096 | 1098 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1099 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1097 | 1100 | private unsafe void ProcessorMessageHandlerExceptionCore(int eventId, string identifier, long sequenceNumber, string exception, string lockToken) |
1098 | 1101 | { |
1099 | 1102 | fixed (char* identifierPtr = identifier) |
@@ -1254,6 +1257,7 @@ public virtual void LinkStateLost(string identifier, string receiveLinkName, str |
1254 | 1257 |
|
1255 | 1258 | [NonEvent] |
1256 | 1259 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1260 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1257 | 1261 | private unsafe void LinkStateLostCore(int eventId, string identifier, string receiveLinkName, string receiveLinkState, bool isSessionReceiver, string exception) |
1258 | 1262 | { |
1259 | 1263 | fixed (char* identifierPtr = identifier) |
@@ -1807,6 +1811,7 @@ public void TransactionDischarged(string transactionId, string amqpTransactionId |
1807 | 1811 |
|
1808 | 1812 | [NonEvent] |
1809 | 1813 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1814 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1810 | 1815 | private unsafe void TransactionDischargedCore(int eventId, string transactionId, string amqpTransactionId, bool rollback) |
1811 | 1816 | { |
1812 | 1817 | fixed (char* transactionIdPtr = transactionId) |
@@ -1909,6 +1914,7 @@ public virtual void PartitionKeyOverwritten(string partitionKey, string sessionI |
1909 | 1914 | /// <param name="arg3">The third argument.</param> |
1910 | 1915 | [NonEvent] |
1911 | 1916 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1917 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1912 | 1918 | private unsafe void WriteEvent(int eventId, string arg1, int arg2, string arg3) |
1913 | 1919 | { |
1914 | 1920 | fixed (char* arg1Ptr = arg1) |
@@ -1940,6 +1946,7 @@ private unsafe void WriteEvent(int eventId, string arg1, int arg2, string arg3) |
1940 | 1946 | /// <param name="arg3">The third argument.</param> |
1941 | 1947 | [NonEvent] |
1942 | 1948 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1949 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1943 | 1950 | private unsafe void WriteEvent(int eventId, string arg1, long arg2, string arg3) |
1944 | 1951 | { |
1945 | 1952 | fixed (char* arg1Ptr = arg1) |
@@ -1971,6 +1978,7 @@ private unsafe void WriteEvent(int eventId, string arg1, long arg2, string arg3) |
1971 | 1978 | /// <param name="arg4">The fourth argument.</param> |
1972 | 1979 | [NonEvent] |
1973 | 1980 | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 1981 | + [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026", Justification = EventSourceSuppressMessage)] |
1974 | 1982 | private unsafe void WriteEvent(int eventId, string arg1, string arg2, string arg3, string arg4) |
1975 | 1983 | { |
1976 | 1984 | fixed (char* arg1Ptr = arg1) |
|
0 commit comments