Can I proxy a ServiceStack Service? -


i'm wondering if it's possible have servicestack use aop-proxied service, instead of main implementation. avoid having class inherits servicestack.serviceinterface.service wrapper, if possible. looks me need be, thought wouldn't hurt ask, sure.

i looking way achieve this, proxy services of servicestack app.

till have learned that: way can generate proxy service

[route("/reqstars")] public class allreqstars : ireturn<list<reqstar>> { }  public class reqstarsservice : service {     public virtual list<reqstar> any(allreqstars request)      {         return db.select<reqstar>();     } } 

is using custom service generation strategy. , generating proxies of iservice interface class target , marking method of service virtual.

i have not tested yet , not know (and researching now) if servicestack can handle service generator delegate can use castle's dynamicproxy.

good luck!


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -