Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Integrating with ServiceStack using the C# client and Native Types


When you're looking to integrate a ServiceStack service with a .NET project, often the first place to start is the ServiceStack C# client. Flexible and easy to use, it's the best way to drop in a connection to your service. The end result is a strongly typed connection. We will also use ServiceStack's Native Types feature so that our client is a separate application with generated references to improve integration.

Getting ready

Before we start, it's important to have your project laid out in a way that's convenient for the client to pick up your custom types. If you use any of the templates from ServiceStackVS, your project will be laid out in the recommended way from the start. To make it clear in this example, we are going to call the main project TimelineService.Hosting. This project will be a part of the TimelineService solution that will be our server application:

  • TimelineService.Hosting: This contains our AppHost class...