Example #1
0
 /// <summary>
 /// Unpublishes an object.
 /// </summary>
 /// <param name="path">Path of object to unpublish.</param>
 /// <exception cref="ObjectDisposedException">The connection has been disposed.</exception>
 /// <exception cref="InvalidOperationException">The operation is invalid in the current state.</exception>
 /// <exception cref="DisconnectedException">The connection is closed.</exception>
 public void UnregisterObject(ObjectPath path)
 => UnregisterObjects(new[] { path });
Example #2
0
 public T CreateProxy <T>(string serviceName, ObjectPath path)
 {
     return(Connection.CreateProxy <T>(serviceName, path));
 }
Example #3
0
 /// <summary>
 /// Creates a proxy object that represents a remote D-Bus object.
 /// </summary>
 /// <typeparam name="T">Interface of the D-Bus object.</typeparam>
 /// <param name="serviceName">Name of the service that exposes the object.</param>
 /// <param name="path">Object path of the object.</param>
 /// <returns>
 /// Proxy object.
 /// </returns>
 public T CreateProxy <T>(string serviceName, ObjectPath path)
 {
     CheckNotConnectionType(ConnectionType.Server);
     return((T)CreateProxy(typeof(T), serviceName, path));
 }