Top "Servicestack" questions

ServiceStack is Fast, Simple and Versatile message-based Web Services and MQ Framework for .NET and .NET Core

ServiceStack default format

I would like to set ServiceStack's default format to JSON, as opposed to the HTML formatted response it normally returns …

c# .net servicestack
Can ServiceStack services contain multiple methods?

Environment is Visual Studio 2012, ServiceStack, ASP.NET Web Application Project (followed https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice) Looking through …

c# api rest soa servicestack
Returning Raw Json in ElasticSearch NEST query

I'm doing a small research about a client for elastic search in .net and I found that NEST is one …

elasticsearch servicestack json.net nest
How to retrieve auto-incremented Id in ServiceStack OrmLite?

For a table that has an identity: [AutoIncrement] public int Id { get; set;} When inserting a new row into the …

sql-server servicestack ormlite-servicestack
Serialize C# Enum Definition to Json

Given the following in C#: [Flags] public enum MyFlags { None = 0, First = 1 << 0, Second = 1 << 1, Third = 1 << 2, Fourth = 1 &…

c# json serialization enums servicestack
How can I prevent race conditions using Redis?

I used Only Redis as my DB, and my client is ServiceStack.Redis. The thing is, if two concurrent request …

redis servicestack servicestack.redis
ServiceStack / ORM Lite - Foreign Key Relationships

I have the following POCO: [Alias("Posts")] public class Post : IReturn<Post> { [AutoIncrement] [PrimaryKey] public int PostId { get; …

servicestack ormlite-servicestack
ServiceStack + ORMLite + Repository Pattern

I'm trying to implement the Repository pattern using ORMLite. I initially started off with: public List<Todo> GetByIds(…

design-patterns repository-pattern servicestack ormlite-servicestack
ServiceStack razor default page

Say I have 2 pages /NotADefault.cshtml /Views/Default.cshtml Question 1. Now I run it, page A always gets called implicitly …

c# servicestack
Redis queue vs MSMQ

For a long time we were using msmq and redis queue (IRedisList). Couple of month ago we started trying redis …

c# .net redis servicestack publish-subscribe