title: Cancel All Operations + AFNetworking 3.0
body: <p>I have created a class HTTPServiceProvider inherited from AFURLSessionManager. Added below code to get the data.</p>
  
  <pre><code>let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
  let manager = AFURLSessionManager(sessionConfiguration: configuration)
  let dataTask = manager.dataTaskWithRequest(request) { (response, responseObject, error) in
           //Perform some task
  }
  dataTask.resume()
  </code></pre>
  
  <p>I want to add dataTask to operationQueue provided by AFURLSesstionManger and cancel all the operation in some other class (BaseController.swift) before calling the same request again.</p>
  
  <p><strong>Tried this code but not working</strong> - </p>
  
  <pre><code>self.operationQueue.addOperationWithBlock{
       //Added above code
  }
  </code></pre>
  
  <p>And inside BaseController.swift file , called - </p>
  
  <pre><code>HTTPServiceProvide.sharedInstance.operationQueue.cancelAllOperations
  </code></pre>
  
  <p>But its not working :( </p>
  
  <p>Thanks.</p>