Example #1
0
 public Uri GetFileResourceUri(FileResource resource)
 {
     return new Uri(Address + Url.Files + "/" + resource.Id);
 }
 public FileResourceEventArgs(FileResource resource )
 {
     ActivityId = resource.ActivityId;
     Resource = resource;
 }
Example #3
0
 public Stream GetFileResource(FileResource resource)
 {
     return Rest.DownloadFile(Address + Url.Files, resource.Id);
 }
 public void Delete(FileResource resource)
 {
     _system.Activities[resource.ActivityId].FileResources.Remove(resource);
     _system.DeleteFileResource(resource);
 }