Reputation: 1510
assuming I have 10 web sites & 1 blob(for images) site/cloud-service/wcf/whatever MS call it ,
How all 10 web sites , using this 1 blob service? For example I wanna each site to have admin page
to manage blob images ( crud ) ,
Make Azure-WCF-Blob service and each site will use it? How to secure it that only the 10 site can
have access ?
Other options?
( with 1 DB it no problem , only connection string... )
UPDATE :
I'll ask it more simple , 10 web sites , in each web site I don't wanna duplicate 10 times the code for Container operations , how I create 1 blob service/site/what's the best option here/ and then reuse it in each site ? each site will have a siteName/Admin controller , which can manage the container/blob
Upvotes: 0
Views: 83
Reputation: 60143
I'm not sure I fully understood the question, but based on the sentence "With 1 DB it's no problem, only connection string," I think what you're missing is that Windows Azure storage works the same way. You create a storage account, and from that you have an account name and key. In .NET, you even construct it as a connection string, so from all your websites, you would do:
var blobs = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=abcd1234...").CreateCloudBlobClient();
// do stuff with blobs here
As long as you use the same connection string, all your websites will be using the same storage.
Upvotes: 1
Reputation: 24895
Ok so you're talking about blob storage. And if I understand your question, it looks like you want to make sure a website cannot access data (images) of an other website. In that case you have a few options:
Upvotes: 1