Ejemplo n.º 1
0
 public NativeOperator(string applicationId, ushort threadId, INativeLibrary nativeLibrary)
 {
     _library = nativeLibrary;
     this.OwnerNameEncoding = Encoding.Default;
     this.PathEncoding      = Encoding.Default;
     this.ClientId          = new ClientId(applicationId, threadId);
 }
Ejemplo n.º 2
0
 public NativeOperator(string applicationId, ushort threadId, string dllPath = null, IEnumerable <string> dependencyPaths = null)
 {
     _library = NativeLibrary.GetNativeLibrary(dllPath, dependencyPaths);
     this.OwnerNameEncoding = Encoding.Default;
     this.PathEncoding      = Encoding.Default;
     this.ClientId          = new ClientId(applicationId, threadId);
 }
Ejemplo n.º 3
0
 public NativeOperator(INativeLibrary nativeLibrary, bool useClientId = false)
 {
     _library = nativeLibrary;
     this.OwnerNameEncoding = Encoding.Default;
     this.PathEncoding      = Encoding.Default;
     this.ClientId          = useClientId ? new ClientId() : null;
 }
Ejemplo n.º 4
0
 public NativeOperator(bool useClientId = false, string dllPath = null, IEnumerable <string> dependencyPaths = null)
 {
     _library = NativeLibrary.GetNativeLibrary(dllPath, dependencyPaths);
     this.OwnerNameEncoding = Encoding.Default;
     this.PathEncoding      = Encoding.Default;
     this.ClientId          = useClientId ? new ClientId() : null;
 }
Ejemplo n.º 5
0
 public DemoDbClient(INativeLibrary nativeLibrary, string applicationId = "BW")
     : base(nativeLibrary, applicationId)
 {
 }
Ejemplo n.º 6
0
 protected DbClient(INativeLibrary nativeLibrary, string applicationId = "BW")
     : base(new NativeOperator(applicationId, Resource.GetThreadId(), nativeLibrary))
 {
 }