C# Класс FoundationDB.Client.Fdb.Options

Global settings for the FoundationDB binding
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
NativeLibPath string
TracePath string

Открытые методы

Метод Описание
DisableNativeLibraryPreloading ( ) : void

Disable preloading of the native C API library. The CLR will handle the binding of the library.

This *must* be called before the start of the network thread, otherwise it won't have any effects.

EnableNativeLibraryPreloading ( ) : void

Enable automatic preloading of the native C API library. The operating system will handle the binding of the library

This *must* be called before the start of the network thread, otherwise it won't have any effects.

SetNativeLibPath ( string path ) : void

Preload the native C API library from a specifc path (relative of absolute) where the fdb_c.dll library is located

This *must* be called before the start of the network thread, otherwise it won't have any effects. You can specify the path to a library with a custom file name by making sure that path ends with ".dll". If not, then "fdb_c.dll" will be appended to the path.

SetTLSCertificate ( Slice bytes ) : void

Sets the path to the root certificate and public key for TLS connections

This *must* be called before the start of the network thread, otherwise it won't have any effects.

SetTLSCertificate ( string path ) : void

Sets the path to the root certificate and public key for TLS connections

This *must* be called before the start of the network thread, otherwise it won't have any effects.

SetTLSPlugin ( string name ) : void

Set the file path or linker-resolved name of the custom TLS plugin to load.

SetTLSPrivateKey ( Slice bytes ) : void

Sets the path to the private key for TLS connections

This must be called before the start of the network thread, otherwise it won't have any effects.

SetTLSPrivateKey ( string path ) : void

Sets the path to the private key for TLS connections

This must be called before the start of the network thread, otherwise it won't have any effects.

SetTlsVerificationPattern ( Slice pattern ) : void

Sets the pattern with wich to verify certificates of TLS peers

This must be called before the start of the network thread, otherwise it won't have any effects.

SetTracePath ( string outputDirectory ) : void

Sets the custom path where the logs will be stored

This *must* be called before the start of the network thread, otherwise it won't have any effects.

UseTLS ( Slice certificateBytes, Slice privateKeyBytes, Slice verificationPattern = default(Slice), string plugin = null ) : void

Use TLS to secure the connections to the cluster

UseTLS ( string certificatePath, string privateKeyPath, Slice verificationPattern = default(Slice), string plugin = null ) : void

Use TLS to secure the connections to the cluster

Описание методов

DisableNativeLibraryPreloading() публичный статический Метод

Disable preloading of the native C API library. The CLR will handle the binding of the library.
This *must* be called before the start of the network thread, otherwise it won't have any effects.
public static DisableNativeLibraryPreloading ( ) : void
Результат void

EnableNativeLibraryPreloading() публичный статический Метод

Enable automatic preloading of the native C API library. The operating system will handle the binding of the library
This *must* be called before the start of the network thread, otherwise it won't have any effects.
public static EnableNativeLibraryPreloading ( ) : void
Результат void

SetNativeLibPath() публичный статический Метод

Preload the native C API library from a specifc path (relative of absolute) where the fdb_c.dll library is located
This *must* be called before the start of the network thread, otherwise it won't have any effects. You can specify the path to a library with a custom file name by making sure that path ends with ".dll". If not, then "fdb_c.dll" will be appended to the path.
public static SetNativeLibPath ( string path ) : void
path string
Результат void

SetTLSCertificate() публичный статический Метод

Sets the path to the root certificate and public key for TLS connections
This *must* be called before the start of the network thread, otherwise it won't have any effects.
public static SetTLSCertificate ( Slice bytes ) : void
bytes Slice
Результат void

SetTLSCertificate() публичный статический Метод

Sets the path to the root certificate and public key for TLS connections
This *must* be called before the start of the network thread, otherwise it won't have any effects.
public static SetTLSCertificate ( string path ) : void
path string
Результат void

SetTLSPlugin() публичный статический Метод

Set the file path or linker-resolved name of the custom TLS plugin to load.
public static SetTLSPlugin ( string name ) : void
name string
Результат void

SetTLSPrivateKey() публичный статический Метод

Sets the path to the private key for TLS connections
This must be called before the start of the network thread, otherwise it won't have any effects.
public static SetTLSPrivateKey ( Slice bytes ) : void
bytes Slice
Результат void

SetTLSPrivateKey() публичный статический Метод

Sets the path to the private key for TLS connections
This must be called before the start of the network thread, otherwise it won't have any effects.
public static SetTLSPrivateKey ( string path ) : void
path string
Результат void

SetTlsVerificationPattern() публичный статический Метод

Sets the pattern with wich to verify certificates of TLS peers
This must be called before the start of the network thread, otherwise it won't have any effects.
public static SetTlsVerificationPattern ( Slice pattern ) : void
pattern Slice
Результат void

SetTracePath() публичный статический Метод

Sets the custom path where the logs will be stored
This *must* be called before the start of the network thread, otherwise it won't have any effects.
public static SetTracePath ( string outputDirectory ) : void
outputDirectory string
Результат void

UseTLS() публичный статический Метод

Use TLS to secure the connections to the cluster
public static UseTLS ( Slice certificateBytes, Slice privateKeyBytes, Slice verificationPattern = default(Slice), string plugin = null ) : void
certificateBytes Slice Content of the root certificate and public key
privateKeyBytes Slice Content of the private key
verificationPattern Slice Verification with which to verify certificates of TLS peers
plugin string Optional file path or linker-resolved name of the custom TLS plugin to load
Результат void

UseTLS() публичный статический Метод

Use TLS to secure the connections to the cluster
public static UseTLS ( string certificatePath, string privateKeyPath, Slice verificationPattern = default(Slice), string plugin = null ) : void
certificatePath string Path to the root certificate and public key
privateKeyPath string Path to the private key
verificationPattern Slice Verification with which to verify certificates of TLS peers
plugin string Optional file path or linker-resolved name of the custom TLS plugin to load
Результат void

Описание свойств

NativeLibPath публичное статическое свойство

Custom path from where to load the native C API library. If null, let the CLR find the dll. If String.Empty let Win32's LoadLibrary find the correct dll, else use the specified path to load the library
public static string NativeLibPath
Результат string

TracePath публичное статическое свойство

Default path to the network thread tracing file
public static string TracePath
Результат string