THRIFT-4831 interface ITProtocolFactory should be class TProtocolFactory again
Client: netstd
Patch: Jens Geyer
This closes #1767
diff --git a/tutorial/netstd/Server/Program.cs b/tutorial/netstd/Server/Program.cs
index e74a042..c5e26d1 100644
--- a/tutorial/netstd/Server/Program.cs
+++ b/tutorial/netstd/Server/Program.cs
@@ -166,34 +166,30 @@
break;
}
- ITProtocolFactory inputProtocolFactory;
- ITProtocolFactory outputProtocolFactory;
+ TProtocolFactory inputProtocolFactory;
+ TProtocolFactory outputProtocolFactory;
switch (protocol)
{
case Protocol.Binary:
- {
inputProtocolFactory = new TBinaryProtocol.Factory();
outputProtocolFactory = new TBinaryProtocol.Factory();
processor = new Calculator.AsyncProcessor(handler);
- }
break;
+
case Protocol.Compact:
- {
inputProtocolFactory = new TCompactProtocol.Factory();
outputProtocolFactory = new TCompactProtocol.Factory();
processor = new Calculator.AsyncProcessor(handler);
- }
break;
+
case Protocol.Json:
- {
inputProtocolFactory = new TJsonProtocol.Factory();
outputProtocolFactory = new TJsonProtocol.Factory();
processor = new Calculator.AsyncProcessor(handler);
- }
break;
+
case Protocol.Multiplexed:
- {
inputProtocolFactory = new TBinaryProtocol.Factory();
outputProtocolFactory = new TBinaryProtocol.Factory();
@@ -208,8 +204,8 @@
multiplexedProcessor.RegisterProcessor(nameof(SharedService), sharedServiceProcessor);
processor = multiplexedProcessor;
- }
break;
+
default:
throw new ArgumentOutOfRangeException(nameof(protocol), protocol, null);
}