Exemplo n.º 1
0
 public StickySessionStats(
     DrawingElement drawing,
     StickySessionNode stickySession,
     DashboardConfiguration dashboardConfiguration,
     DashboardConfiguration.NodeConfiguration nodeConfiguration)
     : base(
         drawing,
         stickySession,
         dashboardConfiguration,
         new[] { new StickySessionTile(drawing, stickySession, nodeConfiguration, dashboardConfiguration.TrafficIndicator) })
 {
 }
Exemplo n.º 2
0
 private void ConfigureStickySessionNodes(NodeGraphConfiguration configuration, List <INode> nodes)
 {
     if (configuration.StickySessionNodes != null)
     {
         foreach (var stickySessionNodeConfiguration in configuration.StickySessionNodes)
         {
             var node = new StickySessionNode
             {
                 Name            = stickySessionNodeConfiguration.Name,
                 Disabled        = stickySessionNodeConfiguration.Disabled,
                 Outputs         = stickySessionNodeConfiguration.Outputs,
                 SessionCookie   = stickySessionNodeConfiguration.SesionCookie,
                 SessionDuration = stickySessionNodeConfiguration.SessionDuration
             };
             stickySessionNodeConfiguration.Node = node;
             nodes.Add(node);
         }
     }
 }
Exemplo n.º 3
0
 public StickySessionTile(
     DrawingElement drawing,
     StickySessionNode stickySession,
     DashboardConfiguration.NodeConfiguration nodeConfiguration,
     TrafficIndicatorConfiguration trafficIndicatorConfiguration)
     : base(
         drawing,
         stickySession,
         trafficIndicatorConfiguration,
         nodeConfiguration?.Title ?? "Sticky session",
         "sticky_session",
         new List <string>
 {
     "Cookie: " + stickySession.SessionCookie,
     "Lifetime: " + stickySession.SessionDuration
 },
         true,
         true,
         true)
 {
 }