private void HandleGet(StorageMessageUnion wrapper,
                               int topologyVersion,
                               MessageStreamWriter <StorageMessageUnion> writer)
        {
            var values = storage.Get(topologyVersion,
                                     wrapper.GetRequestsList.Select(x => x.GetGetRequest()).ToArray()
                                     );
            var reply = new StorageMessageUnion.Builder
            {
                Type             = StorageMessageType.GetResponses,
                TopologyVersion  = wrapper.TopologyVersion,
                GetResponsesList =
                {
                    values.Select(x => x.GetGetResponse())
                }
            };

            writer.Write(reply.Build());
        }
 private void HandleGet(StorageMessageUnion wrapper,
     int topologyVersion,
     MessageStreamWriter<StorageMessageUnion> writer)
 {
     var values = storage.Get(topologyVersion,
         wrapper.GetRequestsList.Select(x => x.GetGetRequest()).ToArray()
         );
     var reply = new StorageMessageUnion.Builder
     {
         Type = StorageMessageType.GetResponses,
         TopologyVersion = wrapper.TopologyVersion,
         GetResponsesList =
             {
                 values.Select(x=> x.GetGetResponse())
             }
     };
     writer.Write(reply.Build());
 }