public void TestVersion() { var version = new Refs.Version { Major = 1, Minor = 1, }; Console.WriteLine(version.ToByteArray().ToHexString()); Console.WriteLine(version.ToString()); }
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); }
public CallOptions WithVersion(Refs.Version v) { Version = v; return(this); }