G
Guest
Hi,
I have a C++ background and am new to C#.
At the moment I'm working on a project where I want to define a contract for
users of my library. I have done this by creating a interface dll project
containing the contract for the clients. To implement the interface I created
a second dll project that contains the implementation. The interface has an
assync design. It also has a factory that, based on configuration data, can
load different implementation assemblies. This is transparent for the client
and the reason for doing so is that the implementation is very computational
heavy and might need to be done on a separate machine e.g. with .NET
remoting. Having the contract defined in this manner means I can easily
replace the implementation without the client knowing.
Is there a better way of doing this in C#?
Filip
I have a C++ background and am new to C#.
At the moment I'm working on a project where I want to define a contract for
users of my library. I have done this by creating a interface dll project
containing the contract for the clients. To implement the interface I created
a second dll project that contains the implementation. The interface has an
assync design. It also has a factory that, based on configuration data, can
load different implementation assemblies. This is transparent for the client
and the reason for doing so is that the implementation is very computational
heavy and might need to be done on a separate machine e.g. with .NET
remoting. Having the contract defined in this manner means I can easily
replace the implementation without the client knowing.
Is there a better way of doing this in C#?
Filip