コード例 #1
0
 public FreeSwitchClient(SecureString password, FreeSwitchEventCollection eventCollection)
 {
     _eventCollection = eventCollection;
     var pipelineFactory = new FreeSwitchPipeline(password, this);
     _pipeline = pipelineFactory.Build();
     _channel = new TcpClientChannel(_pipeline);
     _waitingObjects = new AsyncJobQueue();
 }
コード例 #2
0
 public IChannel CreateChannel(IPipeline pipeline)
 {
     var channel = new TcpClientChannel(pipeline);
     channel.Initialize(CreateConfig());
     return channel;
 }