Print Page | Close Window

Multi Tenant Deployment

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1638
Printed Date: 28-Apr-2025 at 12:58am


Topic: Multi Tenant Deployment
Posted By: francois
Subject: Multi Tenant Deployment
Date Posted: 04-Feb-2010 at 1:38pm
Hi,
 
I have developed a multi tenant application. For each tenant I have to create a new EntityServer_XXXX.svc for the datasource extentions to work.
 
How do I manually create the required services without having these *.svc files on IIS?
 
The documentation say that EntityService automatically creates EntityServers for each tenant? How do I avoid creating the .svc files.
 
I'm sure im missing something...
 
Thank you



Replies:
Posted By: stephenmcd1
Date Posted: 04-Feb-2010 at 2:09pm
We have a similar situation where we have dynamic datasource extensions so can't possibly create all the necessary *.svc files except at runtime.
 
I ended up implementing a simple VirtualPathProvider that checks for requests in the form of ~/EntityServer_XYZ.svc and dynamically serves up the necessary svc file.
 
This was the best solution I could come up.  I'd be interested to hear if there is a better way.
 
-Stephen


Posted By: francois
Date Posted: 07-Feb-2010 at 10:24am

mmm, it is an alternative but I'm sure the development team must have had another solution in mind for this. Would be great to hear the right way to do this.

We cannot be the first ones implementing multi-tenant scenarios...


Posted By: kimj
Date Posted: 08-Feb-2010 at 8:46am
The need for .svc files for every service is a requirement when hosting WCF services under IIS, and is not a DevForce-specific requirement.  If a BOS is hosted as a Windows Service (ServerService.exe) these files are not needed.  The VirtualPathProvider is the only alternative in .NET 3.5.  (In .NET 4.0 "file-less" activation is now supported.)  DevForce 2009 does not ship with a VirtualPathProvider, but it's fortunately not too difficult to write one (and we can provide a sample). 



Print Page | Close Window