Ejemplo n.º 1
0
        public StreamMapper(RestoreContext context)
        {
            Guard.NotNull(context, nameof(context));

            this.context = context;

            brokenAppId = DomainId.Combine(context.PreviousAppId, context.PreviousAppId);
        }
Ejemplo n.º 2
0
        private async Task CreateContextAsync(IBackupReader reader)
        {
            var userMapping = new UserMapping(CurrentJob.Actor);

            using (Profiler.Trace("CreateUsers"))
            {
                Log("Creating Users");

                await userMapping.RestoreAsync(reader, userResolver);

                Log("Created Users");
            }

            restoreContext = new RestoreContext(CurrentJob.AppId.Id, userMapping, reader);
        }