Esempio n. 1
0
        public static Directory From(string content)
        {
            var id    = OperationalMessagePartsBuilder.IdFrom(content);
            var name  = OperationalMessagePartsBuilder.NameFrom(content);
            var nodes = OperationalMessagePartsBuilder.NodesFrom(content);

            return(new Directory(id, name, nodes));
        }
        public static ApplicationSays From(string content)
        {
            var id      = OperationalMessagePartsBuilder.IdFrom(content);
            var name    = OperationalMessagePartsBuilder.NameFrom(content);
            var saysId  = OperationalMessagePartsBuilder.SaysIdFrom(content);
            var payload = OperationalMessagePartsBuilder.PayloadFrom(content);

            return(new ApplicationSays(id, name, saysId, payload));
        }
Esempio n. 3
0
 public static Ping From(string content) => new Ping(OperationalMessagePartsBuilder.IdFrom(content));
Esempio n. 4
0
 public static Split From(string content) => new Split(OperationalMessagePartsBuilder.IdFrom(content));
Esempio n. 5
0
 public static Join From(string content) => new Join(OperationalMessagePartsBuilder.NodeFrom(content));
Esempio n. 6
0
 public static Leave From(string content) => new Leave(OperationalMessagePartsBuilder.IdFrom(content));
Esempio n. 7
0
 public static Elect From(string content) => new Elect(OperationalMessagePartsBuilder.IdFrom(content));