Ejemplo n.º 1
0
 public void UpdateFromCommand(Information message)
 {
     UpdateFrom(message.NamedFlags);
     Summarize();
 }
Ejemplo n.º 2
0
        private void EnrichInformationMessage(Information message)
        {
            if (message.IpAddressV4.IsDefined && message.IpAddressV4.Value == AnyIPv4)
            {
                message.IpAddressV4.Value = ClientIPv4.ToString();
            }

            if (message.IpAddressV6.IsDefined && message.IpAddressV6.Value == AnyIPv6)
            {
                message.IpAddressV6.Value = ClientIPv6.ToString();
            }
        }
Ejemplo n.º 3
0
 public async Task UpdateInformation(Information message)
 {
     Information.UpdateFromCommand(message);
     await SaveInformationAndUpdateCatalog();
 }
Ejemplo n.º 4
0
 private static Information CreateHubInformation()
 {
     var information = new Information(InformationMessageHeader);
     information.ClientType.Value = Information.ClientTypes.Hub;
     information.Nickname.Value = "ServiceFabricAdcHub";
     information.Description.Value = "Service Fabric ADC Hub";
     information.Features.Value = new HashSet<string>(Features);
     return information;
 }