Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maxargs #557

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 95 additions & 5 deletions src/Extensions.Base.Api/BeginCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

//==============================================
//This file is autogenerated
//==============================================
// ==============================================
// This file is autogenerated
// ==============================================

namespace Microsoft.Diagnostics.Instrumentation.Extensions.Base
{
Expand All @@ -26,6 +26,14 @@ internal class BCB<T>
public static int Lock4;
public static int Lock5;
public static int Lock6;
public static int Lock7;
public static int Lock8;
public static int Lock9;
public static int Lock10;
public static int Lock11;
public static int Lock12;
public static int Lock13;
public static int Lock14;

internal static Dictionary<int, Func<object>>
callbacks0 = new Dictionary<int, Func<object>>();
Expand All @@ -41,13 +49,31 @@ internal static Dictionary<int, Func<object, object, object, object, object, obj
callbacks5 = new Dictionary<int, Func<object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object>>
callbacks6 = new Dictionary<int, Func<object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object>>
callbacks7 = new Dictionary<int, Func<object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object>>
callbacks8 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object>>
callbacks9 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object>>
callbacks10 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object>>
callbacks11 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object>>
callbacks12 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object>>
callbacks13 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object>>();
internal static Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object, object>>
callbacks14 = new Dictionary<int, Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object, object>>();
}

}

//Underscore _System assembly will be treated as regular System namespace by ImportModule function of Instrumentation Engine.
//This is done to avoid conflicts during compilation
// Underscore _System assembly will be treated as regular System namespace by ImportModule function of Instrumentation Engine.
// This is done to avoid conflicts during compilation
#pragma warning disable CS3008 // Identifier is not CLS-compliant
namespace _System.Diagnostics
#pragma warning restore CS3008 // Identifier is not CLS-compliant
{
using Microsoft.Diagnostics.Instrumentation.Extensions.Base;
using System;
Expand Down Expand Up @@ -114,6 +140,70 @@ public static object ApplicationInsights_OnBegin(int methodId, object arg0, obje
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
{
Func<object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks7.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)
{
Func<object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks8.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)
{
Func<object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks9.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)
{
Func<object, object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks10.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10)
{
Func<object, object, object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks11.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11)
{
Func<object, object, object, object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks12.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12)
{
Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks13.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
else
return null;
}
public static object ApplicationInsights_OnBegin(int methodId, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, object arg11, object arg12, object arg13)
{
Func<object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> func = null;
if (BCB<int>.callbacks14.TryGetValue(methodId, out func) && (func != null))
return func(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
else
return null;
}
}
}

12 changes: 6 additions & 6 deletions src/Extensions.Base.Api/BeginCallbacks.tt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<#@ output extension=".cs" #>

<#
var maxargs = 7;
var maxargs = 15;
var argsComma = new Dictionary<int, string>();
var argsDef = new Dictionary<int, string>();
var argsDefWithName = new Dictionary<int, string>();
Expand Down Expand Up @@ -43,9 +43,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

//==============================================
//This file is autogenerated
//==============================================
// ==============================================
// This file is autogenerated
// ==============================================

namespace Microsoft.Diagnostics.Instrumentation.Extensions.Base
{
Expand Down Expand Up @@ -78,8 +78,8 @@ namespace Microsoft.Diagnostics.Instrumentation.Extensions.Base

}

//Underscore _System assembly will be treated as regular System namespace by ImportModule function of Instrumentation Engine.
//This is done to avoid conflicts during compilation
// Underscore _System assembly will be treated as regular System namespace by ImportModule function of Instrumentation Engine.
// This is done to avoid conflicts during compilation
#pragma warning disable CS3008 // Identifier is not CLS-compliant
namespace _System.Diagnostics
#pragma warning restore CS3008 // Identifier is not CLS-compliant
Expand Down
Loading