REST set for .Net?

I just started learning RESTful service using .Net C #. CodePlex has WCF REST start code available. I watched several Screen-casts from Pluralsight. The demos are very cool, but they are based on a preview of Startkit.

I downloaded the latest version of Preview 2. It seems that some classes, such as Service.basic.svc.cs, are not available. Service.basic.svc.cs provides open source code so you can change its implementation, endpoint templates, help descriptions, and more. This missing part makes it difficult to customize my templates, implementations, and help descriptions. Perhaps the new Preview 2 has a different structure o alternative ways to achieve the same results. However, I simply cannot find any additional information about them.

In any case, WCF REST Startkit is still in the preview version. Not sure when the final release will be available and not sure if it will be free and open.

Does anyone have experience with Preview 2 and know these changes and alternatives? Or is there another open source REST library for .Net or ASP.NET?

+3
source share
2 answers

"Or is there another open source REST library for .Net or ASP.NET?"

Openrasta

+4
source

It works great for me with preview 2. However, I heard about cases where, if the installation failed, you need to remove and reinstall the starter kit.

namespace MySimpleService {
    // TODO: Modify the service behavior settings (instancing, concurrency etc) based on the service requirements. Use ConcurrencyMode.Multiple if your service implementation
    //       is thread-safe.
    // TODO: NOTE: Please set IncludeExceptionDetailInFaults to false in production environments.
    [ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Single)]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Service : AtomPubServiceBase, IAtomPubService {
        // TODO: These variables are used by the sample implementation. Remove if needed
        #region variables used in sample implementation
        const string xxx= "xxxx";
        List<SyndicationItem> booksmarkEntries = new List<SyndicationItem>();
        Dictionary<string, byte[]> collection1MediaItems = new Dictionary<string, byte[]>();
        Dictionary<string, string> collection1ContentTypes = new Dictionary<string, string>();
        #endregion

        public Service() {
            AddEntry("Main", "http:
0
source

Source: https://habr.com/ru/post/1716374/


All Articles