Configuring the service at runtime

Feb 1, 2010 at 12:20 PM

First off, thanks for the project, it's very useful.

I am currently trying to configure the endpoint and service host at runtime, without using a config file, on a self-hosted service by creating the custom binding and adding behaviors in code.  

To do this I need to be able to create and instance of AmfEnablingBehavior, which I can't seem to do because the class is private and the CreateBehavior() method on AmfEnablingElement is protected.  Is there any reason why I shouldn't be able to access this class? Is there some other way to configure the service at runtime that perhaps I'm not aware of?

Thanks,

Jon.

Coordinator
Feb 1, 2010 at 2:27 PM

No, there is no reason why you shouldn't be able to create AmfEnablingBehavior directly - it was just an oversight on my part.  I will update the source soon and provide a new binary; in the meantime, feel free make the changes needed and compile it yourself.

Were there any other classes I missed that you'll need for runtime configuration?

 

Feb 2, 2010 at 11:37 AM

Thanks, that's all I need I think, I'll let you know if I come across anything else.