コード例 #1
0
        public HtmlCourtsInfoFetcher(IDataParserHandler parser)
        {
            Requires.NotNull(parser, "parser");
            Parser = parser;

            Parser.ViabilityObserver = ViabilityObserver;

            CacelOperation = () => Parser.Cancel();
        }
コード例 #2
0
        public override void Cancel()
        {
            IsCancellationRequested = true;
            if (Successor != null)
            {
                Successor.Cancel();
            }

            if (Failer != null)
            {
                Failer.Cancel();
            }
        }