Пример #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);
     }
 }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
     }
 }