Esempio n. 1
0
        public void TestVersion()
        {
            var version = new Refs.Version
            {
                Major = 1,
                Minor = 1,
            };

            Console.WriteLine(version.ToByteArray().ToHexString());
            Console.WriteLine(version.ToString());
        }
Esempio n. 2
0
 public CallOptions ApplyCustomOptions(CallOptions custom)
 {
     if (custom is null)
     {
         return(this);
     }
     if (custom.Version is not null)
     {
         Version = custom.Version;
     }
     if (custom.Ttl != 0)
     {
         Ttl = custom.Ttl;
     }
     Epoch = custom.Epoch;
     if (custom.XHeaders is not null)
     {
         XHeaders = custom.XHeaders;
     }
     if (custom.Session is not null)
     {
         Session = custom.Session;
     }
     if (custom.Bearer is not null)
     {
         Bearer = custom.Bearer;
     }
     if (custom.Key is not null)
     {
         Key = custom.Key;
     }
     if (custom.Deadline is not null)
     {
         Deadline = custom.Deadline;
     }
     return(this);
 }
Esempio n. 3
0
 public CallOptions WithVersion(Refs.Version v)
 {
     Version = v;
     return(this);
 }