public static MessageBinding Default <T>() where T : IMessage => new MessageBinding(MessageUtil.TypeId <T>(), BindingKey.Empty);
public MessageTypeId(string fullName) { _descriptor = MessageUtil.GetMessageTypeDescriptor(fullName); FullName = QualifiedName = fullName; }
public static Subscription Any <TMessage>() where TMessage : IMessage => new Subscription(MessageUtil.TypeId <TMessage>());
public MessageTypeId(Type messageType) { _descriptor = MessageUtil.GetMessageTypeDescriptor(messageType); FullName = _descriptor.FullName; QualifiedName = GetFullnameWithNoAssemblyOrVersion(messageType); }