TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roland Emmerich
NA
1
1.4k
Webservice with plugins - expose Plugin Names as enum
Nov 29 2013 12:26 PM
Hi @ all!
I'm trying to find a solution for the following problem:
within C# I have created a webservice, which offes the ability to execute methods of plugins which are registered by MEF at the server.
So the webservice knows after composition of MEF Exports, which plugins it can offer for execution. Right now, I have a method like this:
[OperationContract]
[
FaultContract
(
typeof
(PluginServiceFaultContract))]
string
[]
GetPluginTypes
();
The corresponding execution method looks like this:
[OperationContract]
[
FaultContract
(
typeof
(WorkflowServiceFaultContract))]
bool
StartPluginMethode
(
string
PluginName );
It would be better to use an enum here, so the user cannot give a wrong parameter...
But since the enum would have to by created dynamically (System.Reflection.Emit?), I cannot expose it through my WSDL - or at least I don't know how.
Anyone faced that problem in the past and has a hint for me? Or is there an alternative approach?
Thanks in advance
Roland
Reply
Answers (
0
)
Alert message in asp.net from database
Selected dropdown value to textbox