- Joined
- Apr 18, 2011
- Messages
- 66
- Reaction score
- 8
The original source code below can not be compiled in V16 server
public DNListener()
: base("DN")
{
SetTypeHandler(
//updated
(x) => Console.WriteLine($"UPDATED {DNInfo(x)}"),
//inserted
(x) => Console.WriteLine($"INSERTED {DNInfo(x)}"),
//deleted
(x) => Console.WriteLine($"DELETED {DNInfo(x)}"),
null, null);
}
than I have to change to :
public DNListener()
: base("DN")
{
SetTypeHandler(
//updated
(x) => Console.WriteLine($"UPDATED {DNInfo(x)}"),
//inserted
(x) => Console.WriteLine($"INSERTED {DNInfo(x)}"),
//deleted
(x,y) => Console.WriteLine($"DELETED {DNInfo(x)}"),
null, null);
}
Then we can compile but we cannot monitor the DN using this function while RegistrationListener can work well.
Please update the source code to be compatible with current 3CX Version.
public DNListener()
: base("DN")
{
SetTypeHandler(
//updated
(x) => Console.WriteLine($"UPDATED {DNInfo(x)}"),
//inserted
(x) => Console.WriteLine($"INSERTED {DNInfo(x)}"),
//deleted
(x) => Console.WriteLine($"DELETED {DNInfo(x)}"),
null, null);
}
than I have to change to :
public DNListener()
: base("DN")
{
SetTypeHandler(
//updated
(x) => Console.WriteLine($"UPDATED {DNInfo(x)}"),
//inserted
(x) => Console.WriteLine($"INSERTED {DNInfo(x)}"),
//deleted
(x,y) => Console.WriteLine($"DELETED {DNInfo(x)}"),
null, null);
}
Then we can compile but we cannot monitor the DN using this function while RegistrationListener can work well.
Please update the source code to be compatible with current 3CX Version.