public bool Equals(ChainDetailsRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.Id.Equals(Id));
 }
        public ChainVisualization get_chain_details_Id(ChainDetailsRequest request)
        {
            writeAssets();

            var chain = _graph.Behaviors.FirstOrDefault(x => x.UniqueId == request.Id);
            if (chain == null)
            {
                return new ChainVisualization
                {
                    RedirectTo = FubuContinuation.RedirectTo<ChainEndpoint>(x => x.get_chain_missing())
                };
            }

            var report = RouteReport.ForChain(chain, _urls);

            return new ChainVisualization{
                Chain = chain,
                Details = buildDetails(report),
                Report = report,
                BehaviorVisualization = new LiteralTag(_document.Visualize(chain.NonDiagnosticNodes()))
            };
        }
Esempio n. 3
0
        public ChainVisualization get_chain_details_Id(ChainDetailsRequest request)
        {
            writeAssets();

            var chain = _graph.Behaviors.FirstOrDefault(x => x.UniqueId == request.Id);

            if (chain == null)
            {
                return(new ChainVisualization
                {
                    RedirectTo = FubuContinuation.RedirectTo <ChainEndpoint>(x => x.get_chain_missing())
                });
            }

            var report = RouteReport.ForChain(chain, _urls);

            return(new ChainVisualization {
                Chain = chain,
                Details = buildDetails(report),
                Report = report,
                BehaviorVisualization = new LiteralTag(_document.Visualize(chain.NonDiagnosticNodes()))
            });
        }
 public bool Equals(ChainDetailsRequest other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id.Equals(Id);
 }