Note that there are some explanatory texts on larger screens.

plurals
  1. POPassing data into a callback, is data guaranteed to be received?
    primarykey
    data
    text
    <p>my question is: having a piece of code like that (communication via callback contract)</p> <pre><code>private void BroadcastMessage(DataEventArgs e) { DataEventHandler temp = DataEvent; if (temp != null) { foreach (DataEventHandler handler in temp.GetInvocationList()) { handler.BeginInvoke(this, e, EndAsync, null); } } } </code></pre> <p>and a callback contract</p> <pre><code>interface IDataCallback { [OperationContract(IsOneWay = true)] void EntityUpdateReceived(Entity entity); [OperationContract(IsOneWay = true)] void EntitiesUpdateReceived(List&lt;Entity&gt; entities); [OperationContract(IsOneWay = true)] void EntityDeleteReceived(Entity entity); [OperationContract(IsOneWay = true)] void EntitiesDeleteReceived(List&lt;Entity&gt; entities); [OperationContract(IsOneWay = true)] void SendLogOffMessage(string message); [OperationContract(IsOneWay = true)] void Logoff(); [OperationContract(IsOneWay = true)] void UpdatePlan(int userId); } </code></pre> <p>Do I have an assurance that the message will be broadcasted to all clients successfully, even if there were some, let's say network problems on the way ?? I mean, does the service automatcially try to deliver the message time after time until it succeeds, assuming the client is connected all the time but there were some problems during first delivery. I am asking because I do not know if I have to write additional code to have it guaranteed (service-client confirmation messages, etc.) I have a reliable session enabled in app.config, does reliable session solves the issue??</p> <p>Thanks in advance for your answer</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload