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 IAsyncResult BeginConnect(Uri addressUri, AsyncCallback userCallback, object userStateObject) { var future = new Future(SessionNative.Connect(this._handle, addressUri.ToString()), userCallback, userStateObject); if (future.HasError) { throw new Exception(future.Error); } return(future); }
protected override bool ReleaseHandle() { SessionNative.Destroy(this.handle); return(true); }
public Future RegisterServiceAsync <T>(string serviceName, T service) where T : QiObject { return(new Future(SessionNative.Register_service(this._handle, serviceName, service.Handle))); }
public Future GetServiceAsync(string serviceName) { return(new Future(SessionNative.GetService(this._handle, serviceName))); }
public Session() { this._handle = SessionNative.Create(); }
public void Close() { SessionNative.Close(this._handle); }