Beispiel #1
0
        public Task Upload(Profile profile, DigitalSignature digitalSignature, CancellationToken token)
        {
            if (profile == null)
            {
                throw new ArgumentNullException(nameof(profile));
            }
            if (digitalSignature == null)
            {
                throw new ArgumentNullException(nameof(digitalSignature));
            }

            return(_coreManager.VolatileSetStream(ContentConverter.ToStream(profile), TimeSpan.FromDays(360), token)
                   .ContinueWith(task =>
            {
                _coreManager.UploadMetadata(new BroadcastMetadata("Profile", DateTime.UtcNow, task.Result, digitalSignature));
            }));
        }