Exemplo n.º 1
0
        /// <summary>
        ///     Compares this mapping to another one, and returns a value indicating which mapping should be checked for a
        ///     match first. The ordering is such that more specific mappings are checked first, so that they trigger even if
        ///     a more generic mapping encompasses the specific one. Hence skippable mappings are treated exactly the same,
        ///     and are only reordered with respect to the single non-skippable mapping that matches the exact same request.</summary>
        public int CompareTo(UrlMapping other)
        {
            var inner = Hook.CompareTo(other.Hook);

            if (inner != 0)
            {
                return(inner);
            }
            return(-Skippable.CompareTo(other.Skippable));
        }
Exemplo n.º 2
0
 public void WithSkipableData(Skippable skippable)
 {
     Assert.Null(skippable.Skip);
     Assert.Equal(1, skippable.Data);
 }
Exemplo n.º 3
0
    private IEnumerator _FrameSkip(Skippable skippable)
    {
        yield return(null);

        skippable();
    }
Exemplo n.º 4
0
 private void FrameSkip(Skippable skippable)
 {
     StartCoroutine(_FrameSkip(skippable));
 }