System.Runtime.Remoting.RemotingConfiguration.ConfigHandler.ReadPreload C# (CSharp) Method

ReadPreload() private method

private ReadPreload ( Mono.Xml.SmallXmlParser attrs ) : void
attrs Mono.Xml.SmallXmlParser
return void
		void ReadPreload (SmallXmlParser.IAttrList attrs)
		{
			string type = attrs.GetValue ("type");
			string assm = attrs.GetValue ("assembly");
			
			if (type != null && assm != null)
				throw new RemotingException ("Type and assembly attributes cannot be specified together");
				
			if (type != null)
				SoapServices.PreLoad (Type.GetType (type));
			else if (assm != null)
				SoapServices.PreLoad (Assembly.Load (assm));
			else
				throw new RemotingException ("Either type or assembly attributes must be specified");
		}