/// <summary>
        /// Resolves the replication collision.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="collisionType">Type of the collision.</param>
        /// <param name="args">The args.</param>
        /// <returns></returns>
        private CollisionResult resolveReplicationCollision(LoadPackageRecordContext context,
                                                            CollisionType collisionType, params object[] args)
        {
            var e = new ResolveReplicationCollisionArgs(context, collisionType, args);
            Owner.DoResolveReplicationCollision(e);
            if (e.ResolveResult == CollisionResult.Error)
                throw new ReplicationCollisionException(collisionType);

            context.Worker.ReportProgress(Color.Goldenrod,
                Localizer.CollisionDetected,
                collisionType, context.PackageRecord, e.ResolveResult);

            return e.ResolveResult;
        }
Example #2
0
 internal void DoResolveReplicationCollision(ResolveReplicationCollisionArgs e)
 {
     var handler = ResolveReplicationCollision;
     if (handler != null) handler(this, e);
 }