Hmm, not in my version from nuget.
public static bool Initialize(string applicationName) => InterceptorCore.Initialize(applicationName, string.Empty);
public static bool Initialize(string applicationName, string serverName)
{
bool flag = true;
string appSetting = ConfigurationManager.AppSettings[ApplicationConstants.OrmProfilerEnableConfigSettingName];
if (appSetting != null)
{
try
{
flag = XmlConvert.ToBoolean(appSetting);
}
catch
{
}
}
if (flag)
{
string str = string.IsNullOrEmpty(applicationName) ? AppDomain.CurrentDomain.FriendlyName : applicationName;
InterceptorCore.OverwriteDbProviderFactories();
InterceptorCore.ApplicationName = str;
InterceptorCore.ApplicationInstanceId = Guid.NewGuid();
string pipeName = ApplicationConstants.NamedPipeName;
if (!string.IsNullOrEmpty(serverName))
pipeName = string.Format("\\{0}\\{1}", (object) serverName, (object) pipeName);
MessageDispatcher.RegisterNamedPipeChannel(pipeName);
}
return flag;
}
public static Type Initialize(
string applicationName,
string serverName,
Type factoryTypeToWrap)
{
ArgumentVerifier.CantBeNull((object) factoryTypeToWrap, nameof (factoryTypeToWrap));
string str = string.IsNullOrEmpty(applicationName) ? AppDomain.CurrentDomain.FriendlyName : applicationName;
Type type = typeof (ProfilerDbProviderFactory<>).MakeGenericType(factoryTypeToWrap);
InterceptorCore.ApplicationName = str;
InterceptorCore.ApplicationInstanceId = Guid.NewGuid();
string pipeName = ApplicationConstants.NamedPipeName;
if (!string.IsNullOrEmpty(serverName))
pipeName = string.Format("\\{0}\\{1}", (object) serverName, (object) pipeName);
MessageDispatcher.RegisterNamedPipeChannel(pipeName);
return type;
}