protected override Task <IResourceInfo> DeleteAsyncInternal(UriString uri, IImmutableSession metadata)
 {
     return(_resourceProvider.DeleteAsync(UpdatePath(uri), metadata));
 }
Esempio n. 2
0
 public MailResourceInfo([NotNull] UriString uri, Stream response, MimeType format)
     : base(uri, ImmutableSession.Empty.Set(Use <IResourceNamespace> .Namespace, x => x.Format, format))
 {
     _response = response;
 }
 protected override Task <IResourceInfo> PutAsyncInternal(UriString uri, Stream value, IImmutableSession metadata)
 {
     return(_resourceProvider.PutAsync(UpdatePath(uri), value, metadata));
 }
Esempio n. 4
0
 /// <summary>
 /// Formats exception message: {ResourceProvider} cannot {METHOD} '{uri}' because {reason}.
 /// </summary>
 internal static string FormatMessage <T>(string memberName, UriString uri, string reason)
 {
     return($"{typeof(T).ToPrettyString()} cannot {ExtractMethodName(memberName).ToUpper()} '{uri}' because {reason}.");
 }