public DiscoveryAddressAddedEventArgs(ServiceInfo serviceInfo) { ServiceInfo = new ServiceInfo(); ServiceInfo = serviceInfo; }
void AddFoundServiceFromScResolvedData( IResolvableService metaData ) { var sst = new ServiceInfo( metaData.TxtRecord[ "name" ].ValueString, metaData.TxtRecord[ "loc" ].ValueString, metaData.TxtRecord[ "addr" ].ValueString, metaData.TxtRecord[ "code" ].ValueString ); ActivityServices.Add( sst ); OnDiscoveryAddressAdded( new DiscoveryAddressAddedEventArgs( sst ) ); }
public DiscoveryAddressAddedEventArgs( ServiceInfo serviceInfo ) { ServiceInfo = new ServiceInfo(); ServiceInfo = serviceInfo; }
/// <summary> /// Adds a discovered service to the service list and send a DiscoverAddressAdded event /// </summary> /// <param name="metaData">The meta data of the service</param> void AddFoundServiceFromWsMetaData( EndpointDiscoveryMetadata metaData ) { var sst = new ServiceInfo( Helpers.Xml.FromXElement<string>( metaData.Extensions[ 0 ] ), Helpers.Xml.FromXElement<string>( metaData.Extensions[ 1 ] ), Helpers.Xml.FromXElement<string>( metaData.Extensions[ 2 ] ), Helpers.Xml.FromXElement<string>( metaData.Extensions[ 3 ] ) ); ActivityServices.Add( sst ); OnDiscoveryAddressAdded( new DiscoveryAddressAddedEventArgs( sst ) ); }