Click here to Skip to main content
15,905,877 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Pin
Dan Mos18-Aug-10 7:30
Dan Mos18-Aug-10 7:30 
AnswerRe: c# Pin
Ravi Bhavnani18-Aug-10 10:28
professionalRavi Bhavnani18-Aug-10 10:28 
QuestionConnect to network equipment Pin
grmihel218-Aug-10 2:49
grmihel218-Aug-10 2:49 
AnswerMessage Closed Pin
18-Aug-10 3:19
stancrm18-Aug-10 3:19 
GeneralRe: Connect to network equipment Pin
grmihel218-Aug-10 3:30
grmihel218-Aug-10 3:30 
QuestionHow can I get the name of the object from Reflection ? Pin
Nadia Monalisa18-Aug-10 2:29
Nadia Monalisa18-Aug-10 2:29 
GeneralRe: How can I get the name of the object from Reflection ? Pin
harold aptroot18-Aug-10 2:50
harold aptroot18-Aug-10 2:50 
GeneralRe: How can I get the name of the object from Reflection ? Pin
Nadia Monalisa18-Aug-10 3:17
Nadia Monalisa18-Aug-10 3:17 
GeneralRe: How can I get the name of the object from Reflection ? Pin
harold aptroot18-Aug-10 3:26
harold aptroot18-Aug-10 3:26 
GeneralRe: How can I get the name of the object from Reflection ? Pin
Nadia Monalisa18-Aug-10 3:41
Nadia Monalisa18-Aug-10 3:41 
GeneralRe: How can I get the name of the object from Reflection ? Pin
harold aptroot18-Aug-10 3:53
harold aptroot18-Aug-10 3:53 
GeneralRe: How can I get the name of the object from Reflection ? Pin
Nadia Monalisa18-Aug-10 4:04
Nadia Monalisa18-Aug-10 4:04 
GeneralRe: How can I get the name of the object from Reflection ? Pin
Łukasz Nowakowski18-Aug-10 4:51
Łukasz Nowakowski18-Aug-10 4:51 
AnswerRe: How can I get the name of the object from Reflection ? Pin
PIEBALDconsult18-Aug-10 3:18
mvePIEBALDconsult18-Aug-10 3:18 
GeneralRe: How can I get the name of the object from Reflection ? Pin
Nadia Monalisa18-Aug-10 3:42
Nadia Monalisa18-Aug-10 3:42 
GeneralRe: How can I get the name of the object from Reflection ? Pin
PIEBALDconsult18-Aug-10 15:09
mvePIEBALDconsult18-Aug-10 15:09 
AnswerRe: How can I get the name of the object from Reflection ? Pin
ddecoy18-Aug-10 4:13
ddecoy18-Aug-10 4:13 
GeneralRe: How can I get the name of the object from Reflection ? Pin
ddecoy18-Aug-10 4:16
ddecoy18-Aug-10 4:16 
AnswerRe: How can I get the name of the object from Reflection ? Pin
Chris Trelawny-Ross20-Aug-10 9:16
Chris Trelawny-Ross20-Aug-10 9:16 
Question555555555555 Pin
winssss17-Aug-10 23:37
winssss17-Aug-10 23:37 
AnswerRe: 555555555555 Pin
Thomas Krojer18-Aug-10 1:24
Thomas Krojer18-Aug-10 1:24 
AnswerRe: 555555555555 Pin
Sauro Viti18-Aug-10 3:43
professionalSauro Viti18-Aug-10 3:43 
QuestionWCF host instant and open programmatically - how to relate to binding in app.config? Pin
1eyhk117-Aug-10 23:30
1eyhk117-Aug-10 23:30 
hello

For WCF host instantiated and opened programmatically - how to relate to binding in app.config? For example, here we get the channel open:

using (ServiceHost host = new ServiceHost(typeof(GridControllerService)))
{
System.ServiceModel.WSDualHttpBinding binding = new WSDualHttpBinding();
binding.OpenTimeout = new TimeSpan(3, 0, 0);
binding.CloseTimeout = new TimeSpan(3, 0, 0);
binding.SendTimeout = new TimeSpan(3, 0, 0);
binding.ReceiveTimeout = new TimeSpan(3, 0, 0);
binding.MaxBufferPoolSize = 5000;
host.AddServiceEndpoint(typeof(IGridControllerService), binding, "wsDualHttpBinding");
host.Open();

But instead of programmatically code up the binding config, we code have relate it to what's already in app.config
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="SomeHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false"
....
In this case, how can I relate "host" instantiated programmatically (yes weird why not do the whole deal in config right? But that's not my question) to "SomeHttpBinding" in config file.

Thanks
Questioncharacter postion replacemenet Pin
annie_bel17-Aug-10 23:28
annie_bel17-Aug-10 23:28 
AnswerRe: character postion replacemenet Pin
Gonzalo Cao17-Aug-10 23:51
Gonzalo Cao17-Aug-10 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.