public Task OnCreatedAsync(UploadCreatedEvent @event,
                                   CancellationToken ct)
        {
            var assetEvent = new AssetUploadCreatedEvent(@event.FileId);

            return(inner.OnCreatedAsync(assetEvent, ct));
        }
예제 #2
0
        async Task IAssetProgressHandler.OnCreatedAsync(AssetUploadCreatedEvent @event,
                                                        CancellationToken ct)
        {
            var handler = OnCreatedAsync;

            if (handler != null)
            {
                await handler(@event, ct);
            }
        }