Skip to content
Browse files

change lambda code to make MONO happy

  • Loading branch information...
1 parent eba3c2f commit add4b6c9ad94571914d3a60ac3f03b735321dc34 @mythz mythz committed Feb 28, 2011
View
8 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CachedServices.cs
@@ -13,8 +13,8 @@ public class CachedCustomersService : RestServiceBase<CachedCustomers>
public override object OnGet(CachedCustomers request)
{
return base.RequestContext.ToOptimizedResultUsingCache(
- this.CacheClient, "urn:customers", () =>{
- var service = base.ResolveService<CustomersService>();
+ this.CacheClient, "urn:customers", () => {
+ var service = this.ResolveService<CustomersService>();
return (CustomersResponse) service.Get(new Customers());
});
}
@@ -30,7 +30,7 @@ public override object OnGet(CachedCustomerDetails request)
return base.RequestContext.ToOptimizedResultUsingCache(
this.CacheClient, cacheKey, () =>
{
- return (CustomerDetailsResponse)base.ResolveService<CustomerDetailsService>()
+ return (CustomerDetailsResponse)this.ResolveService<CustomerDetailsService>()
.Get(new CustomerDetails { Id = request.Id });
});
}
@@ -45,7 +45,7 @@ public override object OnGet(CachedOrders request)
var cacheKey = UrnId.Create<Orders>(request.CustomerId ?? "all", request.Page.GetValueOrDefault(0).ToString());
return base.RequestContext.ToOptimizedResultUsingCache(this.CacheClient, cacheKey, () =>
{
- return (OrdersResponse)base.ResolveService<OrdersService>()
+ return (OrdersResponse)this.ResolveService<OrdersService>()
.Get(new Orders { CustomerId = request.CustomerId, Page = request.Page });
});
}
View
4 src/ServiceStack.Northwind/ServiceStack.Northwind/ServiceStack.Northwind.csproj
@@ -94,7 +94,9 @@
<Content Include="img\database-18x18.jpg" />
<Content Include="img\database-icon.jpg" />
<Content Include="img\Mono-powered-big.png" />
- <Content Include="Web.config" />
+ <Content Include="Web.config">
+ <SubType>Designer</SubType>
+ </Content>
</ItemGroup>
<ItemGroup>
<Compile Include="Global.asax.cs">

0 comments on commit add4b6c

Please sign in to comment.
Something went wrong with that request. Please try again.