Commits

Anonymous committed 39819a9

Fix: Serializable attribute must NOT be added!

Comments (0)

Files changed (3)

LiteREST/RestInterceptor.cs

 						{
 							var parameters = invocation.Method.GetParameters();
 							int i = 0;
-							response = client.GetAsync(string.Format("api/{0}?{1}", entityName.Pluralize(),
-								string.Join("&", invocation.Arguments.Select(arg => string.Format("{0}={1}", parameters[i++].Name, arg)))
-								)).Result;
+							var uri = string.Format("api/{0}?{1}", entityName.Pluralize(),
+								string.Join("&", invocation.Arguments.Select(arg => string.Format("{0}={1}", parameters[i++].Name, arg))));
+							response = client.GetAsync(uri).Result;
 						}
 
 						if (response.IsSuccessStatusCode)

Test/FinancialCondition.cs

 namespace Test
 {
-	using System;
-
-	[Serializable]
+	using System;	
+	
 	public partial class FinancialCondition
 	{
 
 	{
 		static void Main(string[] args)
 		{
-			Setup.Register<IFinancial>("http://WebServer/Financial", SerializationType.XML);
+			Setup.Register<IFinancial>("http://192.168.1.9/Financial", SerializationType.JSON);
 
 			var financial = Setup.GetInstance<IFinancial>();
 			//dynamic financial = Setup.GetInstance("http://192.168.1.10/SFS/");