title: Identifying last subscribed event of EventHandler c#
body: <p>I have a silver light application, where a service method is called asynchronously. I am required to identify the last subscribed event and perform a specific operation. For an example like below.</p>
  
  <pre><code>foreach(var proj in lstProj)
  {
   ServiceApi.CreateTemplateInfoAsync(proj.Id, proj.Name);
   ServiceApi.CreateTemplateInfoCompleted += new EventHandler&lt;System.ComponentModel.AsyncCompletedEventArgs&gt;(ServiceApi_CreateTemplateInfoCompleted);
  }
  </code></pre>
  
  <p>The above implementation iterates for 10 times for instance, I would like to know the last subscribed event and perform an operation.</p>
  
  <pre><code>void ServiceApi_CreateTemplateInfoCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
          {
              if (e.Error != null)
              {
                  LogErrorInfo(m_ClassName, "CreateTemplateInfoCompleted", e.Error.InnerException.Message, true);
              }
              UtilityApp.ServiceApi.CreateTemplateInfoCompleted -= ServiceApi_CreateTemplateInfoCompleted;
  
  //Check a condition here to know there are no more subscribed events and do an operation.
  If(no more subscriber for CreateTemplateInfoCompleted)
  {
  //Do something.
  }
          }
  </code></pre>
  
  <p>I have seen this can be obtained from <code>CreateTemplateInfoCompleted.GetInvocationList()</code>, However I don’t see that method displayed in intellisense or available. Please provide suggestions.</p>