Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
QuestionHow can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 17:14
sxbyl7-Jan-04 17:14 
AnswerRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart7-Jan-04 18:48
protectorHeath Stewart7-Jan-04 18:48 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 19:00
sxbyl7-Jan-04 19:00 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart7-Jan-04 19:03
protectorHeath Stewart7-Jan-04 19:03 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 19:18
sxbyl7-Jan-04 19:18 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart8-Jan-04 3:44
protectorHeath Stewart8-Jan-04 3:44 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl8-Jan-04 14:06
sxbyl8-Jan-04 14:06 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart8-Jan-04 16:44
protectorHeath Stewart8-Jan-04 16:44 
The other methods I mentioned will be much harder to use. Frankly, the serialized ILogicalThreadAffinative implementation doesn't have to take much room if you just encapsulate basic Types like a String or a Guid. The channel sinks could take even more bandwidth than a CallContext if you're not mindful of the implementation. Besides, setting and getting objects from a CallContext is a heck of a lot easier than dealing with channel sinks. Once you read about them (again, that ".NET Remoting" book is good and gets in to that), I'm sure you'll agree! Smile | :)

Oh, and if you use CallContext.FreeNamedDataSlot in the server method with the name you used in the CallContext.SetData call on the client, there shouldn't be anything serialized and sent back in the return message. This could save you bandwidth easily.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl8-Jan-04 16:55
sxbyl8-Jan-04 16:55 
GeneralHttpWebRequest Pin
murali_utr7-Jan-04 17:04
murali_utr7-Jan-04 17:04 
GeneralRe: HttpWebRequest Pin
Heath Stewart7-Jan-04 18:41
protectorHeath Stewart7-Jan-04 18:41 
GeneralRe: HttpWebRequest Pin
murali_utr7-Jan-04 19:11
murali_utr7-Jan-04 19:11 
GeneralC# Forms/Controls Pin
Luther Baker7-Jan-04 14:24
Luther Baker7-Jan-04 14:24 
GeneralRe: C# Forms/Controls Pin
Heath Stewart7-Jan-04 18:38
protectorHeath Stewart7-Jan-04 18:38 
GeneralRe: C# Forms/Controls Pin
Luther Baker7-Jan-04 19:37
Luther Baker7-Jan-04 19:37 
GeneralRe: C# Forms/Controls Pin
David Stone7-Jan-04 20:31
sitebuilderDavid Stone7-Jan-04 20:31 
GeneralRe: C# Forms/Controls Pin
Luther Baker7-Jan-04 20:28
Luther Baker7-Jan-04 20:28 
GeneralRe: C# Forms/Controls Pin
Heath Stewart8-Jan-04 4:18
protectorHeath Stewart8-Jan-04 4:18 
GeneralC# SystemFonts Pin
Luther Baker7-Jan-04 13:49
Luther Baker7-Jan-04 13:49 
GeneralRe: C# SystemFonts Pin
Heath Stewart7-Jan-04 18:30
protectorHeath Stewart7-Jan-04 18:30 
GeneralRe: C# SystemFonts Pin
Luther Baker7-Jan-04 19:38
Luther Baker7-Jan-04 19:38 
Generalclicking "Open with" when multiple files are selected Pin
Anonymous7-Jan-04 13:12
Anonymous7-Jan-04 13:12 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Kentamanos7-Jan-04 14:25
Kentamanos7-Jan-04 14:25 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Anonymous7-Jan-04 20:24
Anonymous7-Jan-04 20:24 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Kentamanos7-Jan-04 20:38
Kentamanos7-Jan-04 20:38 

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.