コード例 #1
0
 override public void noticeNetworkFailure(string url,
                                           string httpMethod,
                                           Timer timer,
                                           NewRelicAgent.NetworkFailureCode failureCode,
                                           string message)
 {
     // Invoke the Android agent noticeNetworkFailure(url, httpMethod, startTime, endTime, exception)
     unityApiClass.CallStatic("noticeNetworkFailure", url, httpMethod, dateTimeToMillisSinceEpoch(timer.start), dateTimeToMillisSinceEpoch(timer.end), (int)failureCode, message);
 }
コード例 #2
0
 /// <summary>
 /// records a failed network transaction.
 /// </summary>
 /// <param name="url">the URL of the request</param>
 /// <param name="httpMethod">HTTP method</param>
 /// <param name="timer">a timer created when the network request was started</param>
 /// <param name="failureCode">Failure code defined from <c>NewRelicAgent.NetworkFailureCode</c> list</param>
 /// <param name="message">optional descriptive message, unused in iOS</param>
 static public void NoticeNetworkFailure(string url,
                                         string httpMethod,
                                         Timer timer,
                                         NewRelicAgent.NetworkFailureCode failureCode,
                                         string message)
 {
     if (validatePluginImpl())
     {
         instance.agentInstance.noticeNetworkFailure(url, httpMethod, timer, failureCode, message);
     }
 }
コード例 #3
0
 override public void noticeNetworkFailure(string url,
                                           string httpMethod,
                                           Timer timer,
                                           NewRelicAgent.NetworkFailureCode failureCode,
                                           string message)
 {
     NR_noticeNetworkFailure(url,
                             httpMethod,
                             timer.handle,
                             (int)failureCode);
 }
コード例 #4
0
 abstract public void noticeNetworkFailure(string url,
                                           string httpMethod,
                                           Timer timer,
                                           NewRelicAgent.NetworkFailureCode failureCode,
                                           string message);