Exemple #1
0
        /// <inheritdoc />
        public ClientRef ClientOf(string path)
        {
            Requires.NotNullOrWhitespace(path, nameof(path));

            var endpoint = ClientEndpoint.Proxy(path, grainFactory);

            return(new ClientRef(endpoint));
        }
Exemple #2
0
        public static async Task <ClientEndpoint> Create(IGrainFactory factory)
        {
            var endpoint = new ClientEndpoint(factory);

            var proxy = await factory.CreateObjectReference <IClientEndpoint>(endpoint);

            return(endpoint.Initialize(proxy));
        }
Exemple #3
0
 ClientObserver(ClientEndpoint endpoint)
     : this(endpoint.Self)
 {
     this.endpoint = endpoint;
 }
Exemple #4
0
        /// <summary>
        /// Creates new <see cref="ClientObserver"/>
        /// </summary>
        /// <returns>New instance of <see cref="ClientObserver"/></returns>
        public static async Task <ClientObserver> Create()
        {
            var proxy = await ClientEndpoint.Create();

            return(new ClientObserver(proxy));
        }
Exemple #5
0
 internal ClientObservable(ClientEndpoint endpoint)
     : this(endpoint.Self)
 {
     this.endpoint = endpoint;
 }
Exemple #6
0
 public ClientRef(SerializationInfo info, StreamingContext context)
 {
     Path     = (string)info.GetValue("path", typeof(string));
     endpoint = ClientEndpoint.Proxy(Path);
 }
Exemple #7
0
 public static ClientRef Deserialize(string path) => new ClientRef(path, ClientEndpoint.Proxy(path));
Exemple #8
0
 public new static ClientRef Deserialize(string path)
 {
     return(new ClientRef(path, ClientEndpoint.Proxy(path)));
 }
Exemple #9
0
 internal ClientRef(IClientEndpoint endpoint)
     : this(ClientEndpoint.Path(endpoint))
 {
     this.endpoint = endpoint;
 }
Exemple #10
0
 public DisposableSubscription(ClientEndpoint owner)
 {
     this.owner = owner;
 }