Exemple #1
0
 public TcpConnectionListener(IServiceProvider serviceProvider)
 {
     this.serializer = serviceProvider.GetRequiredService <MessageSerializer>();
     this.dispatcher = serviceProvider.GetRequiredService <MessageDispatcher>();
     this.options    = serviceProvider.GetRequiredService <BasicTcpBindingOptions>();
 }
Exemple #2
0
 public TcpClientRuntime(IServiceProvider serviceProvider)
 {
     this.serializer = serviceProvider.GetRequiredService <MessageSerializer>();
     this.option     = serviceProvider.GetRequiredService <BasicTcpBindingOptions>();
 }