ServiceStack 4 Cookbook
eBook - ePub

ServiceStack 4 Cookbook

Kyle Hodgson, Darren Reid

Buch teilen
  1. 444 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

ServiceStack 4 Cookbook

Kyle Hodgson, Darren Reid

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist ServiceStack 4 Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu ServiceStack 4 Cookbook von Kyle Hodgson, Darren Reid im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatique & Développement Web. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2015
ISBN
9781783986569

ServiceStack 4 Cookbook


Table of Contents

ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Configuration and Routing
Introduction
Why REST?
Up and running with ServiceStack
How to do It...
How it works...
There's more...
Routing using data transfer object attributes
Getting ready
How to do It...
How it works...
There's more...
Isolating web service routes from a web application
Getting ready
How to do It...
How it works...
There's more...
Common ServiceStack plugins
How to do It...
How it works...
Writing a custom audit plugin
How to do It...
How it works...
See also
Adding Routes via the API
How to do It...
How it works…
There's more...
Structuring your project to avoid dependency issues
Getting ready
How to do It
Managing dependencies with Funq and Inversion of Control (IoC)
Getting ready
How to do It…
How it works…
Sharing and accessing configuration and common functionality using Funq IoC
Getting ready...
How to do It...
How it works...
There's more...
2. Services and Data Transfer Objects
Introduction
Creating a basic create/read/update/delete service
Getting ready
How to do it...
How it works...
There's more…
See also
Splitting HTTP request methods
Getting ready
How to do it…
There's more...
Hosting services from different assemblies
Getting ready
How to do it…
How it works…
There's more…
Utilizing the original HTTP request
Getting ready
How to do it…
How it works…
There's more…
See also
Overriding serialization of request object types
Getting ready
How to do it…
How it works…
Creating a simple admin service
Getting ready
How to do it…
How it works…
See also
Intercepting requests and responses using attributes
How to do It…
How it works…
There's more…
Making a basic proxy for existing web services
How to do It…
How it works…
Wrapping multiple existing services and exposing them through ServiceStack
How to do it…
3. Testing and Logging
Introduction
Unit testing ServiceStack applications
Getting ready
How to do it…
How it works…
There's more…
Integration testing with the ServiceStack C# client
Getting ready
How to do it…
How it works…
There's more…
Functional contract testing ServiceStack services
Getting ready
How to do it…
How it works…
Testing POST
Testing PUT
Testing DELETE
Accessing the request-and-response object with the JsonServiceClient
Getting ready
How to do it…
How it works…
There's more…
Continuous Integration with TeamCity and self-hosted services
Getting ready
How to do it…
How it works…
There's more…
Logging with a choice of frameworks
Getting ready
How to do it…
How it works…
There's more…
Writing a logger to monitor exceptions via e-mail
Getting ready
How to do it…
How it works…
There's more…
4. Object Relational Mapping (OrmLite)
Introduction
Modeling your database with types and attributes
Getting ready
How to do it…
How it works…
PrimaryKey attribute
AutoIncrement attribute
References attribute
There's more…
Using and accessing OrmLite
Getting ready
How to do it…
How it works…
See also
Using OrmLite filters to create audit functionality
Getting ready
How to do it…
How it works…
There's more…
CRUD and other common operations
Getting ready
How to do it…
How it works…
Creating records
Updating records
Deleting records
There's more…
Utilizing stored procedures using OrmLite
Getting ready
How to do it…
How it works…
OrmLiteSPStatement
Writing our own wrapper
There's more…
Mapping custom queries to POCOs
Getting ready
How to do it…
How it works…
Starting with an existing database with OrmLite and T4 templates
Getting ready
How to do it…
How it works…
There's more…
Working with Entity Framework and ServiceStack
Getting ready
How to do it…
How it works…
5. HTML and Form Data
Introduction
Getting started with ServiceStack and Razor templates
Getting ready
How to do it…
How it works…
There's more…
Using Markdown for website content
Getting ready
How to do it…
How it works…
Handling file uploads and streaming data from services
Getting ready
How to do it…
How it works…
There's more…
Testing file uploads
Overriding Razor views or templates using attributes
Getting ready
How to do it…
How it works…
There's more…
Creating and displaying a login and registration page based on authentication
Getting ready
How to do it…
How it works…
There's more…
Submitting a form to a service and handling server-side validation on an HTML client
Getting ready
How to do it…
How it works…
6. Filters and Validators
Introduction
Creating static validation rules using fluent syntax
How to do it…
How it works…
There's more…
Returning meaningful HTTP error messages
Getting ready
How to do it…
How it works…
There's more…
Adding custom headers via the response filter
Getting ready
How to do it…
How it works…
There's more…
Restricting file uploads by type using filters
Getting ready
How to do it…
How it works…
There's more…
Creating a user-configurable HTTP callback service using a response filter
Getting ready
How to do it…
How it works…
Applying a rate limit to a web service endpoint using request filter
Getting ready
How to do it…
How it works…
There's more…
Restrict user actions by session details using a validator
Getting ready
How to do it…
How it works…
There's more…
Common HTTP status codes
7. Security and Authentication
Introduction
Getting started with authentication, sessions, registration, and user repositories
Getting ready
How to do it…
How it works…
Getting started with Twitter authentication
Getting ready
How to do it…
How it works…
Getting started with Google authentication
Getting ready
How to do it…
How it works…
Getting started with Facebook authentication
Getting ready
How to do it…
How it works…
Using multiple authentication providers and persisting a user's preferred profile image
Getting ready
How t...

Inhaltsverzeichnis