Exemplo n.º 1
0
        public bool Equals(HostAssignmentContext other)
        {
            if (other == null)
            {
                return(false);
            }

            return(SiteId == other.SiteId && LastModifiedTime.CompareTo(other.LastModifiedTime) == 0);
        }
Exemplo n.º 2
0
            public int CompareTo(LayerEntryTemplate otherLayerEntryTemplate)
            {
                int sourceFileComparison = string.CompareOrdinal(SourceFile, otherLayerEntryTemplate.SourceFile);

                if (sourceFileComparison != 0)
                {
                    return(sourceFileComparison);
                }
                int extractionPathComparison =
                    string.CompareOrdinal(ExtractionPath, otherLayerEntryTemplate.ExtractionPath);

                if (extractionPathComparison != 0)
                {
                    return(extractionPathComparison);
                }
                int lastModifiedTimeComparison =
                    LastModifiedTime.CompareTo(otherLayerEntryTemplate.LastModifiedTime);

                if (lastModifiedTimeComparison != 0)
                {
                    return(lastModifiedTimeComparison);
                }
                return(string.CompareOrdinal(Permissions, otherLayerEntryTemplate.Permissions));
            }