/// <summary> /// Invoke an Task on a dedicated Realm thread. /// </summary> /// <returns>Task</returns> /// <param name="func">Func.</param> public Task InvokeAsync(Func <Realms.Realm, Task> func) { PCLHelpers.ThrowProxyShouldNeverBeUsed(); return(Task.FromResult(false)); }
/// <summary> /// Commits the Realm transaction that is active on this thread. /// </summary> public void CommitTransaction() { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }
/// <summary> /// Invoke the specified action on a dedicated Realm thread. /// </summary> /// <param name="action">Action.</param> public void Invoke(Action <Realms.Realm> action) { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }
/// <summary> /// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class. /// </summary> /// <param name="realmConfig">RealmConfigurationBase</param> /// <param name="autoCommmit">If set to <c>true</c> auto commmit open transaction on Dispose</param> public RealmThread(Realms.RealmConfigurationBase realmConfig, bool autoCommmit) { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }
/// <summary> /// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class. /// </summary> /// <param name="realmConfig">RealmConfigurationBase</param> public RealmThread(Realms.RealmConfigurationBase realmConfig) : this(realmConfig, false) { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }
/// <summary> /// Releases all resource used by the <see cref="T:SushiHangover.RealmThread"/> object. /// </summary> /// <remarks>Call <see cref="Dispose"/> when you are finished using the <see cref="T:SushiHangover.RealmThread"/>. The /// <see cref="Dispose"/> method leaves the <see cref="T:SushiHangover.RealmThread"/> in an unusable state. After /// calling <see cref="Dispose"/>, you must release all references to the <see cref="T:SushiHangover.RealmThread"/> so /// the garbage collector can reclaim the memory that the <see cref="T:SushiHangover.RealmThread"/> was occupying.</remarks> public void Dispose() { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }
/// <summary> /// Rollbacks the Ream transaction that is active on this thread. /// </summary> public void RollbackTransaction() { PCLHelpers.ThrowProxyShouldNeverBeUsed(); }