public TcpClientQbservableProvider(Type sourceType, IPEndPoint endPoint, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
 {
     this.sourceType     = sourceType;
     this.endPoint       = endPoint;
     this.formatter      = formatter;
     this.localEvaluator = localEvaluator;
 }
示例#2
0
        /// <summary>
        /// Constructs an instance of a client provider.
        /// </summary>
        protected QactiveProvider(Type sourceType, LocalEvaluator clientEvaluator)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(clientEvaluator != null);

            SourceType      = sourceType;
            ClientEvaluator = clientEvaluator;
        }
示例#3
0
 public TcpQbservableClient(IPAddress address, int port, LocalEvaluator localEvaluator)
     : this(new IPEndPoint(address, port), localEvaluator)
 {
     Contract.Requires(address != null);
     Contract.Requires(port >= IPEndPoint.MinPort);
     Contract.Requires(port <= IPEndPoint.MaxPort);
     Contract.Requires(localEvaluator != null);
 }
示例#4
0
        /// <summary>
        /// Constructs an instance of a client provider.
        /// </summary>
        protected QactiveProvider(Type sourceType, LocalEvaluator clientEvaluator, object argument)
            : this(sourceType, clientEvaluator)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(clientEvaluator != null);

            Argument = argument;
        }
示例#5
0
        public LocalEvaluationVisitor(LocalEvaluator evaluator, IQbservableProtocol protocol)
        {
            Contract.Requires(evaluator != null);
            Contract.Requires(protocol != null);

            this.evaluator = evaluator;
            this.protocol  = protocol;
        }
        public WebSocketQbservableClient(Uri uri, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
        {
            Contract.Requires(uri != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);

            this.uri            = uri;
            this.formatter      = formatter;
            this.localEvaluator = localEvaluator;
        }
示例#7
0
        public TcpQbservableClient(IPEndPoint endPoint, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
        {
            Contract.Requires(endPoint != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);

            this.endPoint       = endPoint;
            this.formatter      = formatter;
            this.localEvaluator = localEvaluator;
        }
示例#8
0
        private TcpQactiveProvider(Type sourceType, IPEndPoint endPoint, Action <Socket> prepareSocket, IRemotingFormatter formatter, LocalEvaluator localEvaluator, object argument)
            : base(sourceType, localEvaluator, argument)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(endPoint != null);
            Contract.Requires(prepareSocket != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);

            EndPoint           = endPoint;
            clientNumber       = Interlocked.Increment(ref lastClientNumber);
            this.prepareSocket = prepareSocket;
            formatterFactory   = new ConstantFormatterFactory(formatter).GetFormatter;
        }
示例#9
0
        public static TcpQactiveProvider Client(Type sourceType, IPEndPoint endPoint, Action <Socket> prepareSocket, IRemotingFormatter formatter, LocalEvaluator localEvaluator, object argument)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(endPoint != null);
            Contract.Requires(prepareSocket != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);
            Contract.Ensures(Contract.Result <TcpQactiveProvider>() != null);

            return(new TcpQactiveProvider(sourceType, endPoint, prepareSocket, formatter, localEvaluator, argument));
        }
示例#10
0
        private WebSocketQactiveProvider(Type sourceType, Uri uri, Action <WebSocket> prepareSocket, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
            : base(sourceType, localEvaluator)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(uri != null);
            Contract.Requires(prepareSocket != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);

            Uri                = uri;
            clientNumber       = Interlocked.Increment(ref lastClientNumber);
            this.prepareSocket = prepareSocket;
            formatterFactory   = new ConstantFormatterFactory(formatter).GetFormatter;
        }
示例#11
0
        public static WebSocketQactiveProvider Client(Type sourceType, Uri uri, Action <WebSocket> prepareSocket, IRemotingFormatter formatter, LocalEvaluator localEvaluator, object argument)
        {
            Contract.Requires(sourceType != null);
            Contract.Requires(uri != null);
            Contract.Requires(prepareSocket != null);
            Contract.Requires(formatter != null);
            Contract.Requires(localEvaluator != null);
            Contract.Ensures(Contract.Result <WebSocketQactiveProvider>() != null);

            return(new WebSocketQactiveProvider(sourceType, uri, prepareSocket, formatter, localEvaluator, argument));
        }
示例#12
0
 public QbservableTcpClient(IPEndPoint endPoint, LocalEvaluator localEvaluator)
     : this(endPoint, QbservableTcpServer.CreateDefaultFormatter(), localEvaluator)
 {
 }
示例#13
0
 public TcpQbservableClient(IPEndPoint endPoint, LocalEvaluator localEvaluator)
     : this(endPoint, TcpQactiveDefaults.CreateDefaultFormatter(), localEvaluator)
 {
     Contract.Requires(endPoint != null);
     Contract.Requires(localEvaluator != null);
 }
示例#14
0
 public LocalEvaluationVisitor(LocalEvaluator evaluator, QbservableProtocol protocol)
 {
     this.evaluator = evaluator;
     this.protocol  = protocol;
 }
 public TcpClientQbservableProvider(Type sourceType, IPEndPoint endPoint, IRemotingFormatter formatter, LocalEvaluator localEvaluator, object argument)
     : this(sourceType, endPoint, formatter, localEvaluator)
 {
     this.argument = argument;
 }
示例#16
0
 public QbservableTcpClient(IPAddress address, int port, LocalEvaluator localEvaluator)
     : this(new IPEndPoint(address, port), localEvaluator)
 {
 }
示例#17
0
 public QbservableTcpClient(IPAddress address, int port, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
     : this(new IPEndPoint(address, port), formatter, localEvaluator)
 {
 }
 public WebSocketQbservableClient(Uri uri, LocalEvaluator localEvaluator)
     : this(uri, WebSocketQactiveDefaults.CreateDefaultFormatter(), localEvaluator)
 {
     Contract.Requires(uri != null);
     Contract.Requires(localEvaluator != null);
 }
示例#19
0
 public QbservableTcpClient(IPEndPoint endPoint, IRemotingFormatter formatter, LocalEvaluator localEvaluator)
 {
     this.endPoint       = endPoint;
     this.formatter      = formatter;
     this.localEvaluator = localEvaluator;
 }
示例#20
0
 protected QactiveProviderContract(Type sourceType, LocalEvaluator clientEvaluator)
     : base(sourceType, clientEvaluator)
 {
 }