Bamboo.Prevalence.PrevalenceEngine.GetCurrent C# (CSharp) Метод

GetCurrent() статический приватный Метод

static private GetCurrent ( string methodName ) : PrevalenceEngine
methodName string
Результат PrevalenceEngine
		static PrevalenceEngine GetCurrent(string methodName)
		{
			PrevalenceEngine current = PrevalenceEngine.Current;
			if (null == current)
			{
				throw new InvalidOperationException(string.Format("{0} can only be called during the execution of a command or query!"));
			}
			return current;
		}
	}