THRIFT-3030 TThreadedServer: Property for number of clientThreads Client: C# Patch: Nils Hügelmann
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/c7cf379a Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/c7cf379a Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/c7cf379a Branch: refs/heads/master Commit: c7cf379aaede7df0f6117008a561c1ba9aa73044 Parents: d683440 Author: Jens Geyer <[email protected]> Authored: Sat Mar 7 13:18:02 2015 +0100 Committer: Jens Geyer <[email protected]> Committed: Sat Mar 7 14:24:58 2015 +0100 ---------------------------------------------------------------------- lib/csharp/src/Server/TThreadedServer.cs | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/c7cf379a/lib/csharp/src/Server/TThreadedServer.cs ---------------------------------------------------------------------- diff --git a/lib/csharp/src/Server/TThreadedServer.cs b/lib/csharp/src/Server/TThreadedServer.cs index a09337c..f8ed8e2 100644 --- a/lib/csharp/src/Server/TThreadedServer.cs +++ b/lib/csharp/src/Server/TThreadedServer.cs @@ -40,6 +40,10 @@ namespace Thrift.Server private object clientLock; private Thread workerThread; + public int ClientThreadsCount { + get { return clientThreads.Count; } + } + public TThreadedServer(TProcessor processor, TServerTransport serverTransport) : this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(),
