public IUrlGenerator DefaultUrlGenerator(UrlGenerationOptions options) { if (options.PresignedUrls) { throw new NotImplementedException(); } return(new PublicUrlGenerator( _options.Scheme, _options.Host, _options.Port, $"bulletin-static/{options.BulletinBoardName}")); }
public IUrlGenerator DefaultUrlGenerator(UrlGenerationOptions options) { if (options.PresignedUrls) { throw new NotImplementedException(); } if (_options.EndpointUrl != null) { return(new PublicUrlGenerator( "https", _options.EndpointUrl, -1, _options.BucketName)); } // We default to amazon virtual-hosted urls over https, which are the only // type supported for new bucket types return(new PublicUrlGenerator( "https", $"{_options.BucketName}{S3_HOST_BASE}", -1)); }