Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource.SetUpThreadInfoType C# (CSharp) Метод

SetUpThreadInfoType() защищенный Метод

Sets the type of the thread info.
protected SetUpThreadInfoType ( bool isWeb, String customType ) : void
isWeb bool if we run in a web context or not
customType String Type of the custom implementation
Результат void
		protected void SetUpThreadInfoType(bool isWeb, String customType)
		{
			Type threadInfoType = null;

			if (isWeb)
			{
				threadInfoType = typeof(WebThreadScopeInfo);
			}

			if (customType != null && customType != String.Empty)
			{
				String typeName = customType;

				threadInfoType = Type.GetType(typeName, false, false);

				if (threadInfoType == null)
				{
					String message = String.Format("The type name {0} could not be found", typeName);

					throw new ActiveRecordException(message);
				}
			}

			ThreadScopeInfoImplementation = threadInfoType;
		}