예제 #1
0
        public void Delete(FileDeleteDto dto)
        {
            this._fileAuthService.VerifyComm100Platform(dto.Auth);

            this._fileDomainService.Delete(dto.FileKey);
            throw new NotImplementedException();
        }
예제 #2
0
        public async Task <ActionResult> Delete(string fileKey)
        {
            var dto = new FileDeleteDto()
            {
                FileKey = fileKey,
                Auth    = new AuthComm100Platform
                {
                    SharedSecret = Request.Headers["Authorization"].ToArray().FirstOrDefault(a => a.StartsWith("Bearer "))?.Replace("Bearer ", string.Empty),
                    IP           = Request.HttpContext.Connection.RemoteIpAddress.MapToIPv4().ToString(),
                }
            };

            await this._fileAppService.Delete(dto);

            return(Ok());
        }
예제 #3
0
        public async Task Delete(FileDeleteDto dto)
        {
            await this._fileAuthService.VerifyComm100Platform(dto.Auth);

            await this._fileDomainService.Delete(dto.FileKey);
        }