public string GetMethodName(Message message, bool throwOnError) { try { var request = (InvokeMethodRequest)message.BodyObject; return(methodInvoker.GetMethodName(request)); } catch { if (throwOnError) { throw; } else { return(null); } } }