Book Image

Mastering ServiceStack

By : Andreas Niedermair
Book Image

Mastering ServiceStack

By: Andreas Niedermair

Overview of this book

Table of Contents (13 chapters)

Chapter 2. ServiceStack as Your Unique Point of Access

An incorporation of ServiceStack that takes advantage of all its features, must be made in your design. This integration can be more challenging in an existing application, where you apply ServiceStack at the top as an additional layer.

One common scenario is adding an API over HTTP to an existing system, in order to provide an abstracted and defined public access to internal functionalities. The next step in most scenarios is to add authentication and authorization, and a session storage.

Before we introduce an example application as our working item, we will discuss the IoC container Funq that comes shipped with ServiceStack to lay a solid foundation for our design.

We will cover the following topics in this chapter:

  • The IoC container

  • Session

  • Cache

  • Authentication providers