Пример #1
0
 public bool Equals(AzureStorageBlobReference other)
 {
     return(other != null& uri.Equals(other.uri));
 }
        private string ReplaceReference(string source, FileReference sourceReference, AzureStorageBlobReference blobReference)
        {
            FileReference fileReference = FileReference.Parse(source);

            return(fileReference == sourceReference?blobReference.ToString() : source);
        }
 public AzureStorageBlobAttachment(string identifier, IMessage message, FileReference fileReference, AzureStorageBlobReference blobReference)
     : base(identifier, message)
 {
     this.fileReference = fileReference;
     this.blobReference = blobReference;
 }
 public JToken ReplaceReference(JToken source, FileReference sourceReference, AzureStorageBlobReference blobReference)
 {
     return(CopyAndApply(s => ReplaceReference(s, sourceReference, blobReference), source));
 }