Ejemplo n.º 1
0
        private static AccessKeyRequestMessage CreateAccessKeyRequestMessage(ref MessagePackReader reader, int arrayLength)
        {
            var message = new AccessKeyRequestMessage()
            {
                Token = ReadString(ref reader, "token"),
                Kid   = ReadString(ref reader, "kid"),
            };

            message.ReadExtensionMembers(ref reader);
            return(message);
        }
Ejemplo n.º 2
0
 private static void WriteAccessKeyRequestMessage(ref MessagePackWriter writer, AccessKeyRequestMessage message)
 {
     writer.WriteArrayHeader(4);
     writer.Write(ServiceProtocolConstants.AccessKeyRequestType);
     writer.Write(message.Token);
     writer.Write(message.Kid);
     message.WriteExtensionMembers(ref writer);
 }