To create a channel, you will need to implement the following interface:
public interface ICommunicationListener{ Task<string> OpenAsync(CancellationToken cancellationToken); Task CloseAsync(CancellationToken cancellationToken); void Abort();}
As you can see, there is no information regarding technology or the framework used—it is up to you. We will try to open the HTTP protocol in our service. Since we cannot cover all types of service in this book, we will focus on the stateless service. If you open the project from the section about it, in the main file of your service, you can find the following method:
protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners(){ return new ...