Exemple #1
0
        public void Properties()
        {
            TestRuntime.AssertXcodeVersion(8, 0);

            using (var stm = new NSUrlSessionTaskMetrics()) {
                // in iOS10 those selectors do not respond - but they do work (forwarded to __NSCFURLSessionTaskMetrics type ?)
                Assert.That(stm.RedirectCount, Is.EqualTo(0), "RedirectCount");
                Assert.That(stm.TaskInterval.Duration, Is.EqualTo(0), "TaskInterval");
                Assert.Null(stm.TransactionMetrics, "TransactionMetrics");
            }
        }
 public virtual void DidFinishCollectingMetrics(NSUrlSession session, NSUrlSessionTask task, NSUrlSessionTaskMetrics metrics)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public override void DidFinishCollectingMetrics(NSUrlSession session, NSUrlSessionTask task, NSUrlSessionTaskMetrics metrics)
 {
     //metrics.TaskInterval
     //metrics.TransactionMetrics[0].
 }