예제 #1
0
 /// <summary>
 /// Initializes a new instance of the ConnectionStateSnapshot class.
 /// </summary>
 /// <param name="connectionState">The connection state. Possible values
 /// include: 'Reachable', 'Unreachable', 'Unknown'</param>
 /// <param name="startTime">The start time of the connection
 /// snapshot.</param>
 /// <param name="endTime">The end time of the connection
 /// snapshot.</param>
 /// <param name="evaluationState">Connectivity analysis evaluation
 /// state. Possible values include: 'NotStarted', 'InProgress',
 /// 'Completed'</param>
 /// <param name="hops">List of hops between the source and the
 /// destination.</param>
 public ConnectionStateSnapshot(ConnectionState connectionState = default(ConnectionState), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), EvaluationState evaluationState = default(EvaluationState), IList <ConnectivityHop> hops = default(IList <ConnectivityHop>))
 {
     ConnectionState = connectionState;
     StartTime       = startTime;
     EndTime         = endTime;
     EvaluationState = evaluationState;
     Hops            = hops;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the ConnectionStateSnapshot class.
 /// </summary>
 /// <param name="connectionState">The connection state. Possible values
 /// include: 'Reachable', 'Unreachable', 'Unknown'</param>
 /// <param name="startTime">The start time of the connection
 /// snapshot.</param>
 /// <param name="endTime">The end time of the connection
 /// snapshot.</param>
 /// <param name="evaluationState">Connectivity analysis evaluation
 /// state. Possible values include: 'NotStarted', 'InProgress',
 /// 'Completed'</param>
 /// <param name="avgLatencyInMs">Average latency in ms.</param>
 /// <param name="minLatencyInMs">Minimum latency in ms.</param>
 /// <param name="maxLatencyInMs">Maximum latency in ms.</param>
 /// <param name="probesSent">The number of sent probes.</param>
 /// <param name="probesFailed">The number of failed probes.</param>
 /// <param name="hops">List of hops between the source and the
 /// destination.</param>
 public ConnectionStateSnapshot(ConnectionState connectionState = default(ConnectionState), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), EvaluationState evaluationState = default(EvaluationState), int?avgLatencyInMs = default(int?), int?minLatencyInMs = default(int?), int?maxLatencyInMs = default(int?), int?probesSent = default(int?), int?probesFailed = default(int?), IList <ConnectivityHop> hops = default(IList <ConnectivityHop>))
 {
     ConnectionState = connectionState;
     StartTime       = startTime;
     EndTime         = endTime;
     EvaluationState = evaluationState;
     AvgLatencyInMs  = avgLatencyInMs;
     MinLatencyInMs  = minLatencyInMs;
     MaxLatencyInMs  = maxLatencyInMs;
     ProbesSent      = probesSent;
     ProbesFailed    = probesFailed;
     Hops            = hops;
     CustomInit();
 }