Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionRetrieving a List of Contacts from Exchange Pin
Member 103181264-Apr-14 1:05
Member 103181264-Apr-14 1:05 
AnswerRe: Retrieving a List of Contacts from Exchange Pin
OriginalGriff4-Apr-14 2:34
mveOriginalGriff4-Apr-14 2:34 
QuestionLinkedin import to C# WPF desktop application? Pin
Mandarinna3-Apr-14 23:42
Mandarinna3-Apr-14 23:42 
AnswerRe: Linkedin import to C# WPF desktop application? Pin
Richard MacCutchan3-Apr-14 23:58
mveRichard MacCutchan3-Apr-14 23:58 
QuestionTCPClient across AppDomains Pin
Carlos Sousa3-Apr-14 23:38
Carlos Sousa3-Apr-14 23:38 
AnswerRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 4:27
Rob Philpott4-Apr-14 4:27 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 5:15
Carlos Sousa4-Apr-14 5:15 
GeneralRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 6:03
Rob Philpott4-Apr-14 6:03 
OK, so the listener gets given a TcpClient on an incoming connection and you want to pass that to the AppDomain. Yes, you have a connected socket at that point so an end point would be no use. Is it possible to move the listener into the app domain at all?

Static methods AFAIK are global within the AppDomain, and cannot cross boundaries. So if you have a static class, each domain would get its own copy.

The only other approach I can think of is something like WCF port sharing. It is a separate process that listens on one port and then can route messages to different processes.

Or, rather than try to pass the TcpClient over boundaries, can't you keep it in the host domain, and just send packets of data to the AppDomain instead? Are you using the network stream on it? What sort of stream operations are you using?
Regards,
Rob Philpott.

GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:37
Carlos Sousa4-Apr-14 11:37 
AnswerRe: TCPClient across AppDomains Pin
jschell4-Apr-14 8:15
jschell4-Apr-14 8:15 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:45
Carlos Sousa4-Apr-14 11:45 
GeneralRe: TCPClient across AppDomains Pin
jschell7-Apr-14 9:23
jschell7-Apr-14 9:23 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa8-Apr-14 5:33
Carlos Sousa8-Apr-14 5:33 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa9-Apr-14 3:35
Carlos Sousa9-Apr-14 3:35 
GeneralRe: TCPClient across AppDomains Pin
jschell10-Apr-14 8:30
jschell10-Apr-14 8:30 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa10-Apr-14 11:43
Carlos Sousa10-Apr-14 11:43 
QuestionHow to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
taibc3-Apr-14 20:49
taibc3-Apr-14 20:49 
AnswerRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
OriginalGriff3-Apr-14 21:36
mveOriginalGriff3-Apr-14 21:36 
GeneralRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
taibc3-Apr-14 22:19
taibc3-Apr-14 22:19 
GeneralRe: How to export pdf data (byte[] format) from SQL database to PDF using C# ? Pin
OriginalGriff3-Apr-14 22:29
mveOriginalGriff3-Apr-14 22:29 
Questionimage processing Pin
praveeno3-Apr-14 18:22
praveeno3-Apr-14 18:22 
AnswerRe: image processing Pin
Dave Kreskowiak3-Apr-14 18:29
mveDave Kreskowiak3-Apr-14 18:29 
GeneralRe: image processing Pin
Richard Andrew x643-Apr-14 18:50
professionalRichard Andrew x643-Apr-14 18:50 
QuestionGet values from object in other class Pin
Dick Lasy3-Apr-14 8:33
Dick Lasy3-Apr-14 8:33 
AnswerRe: Get values from object in other class Pin
OriginalGriff3-Apr-14 8:53
mveOriginalGriff3-Apr-14 8:53 

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.