Microsoft.Azure.Amqp.AmqpDebug.AmqpDebugImpl.GetInstance C# (CSharp) Method

GetInstance() static private method

static private GetInstance ( object source ) : AmqpDebugImpl
source object
return AmqpDebugImpl
            static AmqpDebugImpl GetInstance(object source)
            {
                string key = source.ToString();
                AmqpDebugImpl instance;
                if (!instances.TryGetValue(key, out instance))
                {
                    instance = instances.GetOrAdd(key, new AmqpDebugImpl(DefaultSize));
                }

                return instance;
            }