[Firebird-net-provider] Question about IFbClient purpose

2015-10-14 Thread Геннадий Забула
Jiri, could you clarify what is a purpose of separate IFbClient
interface and about using native calls through instance instead of
organizing P/Invokes as static NativeMethods class?

--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Question about IFbClient purpose

2015-10-14 Thread Jiří Činčura
On Wed, Oct 14, 2015, at 19:12, Геннадий Забула wrote:
> Jiri, could you clarify what is a purpose of separate IFbClient
> interface and about using native calls through instance instead of
> organizing P/Invokes as static NativeMethods class?

It's used because for P/Invoke calls to fbembed are emitted on the fly.
And that's because you can't have DllImport attribute with non-constant
string which is needed to ClientLibrary support in connection string.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Question about IFbClient purpose

2015-10-14 Thread Геннадий Забула
I got it. It is support of dynamic client library name specified in connection 
string. Do you mind if I submit PR with comments about it?

-Original Message-
From: "Jiří Činčura" <j...@cincura.net>
Sent: ‎10/‎14/‎2015 8:18 PM
To: "firebird-net-provider@lists.sourceforge.net" 
<firebird-net-provider@lists.sourceforge.net>
Subject: Re: [Firebird-net-provider] Question about IFbClient purpose

On Wed, Oct 14, 2015, at 19:12, Геннадий Забула wrote:
> Jiri, could you clarify what is a purpose of separate IFbClient
> interface and about using native calls through instance instead of
> organizing P/Invokes as static NativeMethods class?

It's used because for P/Invoke calls to fbembed are emitted on the fly.
And that's because you can't have DllImport attribute with non-constant
string which is needed to ClientLibrary support in connection string.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Question about IFbClient purpose

2015-10-14 Thread Jiří Činčura
Knock youself out.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

On Thu, Oct 15, 2015, at 06:02, Геннадий Забула wrote:
> I got it. It is support of dynamic client library name specified in
> connection string. Do you mind if I submit PR with comments about it?
> 
> -Original Message-
> From: "Jiří Činčura" <j...@cincura.net>
> Sent: ‎10/‎14/‎2015 8:18 PM
> To: "firebird-net-provider@lists.sourceforge.net"
> <firebird-net-provider@lists.sourceforge.net>
> Subject: Re: [Firebird-net-provider] Question about IFbClient purpose
> 
> On Wed, Oct 14, 2015, at 19:12, Геннадий Забула wrote:
> > Jiri, could you clarify what is a purpose of separate IFbClient
> > interface and about using native calls through instance instead of
> > organizing P/Invokes as static NativeMethods class?
> 
> It's used because for P/Invoke calls to fbembed are emitted on the fly.
> And that's because you can't have DllImport attribute with non-constant
> string which is needed to ClientLibrary support in connection string.
> 
> -- 
> Mgr. Jiří Činčura
> Independent IT Specialist
> 
> --
> ___
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
> --
> ___
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider