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
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
130
Other Decks in Programming
See All in Programming
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.4k
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
450
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.7k
Railsバージョンを4倍にした話
optim
0
390
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
sbt 2.0: takeoff
eed3si9n
0
160
ChromeでローカルLLM
ryu1013
0
140
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
440
AmebaブログはKMPから卒業します
kmars0605
0
190
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
We Are The Robots
honzajavorek
0
400
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
It's Worth the Effort
3n
188
29k
Deep Space Network (abreviated)
tonyrice
0
370
Believing is Seeing
oripsolob
1
240
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Balancing Empowerment & Direction
lara
6
1.3k
A Tale of Four Properties
chriscoyier
163
24k
Transcript
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