Hi,
actually i want to implement a c# component that can help third party data mining algorithm
and i want managed plug-in algorithm (without wrapper),.
is it possible to write whole application in c#
as Analysis servisce is in c++ , can we implement it in c#
thanks in advance
~Chinmay
Hi chinmayv84,
This is very curious issue. I will go develop some code for you in free time.
Javier Luna
http://guydotnetxmlwebservices.blogspot.com/
|||
I'm assuming that you're aware of the managed plug-in framework that's available for download here: http://www.microsoft.com/downloads/details.aspx?familyid=DF0BA5AA-B4BD-4705-AA0A-B477BA72A9CB&displaylang=en#DMAPI.
This package includes the source code for a sample plug-in algorithm written in C#.
Can you clarify your scenario and why/if this does not meet your needs (since you indicate that you don't want to use a "wrapper")?
|||hi
i think writing wrapper is not a good idea
actually i want to remove COM from this implmentation
i am tring to write component in c# which is following COM standards
can u help me , as i don't know how to write that whole COM in c#
thanks for reply
regards,
~chinmayv84
|||The package that Raman pointed to contains all the COM interop part as well as a sample using C#. The architecture is:
- a COM function wrapper, written in Managed C++
- a C# assembly that uses the first assembly and implements the actual algorithm
- a step-by-step tutorial explaining how to add more complexity to your plug-in algorithm
The full source code for all the components in included, as well as documentation for all the classes and methods/properties.
If you choose to re-implement the first part in C#, you could follow the implementation details of the managed C++ assembly. However, due to the nature of the structures being passed back and forth between the server and the plug-in, we considered managed C++ as a much better choice, in terms of code clarity as well as performance.
Given that the server is unmanaged and C# is managed, I don't think there is a way to avoid the wrapper (whether that is a separate assembly or built-in into your assembly). And being in a separate assembly has no impact whatsoever on performance, given that they are loaded in the same memory space.
|||
actually i want to re implement the first part
can u help me , from where should i start and how to proceed
thanks in advanced
~chinmayv84
|||I am really curious: why do you need to reimplement it?If there is a problem with the current implementation, please let us know so we can fix it. However, as I mentioned: if you want to re-implement it, a good starting point is to look at the source code for the wrapper, which is included in the download pointed by Raman
|||
There is no specific reason to reimplement it,
actually i just want to remove com part and replace it with c# component
what are the basic(minimum) things that are requried to implement it and to test it
thanks
|||The purpose of the wrapper is so that you can write the algorithms in C# rather than COM. The native interfaces for plug-ins is COM, so they can't be "removed." However, you can do any implementation of algorithms you wish in C# due to the wrapper.
Are you asking "what are the basic things that are required to implement and test an algorithm?" or "what are the basic things that are required to implement and test a wrapper?" - because these are two completely different things.
|||ok ,thanks for help
is it to write COM in C# ? so that wrrapper in c#
and it can handle native interface for plug-in
and i want basic things that are requried to test wrapper
|||
If you're trying the re-implement the COM interfaces in C#, it will be much harder than the managed C++ wrapper we've provided - you'll need to do your own research in that case.
Testing the wrapper would be a combination of whitebox testing and a sample plug-in written using your custom wrapper methods (similar to the one we supply with our Managed Plug-in API Framework).
No comments:
Post a Comment