/// <summary> /// Initializes a new instance of the <see cref="ResolveReplicationCollisionArgs"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="collisionType">Type of the collision.</param> /// <param name="args">The args.</param> internal ResolveReplicationCollisionArgs(ProtocolReplicationService.LoadPackageRecordContext context, CollisionType collisionType, object[] args) { CollisionType = collisionType; Args = args; ResolveResult = CollisionResult.Default; ObjectSpace = context.ObjectSpace; PackageSession = context.PackageSession; Package = context.Package; CurrentNodeId = context.CurrentNodeId; PackageRecord = context.PackageRecord; }
internal LoadRecordArgs(ProtocolReplicationService.LoadPackageRecordContext context) { PackageRecord = context.PackageRecord; }
/// <summary> /// Initializes a new instance of the <see cref="LoadSessionArgs"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="records">The records.</param> internal LoadSessionArgs(ProtocolReplicationService.LoadPackageSessionContext context, IEnumerable<PackageRecord> records) { Records = records; ObjectSpace = context.ObjectSpace; Package = context.Package; PackageSession = context.PackageSession; }
/// <summary> /// Creates internal services. /// </summary> private void createServices() { LoadService = new LoadService(this); ProtocolService = new ProtocolService(this, LoadService); MessagingService = new MessagingService(this); ProtocolReplicationService = new ProtocolReplicationService(this); SnapshotService = new SnapshotService(this); PackService = new PackService(this); }