Skip to content

Commit 1f57b18

Browse files
committed
Minor changes to RtdClocks sample
1 parent d6c8618 commit 1f57b18

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RtdClocks/RtdClock-IExcelObservable/ExcelObservableClock.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics;
34
using System.Threading;
45
using ExcelDna.Integration;
56

@@ -40,6 +41,7 @@ public ActionDisposable(Action disposeAction)
4041
public void Dispose()
4142
{
4243
_disposeAction();
44+
Debug.WriteLine("Disposed");
4345
}
4446
}
4547
}

RtdClocks/RtdClock-IExcelObservable/RtdClock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ namespace RtdClock_IExcelObservable
55
public static class RtdClock
66
{
77
[ExcelFunction(Description = "Provides a ticking clock")]
8-
public static object dnaRtdClock_IExcelObservable()
8+
public static object dnaRtdClock_IExcelObservable(string param)
99
{
1010
string functionName = "dnaRtdClock_IExcelObservable";
11-
object paramInfo = null; // could be one parameter passed in directly, or an object array of all the parameters: new object[] {param1, param2}
11+
object paramInfo = param; // could be one parameter passed in directly, or an object array of all the parameters: new object[] {param1, param2}
1212
return ExcelAsyncUtil.Observe(functionName, paramInfo, () => new ExcelObservableClock());
1313
}
1414
}

0 commit comments

Comments
 (0)