Esempio n. 1
0
        public static Task <IResourceInfo> GetHttpAsync(this IResourceProvider resourceProvider, string path, ImmutableSession metadata = default)
        {
            var uri = new UriString(path);

            return(resourceProvider.GetAsync
                   (
                       uri.IsAbsolute
                    ? uri
                    : new UriString(HttpProvider.DefaultScheme, (string)uri.Path.Original),
                       metadata
                   ));
        }
Esempio n. 2
0
 public SmtpProvider(ImmutableSession metadata = default) : base(metadata)
 {
 }
Esempio n. 3
0
 public PhysicalDirectoryProvider(ImmutableSession metadata = default)
     : base(new SoftString[] { "directory" }, metadata)
 {
 }
Esempio n. 4
0
 protected MailProvider(ImmutableSession metadata) : base(new SoftString[] { DefaultScheme }, metadata)
 {
 }