本文整理汇总了C#中GLibSharp.AsyncReadyCallbackWrapper.PersistUntilCalled方法的典型用法代码示例。如果您正苦于以下问题:C# GLibSharp.AsyncReadyCallbackWrapper.PersistUntilCalled方法的具体用法?C# GLibSharp.AsyncReadyCallbackWrapper.PersistUntilCalled怎么用?C# GLibSharp.AsyncReadyCallbackWrapper.PersistUntilCalled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GLibSharp.AsyncReadyCallbackWrapper
的用法示例。
在下文中一共展示了GLibSharp.AsyncReadyCallbackWrapper.PersistUntilCalled方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetStream
public static void GetStream(string address, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
IntPtr native_address = GLib.Marshaller.StringToPtrGStrdup (address);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_dbus_address_get_stream(native_address, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_address);
}
示例2: QueryInfoAsync
public void QueryInfoAsync(string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
IntPtr native_attributes = GLib.Marshaller.StringToPtrGStrdup (attributes);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_file_io_stream_query_info_async(Handle, native_attributes, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_attributes);
}
示例3: NewTakeError
public static SimpleAsyncResult NewTakeError(GLib.Object source_object, GLib.AsyncReadyCallback cb, IntPtr error)
{
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
SimpleAsyncResult result = new SimpleAsyncResult (g_simple_async_result_new_take_error(source_object == null ? IntPtr.Zero : source_object.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, error));
return result;
}
示例4: SimpleAsyncResult
public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback cb, IntPtr source_tag) : base (IntPtr.Zero)
{
if (GetType () != typeof (SimpleAsyncResult)) {
throw new InvalidOperationException ("Can't override this constructor.");
}
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
Raw = g_simple_async_result_new(source_object == null ? IntPtr.Zero : source_object.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, source_tag);
}
示例5: DBusConnection
public DBusConnection (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) : base (IntPtr.Zero)
{
if (GetType () != typeof (DBusConnection)) {
throw new InvalidOperationException ("Can't override this constructor.");
}
IntPtr native_address = GLib.Marshaller.StringToPtrGStrdup (address);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
Raw = g_dbus_connection_new_for_address(native_address, (int) flags, observer == null ? IntPtr.Zero : observer.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_address);
}
示例6: DBusProxy
public DBusProxy (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo info, string name, string object_path, string interface_name, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) : base (IntPtr.Zero)
{
if (GetType () != typeof (DBusProxy)) {
throw new InvalidOperationException ("Can't override this constructor.");
}
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
IntPtr native_object_path = GLib.Marshaller.StringToPtrGStrdup (object_path);
IntPtr native_interface_name = GLib.Marshaller.StringToPtrGStrdup (interface_name);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
Raw = g_dbus_proxy_new_for_bus((int) bus_type, (int) flags, info == null ? IntPtr.Zero : info.Handle, native_name, native_object_path, native_interface_name, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_name);
GLib.Marshaller.Free (native_object_path);
GLib.Marshaller.Free (native_interface_name);
}
示例7: LoadAsync
public void LoadAsync(int size, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_loadable_icon_load_async(Handle, size, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
示例8: InternalCloseAsync
private void InternalCloseAsync (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb)
{
CloseAsyncNativeDelegate unmanaged = GetClassStruct (this.LookupGType ().GetThresholdType (), true).CloseAsync;
if (unmanaged == null) return;
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
unmanaged (this.Handle, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
示例9: EnumerateChildrenAsync
public void EnumerateChildrenAsync(string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
IntPtr native_attributes = GLib.Marshaller.StringToPtrGStrdup (attributes);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_file_enumerate_children_async(Handle, native_attributes, (int) flags, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_attributes);
}
示例10: MountEnclosingVolume
public void MountEnclosingVolume(GLib.MountMountFlags flags, GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_file_mount_enclosing_volume(Handle, (int) flags, mount_operation == null ? IntPtr.Zero : mount_operation.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
示例11: StartMountable
public void StartMountable(GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_file_start_mountable(Handle, (int) flags, start_operation == null ? IntPtr.Zero : start_operation.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
示例12: InternalQueryInfoAsync
private void InternalQueryInfoAsync (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb)
{
QueryInfoAsyncNativeDelegate unmanaged = GetClassStruct (this.LookupGType ().GetThresholdType (), true).QueryInfoAsync;
if (unmanaged == null) return;
IntPtr native_attributes = GLib.Marshaller.StringToPtrGStrdup (attributes);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
unmanaged (this.Handle, native_attributes, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_attributes);
}
示例13: ReportTakeGerrorInIdle
public static void ReportTakeGerrorInIdle(GLib.Object objekt, GLib.AsyncReadyCallback cb, IntPtr error) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_simple_async_report_take_gerror_in_idle(objekt == null ? IntPtr.Zero : objekt.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero, error);
}
示例14: Get
public static void Get(GLib.BusType bus_type, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_bus_get((int) bus_type, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
示例15: ReleaseAsync
public void ReleaseAsync(GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_permission_release_async(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}