CodeSharp.EventSourcing.Address.ToString C# (CSharp) Method

ToString() public method

Returns a string representation of the address.
public ToString ( ) : string
return string
        public override string ToString()
        {
            return Queue + "@" + Machine;
        }

Usage Example

 public void ClearAddressSubscriptions(Address address)
 {
     using (var connection = _connectionFactory.OpenConnection())
     {
         var subscriberAddress = address.ToString();
         var table = Configuration.Instance.GetSetting<string>("subscriptionTable");
         connection.Delete(new { SubscriberAddress = subscriberAddress }, table);
         _memoryStore.ClearAddressSubscriptions(address);
         _logger.DebugFormat("Cleaned up subscriptions of subscriber address '{0}'", subscriberAddress);
     }
 }
All Usage Examples Of CodeSharp.EventSourcing.Address::ToString