/// <summary> /// Raises the <see cref="E:InspectMetadataCompleted"/> event. /// </summary> /// <param name="e">The <see cref="T:Microsoft.Practices.ServiceFactory.WCF.Description.InspectMetadataCompletedEventArgs"/> instance containing the event data.</param> protected virtual void OnInspectMetadataCompleted(InspectMetadataCompletedEventArgs e) { if (this.InspectMetadataCompleted != null) { this.InspectMetadataCompleted(this, e); } }
private void OnDiscoverMetadataCallback(object state) { InspectMetadataCompletedEventArgs args = null; try { MetadataSet metadata = DiscoverMetadata(address); args = new InspectMetadataCompletedEventArgs(metadata); } catch (Exception exception) { args = new InspectMetadataCompletedEventArgs(exception); } finally { OnInspectMetadataCompleted(args); } }
private void OnDiscoverMetadataCallback(object state) { InspectMetadataCompletedEventArgs args = null; try { MetadataSet metadata = DiscoverMetadata(address); args = new InspectMetadataCompletedEventArgs(metadata); } catch (Exception exception) { args = new InspectMetadataCompletedEventArgs(exception); } finally { OnInspectMetadataCompleted(args); } }
/// <summary> /// Raises the <see cref="E:InspectMetadataCompleted"/> event. /// </summary> /// <param name="e">The <see cref="T:Microsoft.Practices.ServiceFactory.WCF.Description.InspectMetadataCompletedEventArgs"/> instance containing the event data.</param> protected virtual void OnInspectMetadataCompleted(InspectMetadataCompletedEventArgs e) { if (this.InspectMetadataCompleted != null) { this.InspectMetadataCompleted(this, e); } }