示例#1
0
        public static async Task <ObserverEndpoint> Create()
        {
            var endpoint = new ObserverEndpoint();

            var proxy = await ObserverEndpointFactory
                        .CreateObjectReference(endpoint);

            return(endpoint.Initialize(proxy));
        }
示例#2
0
 internal static IObserverEndpoint Proxy(ObserverPath path)
 {
     return(ObserverEndpointFactory.Cast(GrainReference.FromKeyString(path.ToString())));
 }
示例#3
0
 public void Dispose()
 {
     ObserverEndpointFactory.DeleteObjectReference(proxy);
 }