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