Exemplo n.º 1
0
 public static bool c4cert_sendSigningRequest(C4Cert *certRequest, C4Address address, byte[] optionsDictFleece, C4CertSigningCallback callback, void *context, C4Error *outError)
 {
     fixed(byte *optionsDictFleece_ = optionsDictFleece)
     {
         return(NativeRaw.c4cert_sendSigningRequest(certRequest, address, new FLSlice(optionsDictFleece_, optionsDictFleece == null ? 0 : (ulong)optionsDictFleece.Length), callback, context, outError));
     }
 }
 public static C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, string remoteDatabaseName,
                                        C4Database *otherDb, C4ReplicatorMode push, C4ReplicatorMode pull, ReplicatorStateChangedCallback onStateChanged,
                                        C4Error *err)
 {
     return(Native.c4repl_new(db, remoteAddress, remoteDatabaseName, otherDb, push, pull, onStateChanged.NativeCallback,
                              onStateChanged.NativeContext, err));
 }
Exemplo n.º 3
0
 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 static string c4db_getCookies(C4Database *db, C4Address request, C4Error *error)
 {
     using (var retVal = NativeRaw.c4db_getCookies(db, request, error)) {
         return(((FLSlice)retVal).CreateString());
     }
 }
 public static extern C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, FLSlice remoteDatabaseName, C4ReplicatorParameters @params, C4Error *outError);
 public static extern FLSliceResult c4db_getCookies(C4Database *db, C4Address request, C4Error *error);
Exemplo n.º 7
0
 public static extern C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, C4Slice remoteDatabaseName, C4Database *otherLocalDB, C4ReplicatorParameters @params, C4Error *err);
 public static extern C4SliceResult c4address_toURL(C4Address address);
 public static string c4address_toURL(C4Address address)
 {
     using (var retVal = NativeRaw.c4address_toURL(address)) {
         return(((C4Slice)retVal).CreateString());
     }
 }
Exemplo n.º 10
0
 public static extern bool c4cert_sendSigningRequest(C4Cert *certRequest, C4Address address, FLSlice optionsDictFleece, C4CertSigningCallback callback, void *context, C4Error *outError);
 public static extern C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, C4Slice remoteDatabaseName, C4Database *otherLocalDB, C4ReplicatorMode push, C4ReplicatorMode pull, C4ReplicatorStateChangedCallback onStateChanged, void *callbackContext, C4Error *err);
Exemplo n.º 12
0
 public string c4address_toURL(C4Address address) => Native.c4address_toURL(address);
 public static C4Replicator *c4repl_new(C4Database *db, C4Address remoteAddress, string remoteDatabaseName, C4Database *otherLocalDB, C4ReplicatorMode push, C4ReplicatorMode pull, C4ReplicatorStateChangedCallback onStateChanged, void *callbackContext, C4Error *err)
 {
     using (var remoteDatabaseName_ = new C4String(remoteDatabaseName)) {
         return(NativeRaw.c4repl_new(db, remoteAddress, remoteDatabaseName_.AsC4Slice(), otherLocalDB, push, pull, onStateChanged, callbackContext, err));
     }
 }
Exemplo n.º 14
0
 public C4SliceResult c4db_getCookies(C4Database *db, C4Address request, C4Error *error) => NativeRaw.c4db_getCookies(db, request, error);
Exemplo n.º 15
0
 public C4SliceResult c4address_toURL(C4Address address) => NativeRaw.c4address_toURL(address);
Exemplo n.º 16
0
 public string c4db_getCookies(C4Database *db, C4Address request, C4Error *error) => Native.c4db_getCookies(db, request, error);
Exemplo n.º 17
0
 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);