public IAsyncResult BeginGetService(string serviceName, AsyncCallback userCallback, object userStateObject) { var future = new Future(SessionNative.GetService(this._handle, serviceName), userCallback, userStateObject); future.ThrowIfError(); return(future); }
public Future GetServiceAsync(string serviceName) { return(new Future(SessionNative.GetService(this._handle, serviceName))); }