473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

WCF: OperationContext null for Listeners

Hi,

We have a service that is both a service and a client, receiving and transmitting messages.

We have custom listeners logging messages in and out. These work fine.

I wanted to try and log some sort of Id that would allow me to match up the ins and outs by the service for a given request.

I.e. an app calls our service, our service calls another service, it gets a response and responds to the calling app... this round trip is one journey, but with each message logged by the listeners independantly.

Since the listeners are called outside our service code, I don't seem to be able to pass in an id from the service class.

OperationContext appears to be null when in the listener. I tried implementing a singleton Id class using ThreadStatic to generate a guid per request, but the guids were always different (indicating the listeners run in threads outside that of the service??)

Does anybody have any ideas on how I could achieve this?

Regards,
Rob.
Oct 24 '11 #1
0 1316

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ronald S. Cook | last post by:
Hi, Some users on our domain can run our WCF application no problem. Some get an unhandled exception error re: SOAP security negotiation. I'm wanting the service to not be secure.. I just want...
4
by: dgilbert | last post by:
I have a custom membership provider that I am using to authenticate users in a WCF web service hosted IIS. I want to be able to see any cookies that come across and save session variables, but I...
0
by: sandrofurlan | last post by:
Hi all, i have a WCF service for USB communication. I need to instance it as a singleton class so i do: <ServiceBehavior(InstanceContextMode:=InstanceContextMode.Single, _...
0
by: sandrofurlan | last post by:
Hi there, I've a wcf singleton service and I need to send callbacks to all connected clients. At the status only the last connected client receive callbacks. This is the code: ...
10
by: Chris Bordeman | last post by:
Hi all. I created a custom ServiceHost object and did a bunch of initialization there. Now I need to access an object in it from the actual WCF service class. How can this be done? Thanks!!!
0
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post by:
My goal is to connect a WSE 3.0 client to a WCF asp.net hosted service, utilizing MTOM encoding and if at all possible, streamedRequest transfer mode. I am starting with a basic Hello World...
2
by: =?Utf-8?B?QnJhdmVzQ2hhcm0=?= | last post by:
I am not sure if this is the right form because I didn't see any WCF forms. Anyway, I made a very simple WCF object and hosted it in IIS. Now I have a client that builds 20 threads, and have each...
2
by: Bill Fuller | last post by:
I am trying to attach to a WCF Web Service running in virtual directory in my local dev box, but not sure how to do it. I tried setting a breakpoint on the .svc and attaching to the Inetinfo...
5
by: paul korosi | last post by:
Hi, I've got a wcf service that is hosted on my local machine. I need to determine the hosted url of the service from within the service but cannot work out how to do it. HttpContext.Current...
6
by: Frank Hauptlorenz | last post by:
Hello out there, I have 2 services running. The first one runs in session mode and the 2nd not. The first one should call an operation of the 2nd one asynchronously, because this is doing some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.