mbraceproject / MBrace.Azure

Microsoft Azure PaaS implementation for MBrace
http://mbrace.io
Apache License 2.0
46 stars 23 forks source link

Make CloudRef and CloudArray more consistent w.r.t. IDs #8

Closed dsyme closed 9 years ago

dsyme commented 9 years ago

In the Elastacloud preview edition of MBrace clusters on Azure, the APIs for CloudRef and CloudArray feel a little inconsistent w.r.t. persistence

  1. We have CloudRef.Parse(persistentId) but no corresponding CloudArray.Parse(persistentId)
  2. In both cases, I feel Parse might be better named Existing.
  3. In this formulation the way to get the persistent ID using (cr :> ICloudStorageEntity).Id is not discoverable enough. I think it would just be better to have ID directly on the CloudRef and CloudArray types directly, since the ID is a very fundamental part of these objects.

Thanks!!!! Don

dsyme commented 9 years ago

(this should really have been in MBrace.Core :) )

krontogiannis commented 9 years ago

(Yeah ^^)

eiriktsarpalis commented 9 years ago

The reason for choosing the name .Parse is that it can be used on any file in the blob storage with a user-provided deserializer.

The upcasting issue in the cloud ref has been fixed in b7aecff35b745a562a7e32e408ca34b45b8171e2.

dsyme commented 9 years ago

OK, great.

A few follow up items to discuss

Thanks don

eiriktsarpalis commented 9 years ago

@dsyme as to your questions:

dsyme commented 9 years ago

Fantastic! Great to know the API is progressing in these directions.

I'll close this out now :)

Best don