Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Getting started with ServiceStack
Search
Philip Proplesch
September 09, 2013
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Getting started with ServiceStack
Philip Proplesch
September 09, 2013
Transcript
25 slides
Getting started with ServiceStack Philip Proplesch | netzkern AG
None
Windows Communication Framework http://www.flickr.com/photos/criminalintent/9620369338/
Who? • Demis Bellot @demisbellot aka @mythz • Developer @
StackExchange • ~ 160 Contributors
Frustration-Free WebServices http://www.flickr.com/photos/itsjed/5910382383/
None
What? • Code-only • Strongly typed POCOs • XML, JSON,
HTML, CSV and JSV out of the box • REST and SOAP • Testable • Performance • No other external dependencies
ServiceStack vs. Web API vs. WCF vs. X http://www.flickr.com/photos/sergedegracia/4502807973/
It‘s not just about services! http://www.flickr.com/photos/thecrazyfilmgirl/3248283617/
The stack Services Text OrmLite Caching Logging Redis IoC
Getting started... Configure HttpHandler in your web.config Create a class
which derives from AppHost
IoC ServiceStack uses Funq by default. public class AppHost :
AppHostBase { public AppHost() : base("Services", typeof(AppHost).Assembly) { } public override void Configure(Container container) { // TODO: Register your dependencies. } }
Attribute-based routing [Route("/greet/{Name}")] public class Greet : IReturn<GreetResponse> { public
string Name { get; set; } }
AppHost-based routing Routes .Add<Greet>("/greet/{Name}") .Add<Foo>("/foo") .Add<Bar>("/bar");
Metadata
Metadata
Return types string, Stream and byte[] will be written to
the OutputStream directly.
Status codes return new HttpResult(responseDto, HttpStatusCode.Conflict) { StatusDescription = "something
went wrong...", }; throw new HttpError( HttpStatusCode.Conflict, "something went wrong...");
Clients • .NET • *ServiceClient • JavaScript • It‘s just
a REST endpoint, so use whatever you want...
Validation
Authentication http://www.flickr.com/photos/rightee/260054956/
Write your own plugins and filters http://www.flickr.com/photos/39747297@N05/5229733647/
Supported platforms
Support? • Wiki on GitHub • Community-driven support through StackOverflow
• [servicestack]
None
More Decks by Philip Proplesch
See All by Philip Proplesch
OWIN & ASP.NET vNext
philipproplesch
1
190
ASP.NET MVC - Beyond "WTF is a controller?"
philipproplesch
0
140
Other Decks in Programming
See All in Programming
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
140
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Datadog を OTel にするメリットを考察する — Datadog との併用を実アプリで確かめる / Examining the Benefits of Moving Datadog to OTel — Testing OTel Alongside Datadog in a Real App
seike460
PRO
1
110
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
530
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
Crash Auto Pipelines
veronikapj
1
460
眠らない開発チームの作り方
biwakonbu
0
180
AppFunctionsの内部実装を紐解く
hiroaki404
1
130
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
260
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
1.3k
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
1.3k
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
350
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
187
23k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How to build a perfect <img>
jonoalderson
1
6.3k
The Spectacular Lies of Maps
axbom
PRO
1
1.2k
Optimizing for Happiness
mojombo
378
72k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
YesSQL, Process and Tooling at Scale
rocio
174
15k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.6k
Abbi's Birthday
coloredviolet
5
11k
Building an army of robots
kneath
307
47k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k