Exemple #1
0
 public static void Serialize(Stream stream, SubscriptionUpdateRequest instance)
 {
     if (instance.Ref.Count > 0)
     {
         foreach (SubscriberReference @ref in instance.Ref)
         {
             stream.WriteByte(18);
             ProtocolParser.WriteUInt32(stream, @ref.GetSerializedSize());
             SubscriberReference.Serialize(stream, @ref);
         }
     }
 }
 public static void Serialize(Stream stream, SubscriptionUpdateRequest instance)
 {
     if (instance.Ref.get_Count() > 0)
     {
         using (List <SubscriberReference> .Enumerator enumerator = instance.Ref.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 SubscriberReference current = enumerator.get_Current();
                 stream.WriteByte(18);
                 ProtocolParser.WriteUInt32(stream, current.GetSerializedSize());
                 SubscriberReference.Serialize(stream, current);
             }
         }
     }
 }
Exemple #3
0
 public void Serialize(Stream stream)
 {
     SubscriberReference.Serialize(stream, this);
 }