Exemplo n.º 1
0
        public DistantDAC(ProjectSettings settings)
        {
            try
            {
                Binding bind;
                if (settings.TransportMode == Transport.Http)
                {
                    bind = new WSHttpBinding("HttpBinding");
                }
                else
                {
                    bind = new NetTcpBinding("NetTcpBinding");
                }

                _DistantService = new CaptureServiceClient
                                  (
                    bind,
                    new EndpointAddress(ServiceUri(settings))
                                  );
            }
            catch (Exception error)
            {
                Tracer.Error("DistantDAC.DistantDAC", error);
            }
        }
Exemplo n.º 2
0
 public CaptureServiceCallback()
 {
     _client = new CaptureServiceClient(new InstanceContext(this));
     _client.Subscribe(new Subscription {
         RequestAudio = true, RequestVideo = true
     });
 }