Questions tagged [isoneway]

19 questions
5
votes
1 answer

WCF: Exception handling on OneWay OperationContract

I am having a WCF duplex service with Silverlight client and .NET 3.5 WCF service. The scenario I have is: during the duplex push OneWay operation from server to client if an exception happens in client notification handler the channel gets silently…
Nikola Malovic
  • 1,230
  • 1
  • 13
  • 24
4
votes
1 answer

Waiting for completion of one-way WCF call in a C# console application

I have a WCF webservice (not under my control) that implements functionality I need to access via IsOneWay=true + a callback interface, one of the methods of which notifies of processing completion. It has been written this way as it was initially…
anonymouse
  • 125
  • 1
  • 9
4
votes
6 answers

What happens in WCF to methods with IsOneWay=true at application termination

I have a client application that once in while notifies about its progress a service. The method call to the service is marked with IsOneWay=true, because the notification doesn't need any return value and I don't want to delay. The client may…
Ami Bar
2
votes
0 answers

WCF works only with the Web.config is checked for edition

I've a problem. I've created a WCF in .Net 4.0. This is the contract used: [OperationContract(IsOneWay = true)] void Proccess(byte [] importRequest, int idTask); The service works fine only when the web.config for the WCF is checked for…
Mariano G
  • 255
  • 4
  • 14
2
votes
2 answers

How to find out whether current method is flagged with IsOneWay

Is there a way to know whether the currently executing WCF method is a OneWay method? I'm using httpBinding and the question relates to the server side. I searched in properties for OperationContext on MSDN and couldn't find it. EDIT: I used the…
Sergey Litvinov
  • 7,408
  • 5
  • 46
  • 67
1
vote
1 answer

One way pivot paging

I want to create a photo gallery basically. I have a list of x items, and a pivot of 3 pages fixed. (I did this because I don't know in advance will I have 4 items or 1000) When I'm browsing between the items and I reach the last one, I want to…
Igor Meszaros
  • 2,081
  • 2
  • 22
  • 46
1
vote
3 answers

Are OneWay Operations in WCF compatible with ClientCertificateMappingAuthorization?

I made a WCF with one void method and deployed it on IIS; it works fine (the service response is code 202) until I put it under SSL with Client Certificate Authentication: in this case the code behind the operation is not executed and the server…
1
vote
1 answer

Does exceptions throw inside an One method makes the channel faulted?

If I set IsOneWay=true in a method, does exceptions thrown inside it affect the channel or the client?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
1
vote
3 answers

How to detect WCF connectivity without try-catch?

I use WCF netNamedPipeBinding and wsHttpBinding. I would like to know whether a one-way method can execute successfully without trying it. EDIT As someone noted the conectivity can succeed a given moment and in the next fail. I don't care. I just…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
1
vote
1 answer

Do I need to close the connection to a WCF service from a console that exits straight away?

I have a console app that I want to do a "fire-and-forget" call to a WCF service, and then close down without waiting for a response. It is just supposed to initiate a cleanup job. The job can take several hours to finish, so I don't want the…
borb
  • 51
  • 1
  • 7
1
vote
2 answers

WCF Service - setting IsOneWay=true still results in waiting client

For seme of my service methods, client application needn't wait for any response to be sent over, So I just decorated these methods with IsOneWay=true, so they look like: [OperationContract(IsOneWay=true)] void MethodName(string param1, int…
inutan
  • 10,558
  • 27
  • 84
  • 126
1
vote
2 answers

Simulate Fire & Forget scenario using C# Threading

I have a web service, which takes lot of time to execute. I am planning to delegate the processing task to a background thread & return the acknowledgement response to the user immediately. In this case I was worried about the life-time of the…
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
1
vote
0 answers

What could be the consequences of declaring method as AsyncPattern on caller side, and OneWay on implementation side

I have a service implementing the following contract: [OperationContract(IsOneWay = true)] void Execute(IList someObjects); In order to avoid stalling on caller side (which taking a few seconds when latency is high) I want to change the…
HuBeZa
  • 4,715
  • 3
  • 36
  • 58
0
votes
1 answer

WPF: Binding Grid.Visibility OneWay to a dependency property and OneWayToSource to a view model CLR property

I have a Grid to which the Visibility property is bound to IsExpanded of a parent Expander control. Whenever Grid.Visibility changes, I want a property (MyProperty) on the DataContext (the view model) to change accordingly. This is my XAML:
Neo
  • 4,145
  • 6
  • 53
  • 76
0
votes
2 answers

WCF "Fire and Forget" method is not allowing host execution to continue as expected

I have a windows service hosting a singleton WCF service which caches a large amount of data. On start up of the windows service I am doing the following: // start client service wcfService= new ServiceHost(typeof(MyWcfService)); …
Franchesca
  • 1,453
  • 17
  • 32
1
2