public HelloMessage(global::Omnius.Core.Net.Connections.Multiplexer.OmniConnectionMultiplexerVersion[] versions) { if (versions is null) { throw new global::System.ArgumentNullException("versions"); } if (versions.Length > 32) { throw new global::System.ArgumentOutOfRangeException("versions"); } this.Versions = new global::Omnius.Core.Collections.ReadOnlyListSlim <global::Omnius.Core.Net.Connections.Multiplexer.OmniConnectionMultiplexerVersion>(versions); ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); foreach (var n in versions) { if (n != default) { ___h.Add(n.GetHashCode()); } } return(___h.ToHashCode()); }); }
public Profile(global::Omnius.Core.Cryptography.OmniSignature signature, global::Omnius.Core.RocketPack.Timestamp creationTime, global::Omnius.Axis.Intaractors.Models.ProfileContent content) { if (signature is null) { throw new global::System.ArgumentNullException("signature"); } if (content is null) { throw new global::System.ArgumentNullException("content"); } this.Signature = signature; this.CreationTime = creationTime; this.Content = content; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (signature != default) { ___h.Add(signature.GetHashCode()); } if (creationTime != default) { ___h.Add(creationTime.GetHashCode()); } if (content != default) { ___h.Add(content.GetHashCode()); } return(___h.ToHashCode()); }); }
public FileMeta(global::Omnius.Lxna.Components.Models.NestedPath path, ulong length, global::Omnius.Core.RocketPack.Timestamp lastWriteTime) { if (path is null) { throw new global::System.ArgumentNullException("path"); } this.Path = path; this.Length = length; this.LastWriteTime = lastWriteTime; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (path != default) { ___h.Add(path.GetHashCode()); } if (length != default) { ___h.Add(length.GetHashCode()); } if (lastWriteTime != default) { ___h.Add(lastWriteTime.GetHashCode()); } return(___h.ToHashCode()); }); }
public ProfileMessage(uint packetReceiveTimeoutMilliseconds, uint maxStreamRequestQueueSize, uint maxStreamDataSize, uint maxStreamDataQueueSize) { this.PacketReceiveTimeoutMilliseconds = packetReceiveTimeoutMilliseconds; this.MaxStreamRequestQueueSize = maxStreamRequestQueueSize; this.MaxStreamDataSize = maxStreamDataSize; this.MaxStreamDataQueueSize = maxStreamDataQueueSize; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (packetReceiveTimeoutMilliseconds != default) { ___h.Add(packetReceiveTimeoutMilliseconds.GetHashCode()); } if (maxStreamRequestQueueSize != default) { ___h.Add(maxStreamRequestQueueSize.GetHashCode()); } if (maxStreamDataSize != default) { ___h.Add(maxStreamDataSize.GetHashCode()); } if (maxStreamDataQueueSize != default) { ___h.Add(maxStreamDataQueueSize.GetHashCode()); } return(___h.ToHashCode()); }); }
public TestParam(int value) { this.Value = value; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (value != default) { ___h.Add(value.GetHashCode()); } return(___h.ToHashCode()); }); }
public DefaultErrorMessage(string type, string message, string?stackTrace) { if (type is null) { throw new global::System.ArgumentNullException("type"); } if (type.Length > 8192) { throw new global::System.ArgumentOutOfRangeException("type"); } if (message is null) { throw new global::System.ArgumentNullException("message"); } if (message.Length > 8192) { throw new global::System.ArgumentOutOfRangeException("message"); } if (stackTrace is not null && stackTrace.Length > 8192) { throw new global::System.ArgumentOutOfRangeException("stackTrace"); } this.Type = type; this.Message = message; this.StackTrace = stackTrace; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (type != default) { ___h.Add(type.GetHashCode()); } if (message != default) { ___h.Add(message.GetHashCode()); } if (stackTrace != default) { ___h.Add(stackTrace.GetHashCode()); } return(___h.ToHashCode()); }); }
public OmniAddress(string value) { if (value is null) { throw new global::System.ArgumentNullException("value"); } if (value.Length > 8192) { throw new global::System.ArgumentOutOfRangeException("value"); } this.Value = value; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (value != default) { ___h.Add(value.GetHashCode()); } return(___h.ToHashCode()); }); }
public ConnectionHelloMessage(string serviceType) { if (serviceType is null) { throw new global::System.ArgumentNullException("serviceType"); } if (serviceType.Length > 256) { throw new global::System.ArgumentOutOfRangeException("serviceType"); } this.ServiceType = serviceType; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (serviceType != default) { ___h.Add(serviceType.GetHashCode()); } return(___h.ToHashCode()); }); }
public NestedPath(string[] values) { if (values is null) { throw new global::System.ArgumentNullException("values"); } if (values.Length > 32) { throw new global::System.ArgumentOutOfRangeException("values"); } foreach (var n in values) { if (n is null) { throw new global::System.ArgumentNullException("n"); } if (n.Length > 8192) { throw new global::System.ArgumentOutOfRangeException("n"); } } this.Values = new global::Omnius.Core.Collections.ReadOnlyListSlim <string>(values); ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); foreach (var n in values) { if (n != default) { ___h.Add(n.GetHashCode()); } } return(___h.ToHashCode()); }); }
public TcpProxyOptions(TcpProxyType type, OmniAddress address) { if (address is null) { throw new global::System.ArgumentNullException("address"); } this.Type = type; this.Address = address; ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (type != default) { ___h.Add(type.GetHashCode()); } if (address != default) { ___h.Add(address.GetHashCode()); } return(___h.ToHashCode()); }); }
public MerkleTreeSection(int depth, ulong length, OmniHash[] hashes) { if (hashes is null) { throw new global::System.ArgumentNullException("hashes"); } if (hashes.Length > 1073741824) { throw new global::System.ArgumentOutOfRangeException("hashes"); } this.Depth = depth; this.Length = length; this.Hashes = new global::Omnius.Core.Collections.ReadOnlyListSlim <OmniHash>(hashes); ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (depth != default) { ___h.Add(depth.GetHashCode()); } if (length != default) { ___h.Add(length.GetHashCode()); } foreach (var n in hashes) { if (n != default) { ___h.Add(n.GetHashCode()); } } return(___h.ToHashCode()); }); }
public ProfileMessage(global::System.ReadOnlyMemory <byte> sessionId, global::Omnius.Core.Net.Connections.Secure.V1.Internal.AuthenticationType authenticationType, global::Omnius.Core.Net.Connections.Secure.V1.Internal.KeyExchangeAlgorithmType[] keyExchangeAlgorithmTypes, global::Omnius.Core.Net.Connections.Secure.V1.Internal.KeyDerivationAlgorithmType[] keyDerivationAlgorithmTypes, global::Omnius.Core.Net.Connections.Secure.V1.Internal.CryptoAlgorithmType[] cryptoAlgorithmTypes, global::Omnius.Core.Net.Connections.Secure.V1.Internal.HashAlgorithmType[] hashAlgorithmTypes) { if (sessionId.Length > 32) { throw new global::System.ArgumentOutOfRangeException("sessionId"); } if (keyExchangeAlgorithmTypes is null) { throw new global::System.ArgumentNullException("keyExchangeAlgorithmTypes"); } if (keyExchangeAlgorithmTypes.Length > 32) { throw new global::System.ArgumentOutOfRangeException("keyExchangeAlgorithmTypes"); } if (keyDerivationAlgorithmTypes is null) { throw new global::System.ArgumentNullException("keyDerivationAlgorithmTypes"); } if (keyDerivationAlgorithmTypes.Length > 32) { throw new global::System.ArgumentOutOfRangeException("keyDerivationAlgorithmTypes"); } if (cryptoAlgorithmTypes is null) { throw new global::System.ArgumentNullException("cryptoAlgorithmTypes"); } if (cryptoAlgorithmTypes.Length > 32) { throw new global::System.ArgumentOutOfRangeException("cryptoAlgorithmTypes"); } if (hashAlgorithmTypes is null) { throw new global::System.ArgumentNullException("hashAlgorithmTypes"); } if (hashAlgorithmTypes.Length > 32) { throw new global::System.ArgumentOutOfRangeException("hashAlgorithmTypes"); } this.SessionId = sessionId; this.AuthenticationType = authenticationType; this.KeyExchangeAlgorithmTypes = new global::Omnius.Core.Collections.ReadOnlyListSlim <global::Omnius.Core.Net.Connections.Secure.V1.Internal.KeyExchangeAlgorithmType>(keyExchangeAlgorithmTypes); this.KeyDerivationAlgorithmTypes = new global::Omnius.Core.Collections.ReadOnlyListSlim <global::Omnius.Core.Net.Connections.Secure.V1.Internal.KeyDerivationAlgorithmType>(keyDerivationAlgorithmTypes); this.CryptoAlgorithmTypes = new global::Omnius.Core.Collections.ReadOnlyListSlim <global::Omnius.Core.Net.Connections.Secure.V1.Internal.CryptoAlgorithmType>(cryptoAlgorithmTypes); this.HashAlgorithmTypes = new global::Omnius.Core.Collections.ReadOnlyListSlim <global::Omnius.Core.Net.Connections.Secure.V1.Internal.HashAlgorithmType>(hashAlgorithmTypes); ___hashCode = new global::System.Lazy <int>(() => { var ___h = new global::System.HashCode(); if (!sessionId.IsEmpty) { ___h.Add(global::Omnius.Core.Helpers.ObjectHelper.GetHashCode(sessionId.Span)); } if (authenticationType != default) { ___h.Add(authenticationType.GetHashCode()); } foreach (var n in keyExchangeAlgorithmTypes) { if (n != default) { ___h.Add(n.GetHashCode()); } } foreach (var n in keyDerivationAlgorithmTypes) { if (n != default) { ___h.Add(n.GetHashCode()); } } foreach (var n in cryptoAlgorithmTypes) { if (n != default) { ___h.Add(n.GetHashCode()); } } foreach (var n in hashAlgorithmTypes) { if (n != default) { ___h.Add(n.GetHashCode()); } } return(___h.ToHashCode()); }); }