Skip to content

Commit

Permalink
Revert "Updated InterApp to 1.0.1.1."
Browse files Browse the repository at this point in the history
This reverts commit 7d6c001.
  • Loading branch information
ThomasRemmery committed May 29, 2024
1 parent 7d6c001 commit 3caa9d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ConnectorAPI.EVS.IPD-VIA/ConnectorAPI.EVS.IPD-VIA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Skyline.DataMiner.Core.InterAppCalls.Common" Version="1.0.1.1" />
<PackageReference Include="Skyline.DataMiner.Core.InterAppCalls.Common" Version="1.0.0.3" />
</ItemGroup>
</Project>
7 changes: 7 additions & 0 deletions ConnectorAPI.EVS.IPD-VIA/EvsIpdViaElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public class EvsIpdViaElement
/// </summary>
public const int InterAppReceive_ParameterId = 9000000;

/// <summary>
/// ID of the parameter in the EVS IPD VIA protocol that's used to return outgoing InterApp messages.
/// </summary>
public const int InterAppReturn_ParameterId = 9000001;

private readonly IConnection connection;
private readonly IDmsElement element;

Expand Down Expand Up @@ -266,6 +271,8 @@ private bool TrySendMessage<T>(Message message, bool requiresResponse, out strin
{
if (requiresResponse)
{
commands.ReturnAddress = new ReturnAddress(element.AgentId, element.Id, InterAppReturn_ParameterId);

var response = commands.Send(connection, element.AgentId, element.Id, InterAppReceive_ParameterId, Timeout, knownTypes).First();
if (!(response is T castResponse))
{
Expand Down

0 comments on commit 3caa9d1

Please sign in to comment.