all groups > dotnet remoting > september 2007 >
You're in the

dotnet remoting

group:

How do I use [OneWay]?


How do I use [OneWay]? Grant Schenck
9/15/2007 8:04:12 PM
dotnet remoting:
I'm trying to mark my methods as OneWay but the compiler won't accept it. I
keep getting "The type or namespace 'OneWay' could not be found (are you
missing a using director or an assembly reference?)"

Any idea how I can mark a remote method as one way???

Thanks!

Grant Schenck

Re: How do I use [OneWay]? Doug Semler
9/16/2007 12:00:04 AM
[quoted text, click to view]


using System.Runtime.Remoting.Messaging;

Be careful, though, the client making the call cannot make ANY assumptions
about whether the server accepted and/or ran the call that you are making to
completion.

In other words, it is only useful in a "I want to call this but don't care
if it succeeds or not" scenario.

--
Doug Semler, MCPD
a.a. #705, BAAWA. EAC Guardian of the Horn of the IPU (pbuhh).
The answer is 42; DNRC o-
Gur Hfrarg unf orpbzr fb shyy bs penc gurfr qnlf, abbar rira
erpbtavmrf fvzcyr guvatf yvxr ebg13 nalzber. Fnq, vfa'g vg?
Re: How do I use [OneWay]? Grant Schenck
9/16/2007 8:27:16 AM
Thanks!

That did the trick. I can't tell you how long I searched MSDN + Google to
try to find what I needed for oneway...

Regarding your advice, yes, thanks. I understand that if I use oneway I
have no indication of failure, etc.
--
Grant Schenck

[quoted text, click to view]

Re: How do I use [OneWay]? Doug Semler
9/16/2007 11:54:02 AM
[quoted text, click to view]

It's in MSDN but sometimes it takes a fresh set of eyes. You probably
forgot that in MSDN, an attribute is actually docuemented as
"OneWayAttribute" <g> Once you get to that point, you see the namespace and
assembly it resides in.

--
Doug Semler, MCPD
a.a. #705, BAAWA. EAC Guardian of the Horn of the IPU (pbuhh).
The answer is 42; DNRC o-
Gur Hfrarg unf orpbzr fb shyy bs penc gurfr qnlf, abbar rira
erpbtavmrf fvzcyr guvatf yvxr ebg13 nalzber. Fnq, vfa'g vg?
Re: How do I use [OneWay]? Grant Schenck
9/17/2007 7:57:36 AM
Thanks!

I don't know about you but I find MS docs almost unusable.
--
Grant Schenck
http://grantschenck.tripod.com/

[quoted text, click to view]

AddThis Social Bookmark Button