is it possible/is there an example to build a stateful service that exposes OData endpoint?
The point is to collect data in such a service and then expose the collection via OData endpoint
Regards, Stefan
Sure, you can expose any kind of endpoint using whatever protocol or framework you want in a stateful service. I recommend using OData for Web API.
Here's an example project that uses Web API in a stateful service: https://github.com/Azure-Samples/service-fabric-dotnet-getting-started/tree/master/Services/WordCount/WordCount.Service