title: Disposing WCF with long running [OperationContract(IsOneWay = true)]
body: <p>I've following service, defined as OneWay, because it's long running (a few minutes) and I can't wait when it finishes (it's used in ASP.NET application). </p>
  
  <p>The problem is that if I call client.Dispose() after the service call, it blocks and after 60s timeout expires with exception.</p>
  
  <p>How should I dispose the client in such scenario? Increasing the timeout of the service isn't solution, because I can't wait so long time with the HTTP request of the web page, where it's used.</p>
  
  <pre><code>[ServiceContract]
  public interface IMyService
  {        
      [OperationContract(IsOneWay = true)]
      void BeginRun();
  }
  
  var client = new MyServiceClient();
  client.BeginRun();
  client.Close(); //This leads to time-out, how and when to call it?
  </code></pre>
  
  <p>Thanks for tips.</p>