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 ClusterMetadata(ulong[] sectors, uint length, global::Omnix.Serialization.RocketPack.Timestamp lastAccessTime) { if (sectors is null) { throw new global::System.ArgumentNullException("sectors"); } if (sectors.Length > 256) { throw new global::System.ArgumentOutOfRangeException("sectors"); } this.Sectors = new global::Omnix.DataStructures.ReadOnlyListSlim <ulong>(sectors); this.Length = length; this.LastAccessTime = lastAccessTime; { var __h = new global::System.HashCode(); foreach (var n in this.Sectors) { if (n != default) { __h.Add(n.GetHashCode()); } } if (this.Length != default) { __h.Add(this.Length.GetHashCode()); } if (this.LastAccessTime != default) { __h.Add(this.LastAccessTime.GetHashCode()); } __hashCode = __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 ConnectionCreatorOptions(TcpConnectOptions tcpConnectOptions, TcpAcceptOptions tcpAcceptOptions) { if (tcpConnectOptions is null) { throw new global::System.ArgumentNullException("tcpConnectOptions"); } if (tcpAcceptOptions is null) { throw new global::System.ArgumentNullException("tcpAcceptOptions"); } this.TcpConnectOptions = tcpConnectOptions; this.TcpAcceptOptions = tcpAcceptOptions; { var __h = new global::System.HashCode(); if (this.TcpConnectOptions != default) { __h.Add(this.TcpConnectOptions.GetHashCode()); } if (this.TcpAcceptOptions != default) { __h.Add(this.TcpAcceptOptions.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public MerkleTreeSection(CorrectionAlgorithmType correctionAlgorithmType, ulong length, OmniHash[] hashes) { if (hashes is null) { throw new global::System.ArgumentNullException("hashes"); } if (hashes.Length > 1048576) { throw new global::System.ArgumentOutOfRangeException("hashes"); } this.CorrectionAlgorithmType = correctionAlgorithmType; this.Length = length; this.Hashes = new global::Omnix.DataStructures.ReadOnlyListSlim <OmniHash>(hashes); { var __h = new global::System.HashCode(); if (this.CorrectionAlgorithmType != default) { __h.Add(this.CorrectionAlgorithmType.GetHashCode()); } if (this.Length != default) { __h.Add(this.Length.GetHashCode()); } foreach (var n in this.Hashes) { if (n != default) { __h.Add(n.GetHashCode()); } } __hashCode = __h.ToHashCode(); } }
public MerkleTreeNode(MerkleTreeSection[] sections) { if (sections is null) { throw new global::System.ArgumentNullException("sections"); } if (sections.Length > 1048576) { throw new global::System.ArgumentOutOfRangeException("sections"); } foreach (var n in sections) { if (n is null) { throw new global::System.ArgumentNullException("n"); } } this.Sections = new global::Omnix.DataStructures.ReadOnlyListSlim <MerkleTreeSection>(sections); { var __h = new global::System.HashCode(); foreach (var n in this.Sections) { if (n != default) { __h.Add(n.GetHashCode()); } } __hashCode = __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 override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.EqualityContract); hashCode.Add(this.Age !, global::System.Collections.Generic.EqualityComparer <global::System.Int32> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.EqualityContract); hashCode.Add(this.Name !, global::Generator.Equals.ReferenceEqualityComparer <global::System.String> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.GetType()); hashCode.Add(this.Properties !, global::Generator.Equals.DictionaryEqualityComparer <string, int> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.GetType()); hashCode.Add(this.Addresses !, global::Generator.Equals.OrderedEqualityComparer <string> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.EqualityContract); hashCode.Add(this.Properties !, global::Generator.Equals.UnorderedEqualityComparer <int> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.GetType()); hashCode.Add(this.Name !, global::System.Collections.Generic.EqualityComparer <global::System.String> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.EqualityContract); hashCode.Add(this.Addresses !, global::Generator.Equals.OrderedEqualityComparer <string> .Default); hashCode.Add(this.FirstName !, global::System.Collections.Generic.EqualityComparer <global::System.String> .Default); hashCode.Add(this.LastName !, global::System.Collections.Generic.EqualityComparer <global::System.String> .Default); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = new global::System.HashCode(); hashCode.Add(this.EqualityContract); hashCode.Add(this.Name1 !, global::Generator.Equals.Tests.Records.CustomEquality.Comparer1.Default ); hashCode.Add(this.Name2 !, global::Generator.Equals.Tests.Records.CustomEquality.Comparer2.Instance ); hashCode.Add(this.Name3 !, new global::Generator.Equals.Tests.Records.CustomEquality.LengthEqualityComparer() ); return(hashCode.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 SharedBlocksMetadata(string path, ulong length, uint blockLength, OmniHash[] hashes) { if (path is null) { throw new global::System.ArgumentNullException("path"); } if (path.Length > 1024) { throw new global::System.ArgumentOutOfRangeException("path"); } if (hashes is null) { throw new global::System.ArgumentNullException("hashes"); } if (hashes.Length > 1073741824) { throw new global::System.ArgumentOutOfRangeException("hashes"); } this.Path = path; this.Length = length; this.BlockLength = blockLength; this.Hashes = new global::Omnix.DataStructures.ReadOnlyListSlim <OmniHash>(hashes); { var __h = new global::System.HashCode(); if (this.Path != default) { __h.Add(this.Path.GetHashCode()); } if (this.Length != default) { __h.Add(this.Length.GetHashCode()); } if (this.BlockLength != default) { __h.Add(this.BlockLength.GetHashCode()); } foreach (var n in this.Hashes) { if (n != default) { __h.Add(n.GetHashCode()); } } __hashCode = __h.ToHashCode(); } }
public BlockStorageConfig(uint version, ulong size, global::System.Collections.Generic.Dictionary <OmniHash, ClusterMetadata> clusterMetadataMap) { if (clusterMetadataMap is null) { throw new global::System.ArgumentNullException("clusterMetadataMap"); } if (clusterMetadataMap.Count > 1073741824) { throw new global::System.ArgumentOutOfRangeException("clusterMetadataMap"); } foreach (var n in clusterMetadataMap) { if (n.Value is null) { throw new global::System.ArgumentNullException("n.Value"); } } this.Version = version; this.Size = size; this.ClusterMetadataMap = new global::Omnix.DataStructures.ReadOnlyDictionarySlim <OmniHash, ClusterMetadata>(clusterMetadataMap); { var __h = new global::System.HashCode(); if (this.Version != default) { __h.Add(this.Version.GetHashCode()); } if (this.Size != default) { __h.Add(this.Size.GetHashCode()); } foreach (var n in this.ClusterMetadataMap) { if (n.Key != default) { __h.Add(n.Key.GetHashCode()); } if (n.Value != default) { __h.Add(n.Value.GetHashCode()); } } __hashCode = __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 XeusClue(OmniHash hash, byte depth) { this.Hash = hash; this.Depth = depth; { var __h = new global::System.HashCode(); if (this.Hash != default) { __h.Add(this.Hash.GetHashCode()); } if (this.Depth != default) { __h.Add(this.Depth.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public ErrorReport(global::Omnix.Serialization.RocketPack.Timestamp creationTime, ErrorReportType type) { this.CreationTime = creationTime; this.Type = type; { var __h = new global::System.HashCode(); if (this.CreationTime != default) { __h.Add(this.CreationTime.GetHashCode()); } if (this.Type != default) { __h.Add(this.Type.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public TcpConnectOptions(bool enabled, TcpProxyOptions?proxyOptions) { this.Enabled = enabled; this.ProxyOptions = proxyOptions; { var __h = new global::System.HashCode(); if (this.Enabled != default) { __h.Add(this.Enabled.GetHashCode()); } if (this.ProxyOptions != default) { __h.Add(this.ProxyOptions.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public TcpAcceptOptions(bool enabled, OmniAddress[] listenAddresses, bool useUpnp) { if (listenAddresses is null) { throw new global::System.ArgumentNullException("listenAddresses"); } if (listenAddresses.Length > 32) { throw new global::System.ArgumentOutOfRangeException("listenAddresses"); } foreach (var n in listenAddresses) { if (n is null) { throw new global::System.ArgumentNullException("n"); } } this.Enabled = enabled; this.ListenAddresses = new global::Omnix.DataStructures.ReadOnlyListSlim <OmniAddress>(listenAddresses); this.UseUpnp = useUpnp; { var __h = new global::System.HashCode(); if (this.Enabled != default) { __h.Add(this.Enabled.GetHashCode()); } foreach (var n in this.ListenAddresses) { if (n != default) { __h.Add(n.GetHashCode()); } } if (this.UseUpnp != default) { __h.Add(this.UseUpnp.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public TestMessage(string comment) { if (comment is null) { throw new global::System.ArgumentNullException("comment"); } if (comment.Length > 2147483647) { throw new global::System.ArgumentOutOfRangeException("comment"); } this.Comment = comment; { var ___h = new global::System.HashCode(); if (comment != default) { ___h.Add(comment.GetHashCode()); } ___hashCode = ___h.ToHashCode(); } }
public XeusOptions(string configDirectoryPath) { if (configDirectoryPath is null) { throw new global::System.ArgumentNullException("configDirectoryPath"); } if (configDirectoryPath.Length > 1024) { throw new global::System.ArgumentOutOfRangeException("configDirectoryPath"); } this.ConfigDirectoryPath = configDirectoryPath; { var __h = new global::System.HashCode(); if (this.ConfigDirectoryPath != default) { __h.Add(this.ConfigDirectoryPath.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public ContentMetadata(XeusClue clue, OmniHash[] lockedHashes, SharedBlocksMetadata?sharedBlocksMetadata) { if (clue is null) { throw new global::System.ArgumentNullException("clue"); } if (lockedHashes is null) { throw new global::System.ArgumentNullException("lockedHashes"); } if (lockedHashes.Length > 1073741824) { throw new global::System.ArgumentOutOfRangeException("lockedHashes"); } this.Clue = clue; this.LockedHashes = new global::Omnix.DataStructures.ReadOnlyListSlim <OmniHash>(lockedHashes); this.SharedBlocksMetadata = sharedBlocksMetadata; { var __h = new global::System.HashCode(); if (this.Clue != default) { __h.Add(this.Clue.GetHashCode()); } foreach (var n in this.LockedHashes) { if (n != default) { __h.Add(n.GetHashCode()); } } if (this.SharedBlocksMetadata != default) { __h.Add(this.SharedBlocksMetadata.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public TcpConnectionCreatorConfig(uint version, TcpConnectOptions?tcpConnectOptions, TcpAcceptOptions?tcpAcceptOptions) { this.Version = version; this.TcpConnectOptions = tcpConnectOptions; this.TcpAcceptOptions = tcpAcceptOptions; { var __h = new global::System.HashCode(); if (this.Version != default) { __h.Add(this.Version.GetHashCode()); } if (this.TcpConnectOptions != default) { __h.Add(this.TcpConnectOptions.GetHashCode()); } if (this.TcpAcceptOptions != default) { __h.Add(this.TcpAcceptOptions.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public TcpProxyOptions(TcpProxyType type, OmniAddress address) { if (address is null) { throw new global::System.ArgumentNullException("address"); } this.Type = type; this.Address = address; { var __h = new global::System.HashCode(); if (this.Type != default) { __h.Add(this.Type.GetHashCode()); } if (this.Address != default) { __h.Add(this.Address.GetHashCode()); } __hashCode = __h.ToHashCode(); } }
public CheckBlocksProgressReport(uint badBlockCount, uint checkedBlockCount, uint totalBlockCount) { this.BadBlockCount = badBlockCount; this.CheckedBlockCount = checkedBlockCount; this.TotalBlockCount = totalBlockCount; { var __h = new global::System.HashCode(); if (this.BadBlockCount != default) { __h.Add(this.BadBlockCount.GetHashCode()); } if (this.CheckedBlockCount != default) { __h.Add(this.CheckedBlockCount.GetHashCode()); } if (this.TotalBlockCount != default) { __h.Add(this.TotalBlockCount.GetHashCode()); } __hashCode = __h.ToHashCode(); } }