public static C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, string remoteDatabaseName, C4Database *otherDb, C4ReplicatorParameters @params, C4Error *err) { using (var remoteDatabaseName_ = new C4String(remoteDatabaseName)) { return(c4repl_new(db, remoteAddress, remoteDatabaseName_.AsC4Slice(), otherDb, @params, err)); } }
public ReplicatorParameters(C4ReplicatorMode push, C4ReplicatorMode pull, IDictionary<string, object> options, Func<string, IntPtr, object, bool> validateFunction, Action<bool, string, C4Error, bool, object> errorCallback, Action<C4ReplicatorStatus, object> stateChangedCallback, object context) { var nextId = Interlocked.Increment(ref _NextID); _id = nextId; _validateFunction = validateFunction; _errorCallback = errorCallback; _stateChangedCallback = stateChangedCallback; _context = context; _nativeContext = (void*)nextId; C4Params = new C4ReplicatorParameters(push, pull, (C4Slice)options.FLEncode(), _nativeContext); _StaticMap[_id] = this; }
public static extern C4Replicator *c4repl_newWithSocket(C4Database *db, C4Socket *openSocket, C4ReplicatorParameters @params, C4Error *outError);
public static extern C4Replicator *c4repl_newLocal(C4Database *db, C4Database *otherLocalDB, C4ReplicatorParameters @params, C4Error *outError);
public static extern C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, FLSlice remoteDatabaseName, C4ReplicatorParameters @params, C4Error *outError);
public static extern C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, C4Slice remoteDatabaseName, C4Database *otherLocalDB, C4ReplicatorParameters @params, C4Error *err);
public C4Replicator *c4repl_newWithSocket(C4Database *db, C4Socket *openSocket, C4ReplicatorParameters @params, C4Error *outError) => Native.c4repl_newWithSocket(db, openSocket, @params, outError);
public C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, C4Slice remoteDatabaseName, C4Database *otherLocalDB, C4ReplicatorParameters @params, C4Error *outError) => Native.c4repl_new(db, remoteAddress, remoteDatabaseName, otherLocalDB, @params, outError);