示例#1
0
 public SubscriptionsViewModel get_subscriptions()
 {
     return(new SubscriptionsViewModel
     {
         Persistence = new DescriptionBodyTag(Description.For(_persistence)),
         Nodes = new TransportNodeTableTag(_persistence.AllNodes()),
         Subscriptions = new SubscriptionStorageTableTag(_persistence.AllSubscriptions())
     });
 }
        public HtmlTag get_subscriptions()
        {
            var div = new HtmlTag("div");

            div.Add("h3").Text("Subscription Persistence");
            div.Append(new DescriptionBodyTag(Description.For(_persistence)));

            div.Add("h3").Text("Nodes");
            div.Append(new TransportNodeTableTag(_persistence.AllNodes()));

            div.Add("h3").Text("Subscriptions");
            div.Append(new SubscriptionStorageTableTag(_persistence.AllSubscriptions()));

            return(div);
        }