Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
 /// <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);
     }
 }