|
Families.Web 1.0.0.0
사진, 동영상, 글, 댓글과 반응을 가족끼리만 공유하는 비공개 앨범·타임라인 서비스입니다.
|


Public 멤버 함수 | |
| LocalMediaService (IFamilyTenantStore tenants, IGlobalSettingsStore globalSettings) | |
| async Task< string > | UploadPostMediaAsync (string slug, string postId, IBrowserFile file, CancellationToken ct=default) |
| async Task< string > | UploadCoverAsync (string slug, IBrowserFile file, CancellationToken ct=default) |
| Task | DeletePostMediaAsync (string slug, string postId, string fileName, CancellationToken ct=default) |
| Task< IReadOnlyList< MediaInfo > > | GetPostMediaAsync (string slug, string postId, CancellationToken ct=default) |
| string | GetMediaUrl (string slug, string postId, string fileName) |
| string | GetThumbUrl (string slug, string postId, string fileName) |
| string | GetCoverUrl (string slug, string fileName) |
Private 멤버 함수 | |
| async Task<(long ImageBytes, long VideoBytes)> | GetLimitsAsync (string slug, CancellationToken ct) |
정적 Private 멤버 함수 | |
| static long | ToBytes (int mb) |
| static string | FormatLimit (long bytes) |
Private 속성 | |
| readonly IFamilyTenantStore | _tenants |
| readonly IGlobalSettingsStore | _globalSettings |
정적 Private 속성 | |
| static readonly string[] | AllowedImageExts = [".jpg", ".jpeg", ".png", ".webp", ".gif"] |
| static readonly string[] | AllowedVideoExts = [".mp4", ".webm", ".mov", ".m4v"] |
Local Media Service 기능과 관련 상태를 캡슐화합니다.
LocalMediaService.cs 파일의 15 번째 라인에서 정의되었습니다.
|
inline |
지정한 설정으로 LocalMediaService 클래스의 새 인스턴스를 초기화합니다.
| tenants | tenants에 사용할 IFamilyTenantStore 값입니다. |
| globalSettings | global Settings에 사용할 IGlobalSettingsStore 값입니다. |
LocalMediaService.cs 파일의 79 번째 라인에서 정의되었습니다.
다음을 참조함 : _globalSettings, _tenants.
|
inline |
Delete Post Media Async 작업을 수행합니다.
| slug | slug에 사용할 string 값입니다. |
| postId | post Id에 사용할 string 값입니다. |
| fileName | file Name에 사용할 string 값입니다. |
| ct | 취소 요청을 감시하는 토큰입니다. |
Task 결과입니다.FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 384 번째 라인에서 정의되었습니다.
다음을 참조함 : _tenants.
|
inlinestaticprivate |
Format Limit 작업을 수행합니다.
| bytes | bytes에 사용할 long 값입니다. |
string 결과입니다.LocalMediaService.cs 파일의 333 번째 라인에서 정의되었습니다.
|
inline |
Cover Url 값을 가져옵니다.
| slug | slug에 사용할 string 값입니다. |
| fileName | file Name에 사용할 string 값입니다. |
string 결과입니다.FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 572 번째 라인에서 정의되었습니다.
|
inlineprivate |
Limits Async 값을 가져옵니다.
| slug | slug에 사용할 string 값입니다. |
| ct | 취소 요청을 감시하는 토큰입니다. |
Task<(long ImageBytes, long VideoBytes)> 결과입니다.LocalMediaService.cs 파일의 143 번째 라인에서 정의되었습니다.
다음을 참조함 : _globalSettings, _tenants, ToBytes().
다음에 의해서 참조됨 : UploadCoverAsync(), UploadPostMediaAsync().


|
inline |
Media Url 값을 가져옵니다.
| slug | slug에 사용할 string 값입니다. |
| postId | post Id에 사용할 string 값입니다. |
| fileName | file Name에 사용할 string 값입니다. |
string 결과입니다.FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 494 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : GetPostMediaAsync().

|
inline |
Post Media Async 값을 가져옵니다.
| slug | slug에 사용할 string 값입니다. |
| postId | post Id에 사용할 string 값입니다. |
| ct | 취소 요청을 감시하는 토큰입니다. |
Task<IReadOnlyList<MediaInfo>> 결과입니다.FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 431 번째 라인에서 정의되었습니다.
다음을 참조함 : _tenants, GetMediaUrl(), GetThumbUrl().

|
inline |
Thumb Url 값을 가져옵니다.
| slug | slug에 사용할 string 값입니다. |
| postId | post Id에 사용할 string 값입니다. |
| fileName | file Name에 사용할 string 값입니다. |
string 결과입니다.FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 537 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : GetPostMediaAsync().

|
inlinestaticprivate |
To Bytes 작업을 수행합니다.
| mb | mb에 사용할 int 값입니다. |
long 결과입니다.LocalMediaService.cs 파일의 109 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : GetLimitsAsync().

|
inline |
Upload Cover Async 작업을 수행합니다.
| slug | slug에 사용할 string 값입니다. |
| file | file에 사용할 IBrowserFile 값입니다. |
| ct | 취소 요청을 감시하는 토큰입니다. |
Task<string> 결과입니다.| InvalidOperationException | 현재 객체 상태에서 Upload Cover Async 작업을 수행할 수 없는 경우 발생합니다. |
FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 285 번째 라인에서 정의되었습니다.
다음을 참조함 : _tenants, AllowedImageExts, GetLimitsAsync().

|
inline |
Upload Post Media Async 작업을 수행합니다.
| slug | slug에 사용할 string 값입니다. |
| postId | post Id에 사용할 string 값입니다. |
| file | file에 사용할 IBrowserFile 값입니다. |
| ct | 취소 요청을 감시하는 토큰입니다. |
Task<string> 결과입니다.| InvalidOperationException | 현재 객체 상태에서 Upload Post Media Async 작업을 수행할 수 없는 경우 발생합니다. |
FamiliesApp.Services.IMediaService를 구현.
LocalMediaService.cs 파일의 209 번째 라인에서 정의되었습니다.
다음을 참조함 : _tenants, AllowedImageExts, AllowedVideoExts, GetLimitsAsync().

|
private |
global Settings 값을 보관합니다.
LocalMediaService.cs 파일의 34 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : GetLimitsAsync(), LocalMediaService().
|
private |
tenants 값을 보관합니다.
LocalMediaService.cs 파일의 25 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : DeletePostMediaAsync(), GetLimitsAsync(), GetPostMediaAsync(), LocalMediaService(), UploadCoverAsync(), UploadPostMediaAsync().
|
staticprivate |
Allowed Image Exts 값을 보관합니다.
LocalMediaService.cs 파일의 44 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UploadCoverAsync(), UploadPostMediaAsync().
|
staticprivate |
Allowed Video Exts 값을 보관합니다.
LocalMediaService.cs 파일의 53 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UploadPostMediaAsync().