ApplicationServer ignores namespace name (Code-first)

It seems ApplicationServer ignores given name space and generates RODL from all Services defined in the assembly:

ApplicationServer server = new ApplicationServerOverride(“Server”, “Service”);

Service definition:

using RemObjects.SDK.Server;
using RemObjects.SDK.Server.HttpApi;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rest
{
[Service]
public class Service1 : RemObjects.SDK.Server.Service
{
public Service1()
{
this.InitializeComponent();
}

    // Required for designer support
    private void InitializeComponent()
    {
    }

    [ApiMethod(HttpApiPath = "project", HttpApiMethod = ApiRequestMethod.Get)]
    public Rest.Project Project(string someValue)
    {
        Rest.Project project = new Rest.Project();
        project.ID = 10;
        project.Name = "Project 1";
        return project;
    }

}

}

The namespace is set to “Service” while the actual service is defined inside the “Rest” namespace. Both the Rodl and HttpApi pick up this type. But I think it should not add given service to the Rodl and HttpApi.

Hi,

from Defining Code-First services (.NET) :

Thanks

Still wonder what is the purpose for the RodlNameSpace parameter in ApplicationServer then?

Hi,

this namespace will be used for generating of files for client-side.