Replaces the Command is X calls with the lighter weight IsXXX that are generated into the Commands themselves.
diff --git a/src/main/csharp/Transport/Failover/FailoverTransport.cs b/src/main/csharp/Transport/Failover/FailoverTransport.cs
index f53d479..b7fb69a 100644
--- a/src/main/csharp/Transport/Failover/FailoverTransport.cs
+++ b/src/main/csharp/Transport/Failover/FailoverTransport.cs
@@ -538,7 +538,7 @@
return;
}
- if(command is RemoveInfo)
+ if(command.IsRemoveInfo)
{
// Simulate response to RemoveInfo command
OnCommand(this, new Response() { CorrelationId = command.CommandId });
diff --git a/src/main/csharp/Transport/InactivityMonitor.cs b/src/main/csharp/Transport/InactivityMonitor.cs
index d321284..ae073bd 100644
--- a/src/main/csharp/Transport/InactivityMonitor.cs
+++ b/src/main/csharp/Transport/InactivityMonitor.cs
@@ -201,7 +201,7 @@
inRead.Value = true;
try
{
- if(command is KeepAliveInfo)
+ if(command.IsKeepAliveInfo)
{
KeepAliveInfo info = command as KeepAliveInfo;
if(info.ResponseRequired)
@@ -217,7 +217,7 @@
}
}
}
- else if(command is WireFormatInfo)
+ else if(command.IsWireFormatInfo)
{
lock(monitor)
{
@@ -255,7 +255,7 @@
{
throw new IOException("Channel was inactive for too long: " + next.RemoteAddress.ToString());
}
- if(command is WireFormatInfo)
+ if(command.IsWireFormatInfo)
{
lock(monitor)
{
diff --git a/src/main/csharp/Transport/ResponseCorrelator.cs b/src/main/csharp/Transport/ResponseCorrelator.cs
index e0e5268..43464f6 100644
--- a/src/main/csharp/Transport/ResponseCorrelator.cs
+++ b/src/main/csharp/Transport/ResponseCorrelator.cs
@@ -112,7 +112,7 @@
protected override void OnCommand(ITransport sender, Command command)
{
- if(command is Response)
+ if(command.IsResponse)
{
Response response = (Response) command;
int correlationId = response.CorrelationId;