public Decorator(IMessageText messageText) { this.messageText = messageText; }
public Client(IMessageText messageText, int port) { _msgText = messageText ?? throw new ArgumentNullException(nameof(messageText)); _port = port; }
public Server(IMessageText msgText, int port) { _msgText = msgText ?? throw new ArgumentNullException(nameof(msgText)); _port = port; }
public static ContainerBuilder CreateMessageText(this ContainerBuilder containerBuilder, IMessageText messageText) { containerBuilder.RegisterInstance(messageText).As <IMessageText>(); return(containerBuilder); }