Exemple #1
0
        public static Agent ToProtobuf(this AgentInfo info, Guid id, byte[] data, IEnumerable <Guid> inputs)
        {
            var result = info.ToProtobuf(id);

            result.EggData = ByteString.CopyFrom(data);
            result.Inputs.Add(inputs.Select(i => i.ToString()));
            return(result);
        }