예제 #1
0
 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())
                                         );
예제 #2
0
 public ServiceAttribute(OriginalHash serviceHash, uint methodId)
 {
     ServiceHash = (uint)serviceHash;
     MethodId    = methodId;
 }
예제 #3
0
 void AddService <Service>(OriginalHash OriginalHash) where Service : ServiceBase
 {
     _dispatchers[(uint)OriginalHash] = Dispatch <Service>;
 }
예제 #4
0
 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())
                                         );