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
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
340
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
110
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
580
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
190
Distance field of Julia set
kinakomoti321
0
330
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
300
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
190
Seven New Principles of Software Engineering
yegor256
0
500
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
330
はじめてのPLATEAU
nokonoko1203
1
650
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
The Cult of Friendly URLs
andyhume
79
7.1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Typedesign – Prime Four
hannesfritz
42
3.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
840
The Invisible Side of Design
smashingmag
301
52k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Raft: Consensus for Rubyists
vanstee
143
7.9k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Chasing Engaging Ingredients in Design
codingconduct
0
400
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k