예제 #1
0
 /// <summary>
 /// Create a PingRequest instance using specified PingFolder array and heartbeatInterval
 /// </summary>
 /// <param name="folders">Specified PingFolder array</param>
 /// <param name="heartbeatInterval">Specified heartbeatInterval</param>
 /// <returns>A PingRequest instance</returns>
 public static PingRequest CreatePingRequest(Request.PingFolder[] folders, string heartbeatInterval)
 {
     PingRequest request = new PingRequest();
     Request.Ping requestData = new Request.Ping { Folders = folders, HeartbeatInterval = heartbeatInterval };
     request.RequestData = requestData;
     return request;
 }
예제 #2
0
 /// <summary>
 /// Create an empty PingRequest instance
 /// </summary>
 /// <returns>A PingRequest instance</returns>
 public static PingRequest CreatePingRequest()
 {
     PingRequest request = new PingRequest();
     Request.Ping requestData = new Request.Ping();
     request.RequestData = requestData;
     return request;
 }