コード例 #1
0
        public override Task <DirectorResult> FetchAllDirectors(
            DirectorRequest request, ServerCallContext context)
        {
            var result = new DirectorResult();

            result.Country = "NL";
            result.Name    = "Apollo";
            return(Task.FromResult(result));
        }
コード例 #2
0
 public ProductInfo DirectorSearchRequest(DirectorRequest DirectorSearchRequest)
 {
     object[] results = this.Invoke("DirectorSearchRequest", new object[] {
         DirectorSearchRequest});
     return ((ProductInfo)(results[0]));
 }
コード例 #3
0
 public System.IAsyncResult BeginDirectorSearchRequest(DirectorRequest DirectorSearchRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("DirectorSearchRequest", new object[] {
         DirectorSearchRequest}, callback, asyncState);
 }