Exemple #1
0
        public void RegisterHeader(Type HeaderType)
        {
            Header header   = (Header)Activator.CreateInstance(HeaderType);
            ushort headerId = (ushort)(connection.PrivateSeed + header.GetHeaderId());

            if (Headers.ContainsKey(headerId))
            {
                throw new Exception("Header already exists, Header Conflict!");
            }

            Headers.Add(headerId, HeaderType);
        }
 public ushort GetHeaderId(Header header)
 {
     return (ushort)(connection.PrivateSeed + header.GetHeaderId());
 }
Exemple #3
0
 public ushort GetHeaderId(Header header)
 {
     return((ushort)(connection.PrivateSeed + header.GetHeaderId()));
 }