• Programming Guide
  • Api Documentation
  • OnixS CME iLink3 Handler for .NET Core, version 1.4.2
Show / Hide Table of Contents
  • Introduction
  • System Requirements
  • Getting Started
    • Error Reporting
    • Licensing
    • SBE Message
      • Tag-based Messaging
      • Message Fields
      • Repeating Groups
    • iLink 3 Session
      • Universally Unique Identifier
      • Establishing iLink3 Connection
      • Exchanging Messages
      • Message Sequence Numbers
  • Configuring the Handler
    • Configuration File Examples (XML or JSON)
  • Logging
  • Session Storage
    • File-Based Session Storage
    • Memory-based Session Storage
    • Asynchronous File-Based Session Storage
    • Pluggable Session Storage
  • Advanced Programming
    • Thread Safety
    • Session Initialization and Binding
    • Session States
    • Listening to Session Events
    • Handling NotApplied Messages
    • Handling Business Reject Messages
    • Automated Downloading of GTC and GTD Orders
    • Reconnection
    • Fault Tolerance
    • Understanding Send Latency
    • Strongly Typed Messages
  • Best Practices
    • Low Latency Best Practices
  • Glossary
  • Support

Repeating Groups

The <xref:OnixS.SimpleBinaryEncoding.IGroup> interface provides iterator access to repeating group entries. This interface extends <xref:OnixS.SimpleBinaryEncoding.IFieldSet> interface providing access to the current repeating group entry fields.

Example


const int PartyDetailsGroupSize = 2;

const int NoPartyDetailsTag = 1671;
const int PartyDetailIDTag = 1691;
const int PartyDetailRoleTag = 1693;

// Set the PartyDetails group size and get the corresponding Group instance.
IGroup details = request.SetGroup(NoPartyDetailsTag, PartyDetailsGroupSize);

// Move to the first entry
details.MoveNext();

// Set field values of the first repeating group entry.
details.SetString(PartyDetailIDTag, "004");
details.SetEnum<PartyDetailRole>(PartyDetailRoleTag, PartyDetailRole.ExecutingFirm);

// Move to the second entry
details.MoveNext();

// Set field values of the second repeating group entry.
details.SetString(PartyDetailIDTag, "CSET_TEST");
details.SetEnum(PartyDetailRoleTag, PartyDetailRole.CustomerAccount);


details.Reset();

while (details.MoveNext())
{
    Console.WriteLine($"partyDetailId={details.GetString(PartyDetailIDTag)}; partyDetailRole={details.GetEnum<PartyDetailRole>(PartyDetailRoleTag)}");
}
In This Article
Back to top Copyright © Onix Solutions.
Generated by DocFX