Exemplo 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
                   ));
        }
Exemplo n.º 2
0
 public SmtpProvider(ImmutableSession metadata = default) : base(metadata)
 {
 }
Exemplo n.º 3
0
 public PhysicalDirectoryProvider(ImmutableSession metadata = default)
     : base(new SoftString[] { "directory" }, metadata)
 {
 }
Exemplo n.º 4
0
 protected MailProvider(ImmutableSession metadata) : base(new SoftString[] { DefaultScheme }, metadata)
 {
 }