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

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

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