Skip to content

Commit e3628ae

Browse files
committed
Update for v9.2 and #3
1 parent 68241ab commit e3628ae

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

Plugin/CanaryTracer.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public static void TraceContext(this ITracingService tracingservice, IExecutionC
4141
{
4242
try
4343
{
44-
tracingservice.TraceContext(context, parentcontext, attributetypes, convertqueries, expandcollections,
45-
service, 1);
44+
tracingservice.TraceContext(context, parentcontext, attributetypes, convertqueries, expandcollections, service, 1);
4645
}
4746
catch (Exception ex)
4847
{
@@ -113,12 +112,16 @@ public static string ValueToString(object value, bool attributetypes, bool conve
113112
else if (value is EntityCollection collection)
114113
{
115114
var result = $"{collection.EntityName} collection\n Records: {collection.Entities.Count}\n TotalRecordCount: {collection.TotalRecordCount}\n MoreRecords: {collection.MoreRecords}\n PagingCookie: {collection.PagingCookie}";
116-
if (expandcollections)
115+
if (expandcollections && collection.Entities.Count > 0)
117116
{
118-
result += $"\n{indentstring} {string.Join($"\n{indentstring}", collection.Entities.Select(e => ValueToString(e, attributetypes, convertqueries, expandcollections, service, indent + 1)))}";
117+
result += "\n" + ValueToString(collection.Entities, attributetypes, convertqueries, expandcollections, service, indent + 1);
119118
}
120119
return result;
121120
}
121+
else if (value is IEnumerable<Entity> entities)
122+
{
123+
return expandcollections ? $"{indentstring}{string.Join($"\n{indentstring}", entities.Select(e => ValueToString(e, attributetypes, convertqueries, expandcollections, service, indent + 1)))}" : string.Empty;
124+
}
122125
else if (value is Entity entity)
123126
{
124127
var keylen = entity.Attributes.Count > 0 ? entity.Attributes.Max(p => p.Key.Length) : 50;
@@ -167,4 +170,4 @@ public static void Write(this ITracingService tracer, string text)
167170
tracer.Trace(DateTime.Now.ToString("HH:mm:ss.fff ") + text);
168171
}
169172
}
170-
}
173+
}

Plugin/Plugin.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>Rappen.Canary365.Plugin</RootNamespace>
1111
<AssemblyName>Rappen.Canary365.Plugin</AssemblyName>
12-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
@@ -34,7 +34,7 @@
3434
<SignAssembly>true</SignAssembly>
3535
</PropertyGroup>
3636
<PropertyGroup>
37-
<AssemblyOriginatorKeyFile>Rappen.pfx</AssemblyOriginatorKeyFile>
37+
<AssemblyOriginatorKeyFile>Rappen free.snk</AssemblyOriginatorKeyFile>
3838
</PropertyGroup>
3939
<ItemGroup>
4040
<Reference Include="Microsoft.Crm.Sdk.Proxy, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
@@ -70,7 +70,7 @@
7070
</ItemGroup>
7171
<ItemGroup>
7272
<None Include="packages.config" />
73-
<None Include="Rappen.pfx" />
73+
<None Include="Rappen free.snk" />
7474
</ItemGroup>
7575
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7676
</Project>

Plugin/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("Rappen")]
1111
[assembly: AssemblyProduct("RappTracer365")]
12-
[assembly: AssemblyCopyright("Copyright © Jonas Rapp 2017-2020")]
12+
[assembly: AssemblyCopyright("Copyright © Jonas Rapp 2017-2021")]
1313
[assembly: AssemblyTrademark("")]
1414
[assembly: AssemblyCulture("")]
1515

@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("9.1.0.4")]
35-
[assembly: AssemblyFileVersion("9.1.0.4")]
34+
[assembly: AssemblyVersion("9.1.0.5")]
35+
[assembly: AssemblyFileVersion("9.1.0.5")]

Plugin/Rappen free.snk

596 Bytes
Binary file not shown.

Solution/RappCanary_9_2_0_5.zip

9.01 KB
Binary file not shown.
9 KB
Binary file not shown.

0 commit comments

Comments
 (0)