2020-03-21 00:10:20 +00:00
|
|
|
using Tand.Core.Api;
|
|
|
|
|
2020-03-10 00:01:59 +00:00
|
|
|
namespace Tand.Core.Tests
|
|
|
|
{
|
|
|
|
|
2020-03-10 20:53:04 +00:00
|
|
|
public interface ITandSample
|
2020-03-10 00:01:59 +00:00
|
|
|
{
|
2020-03-10 20:53:04 +00:00
|
|
|
[Tand(typeof(LogTarget<ITandSample>))]
|
2020-03-10 00:01:59 +00:00
|
|
|
int LogMyParams(string s, int i);
|
|
|
|
}
|
|
|
|
|
2020-03-10 20:53:04 +00:00
|
|
|
public class TandSample : ITandSample
|
2020-03-10 00:01:59 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
private int _counter;
|
2020-03-21 00:10:20 +00:00
|
|
|
|
2020-03-10 00:01:59 +00:00
|
|
|
public int LogMyParams(string s, int i)
|
|
|
|
{
|
|
|
|
return ++_counter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|