Example #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);
 }
Example #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);
 }
Example #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;
 }
Example #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;
 }
Example #5
0
 public DemoDbClient(INativeLibrary nativeLibrary, string applicationId = "BW")
     : base(nativeLibrary, applicationId)
 {
 }
Example #6
0
 protected DbClient(INativeLibrary nativeLibrary, string applicationId = "BW")
     : base(new NativeOperator(applicationId, Resource.GetThreadId(), nativeLibrary))
 {
 }