public XElement ToXml() => new XElement(ElementName, new XAttribute(nameof(Path), Path), new XAttribute(nameof(Id), Id), new XAttribute(nameof(Version), Version), new XAttribute(nameof(OriginalHash), OriginalHash.ToHexString()), PoisonedHash == null ? null : new XAttribute(nameof(PoisonedHash), PoisonedHash.ToHexString()), Files.Select(f => f.ToXml()) );
public ServiceAttribute(OriginalHash serviceHash, uint methodId) { ServiceHash = (uint)serviceHash; MethodId = methodId; }
void AddService <Service>(OriginalHash OriginalHash) where Service : ServiceBase { _dispatchers[(uint)OriginalHash] = Dispatch <Service>; }
public XElement ToXml() => new XElement(ElementName, new XAttribute(nameof(Path), Path), new XAttribute(nameof(OriginalHash), OriginalHash.ToHexString()), PoisonedHash == null ? null : new XAttribute(nameof(PoisonedHash), PoisonedHash.ToHexString()) );