Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PCL-based .actors to match native Shared .actors #18

Merged
merged 1 commit into from
Mar 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/class_sushi_hangover_1_1_realm_thread-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
<tr class="even"><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#af25e6f865dcde0cab6990e349b6907ec">InTransaction</a></td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a57b7cca758aa498ef464bd687e806b06">Invoke</a>(Action&lt; Realms.Realm &gt; action)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#af4f3dfc1e08ae59d0e115c3c33b75c5a">InvokeAsync</a>(Func&lt; Realms.Realm, Task &gt; func)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe">RealmThread</a>(Realms.RealmConfiguration realmConfig)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a6b9058ec07b1f5f255c9b5375b24b20c">RealmThread</a>(Realms.RealmConfiguration realmConfig, bool autoCommmit)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84">RealmThread</a>(Realms.RealmConfigurationBase realmConfig)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a15c4e76ce83634659b8b51af6de3badd">RealmThread</a>(Realms.RealmConfigurationBase realmConfig, bool autoCommmit)</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a57e34c6cd8c6ecc4a24d7cc10d65594a">RollbackTransaction</a>()</td><td class="entry"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html">SushiHangover.RealmThread</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
</table></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
Expand Down
28 changes: 14 additions & 14 deletions docs/class_sushi_hangover_1_1_realm_thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7123f318d85647b4599f02ad136d6fbe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe">RealmThread</a> (Realms.RealmConfiguration realmConfig)</td></tr>
<tr class="memdesc:a7123f318d85647b4599f02ad136d6fbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a new instance of the T:SushiHangover.RealmThread class. <a href="#a7123f318d85647b4599f02ad136d6fbe">More...</a><br /></td></tr>
<tr class="separator:a7123f318d85647b4599f02ad136d6fbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b9058ec07b1f5f255c9b5375b24b20c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a6b9058ec07b1f5f255c9b5375b24b20c">RealmThread</a> (Realms.RealmConfiguration realmConfig, bool autoCommmit)</td></tr>
<tr class="memdesc:a6b9058ec07b1f5f255c9b5375b24b20c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a new instance of the T:SushiHangover.RealmThread class. <a href="#a6b9058ec07b1f5f255c9b5375b24b20c">More...</a><br /></td></tr>
<tr class="separator:a6b9058ec07b1f5f255c9b5375b24b20c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a213d6a64720818b6d9a1429c71e0af84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84">RealmThread</a> (Realms.RealmConfigurationBase realmConfig)</td></tr>
<tr class="memdesc:a213d6a64720818b6d9a1429c71e0af84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a new instance of the T:SushiHangover.RealmThread class. <a href="#a213d6a64720818b6d9a1429c71e0af84">More...</a><br /></td></tr>
<tr class="separator:a213d6a64720818b6d9a1429c71e0af84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15c4e76ce83634659b8b51af6de3badd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a15c4e76ce83634659b8b51af6de3badd">RealmThread</a> (Realms.RealmConfigurationBase realmConfig, bool autoCommmit)</td></tr>
<tr class="memdesc:a15c4e76ce83634659b8b51af6de3badd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a new instance of the T:SushiHangover.RealmThread class. <a href="#a15c4e76ce83634659b8b51af6de3badd">More...</a><br /></td></tr>
<tr class="separator:a15c4e76ce83634659b8b51af6de3badd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a280ca2b623f7625f0a1176d511312d3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a280ca2b623f7625f0a1176d511312d3c">BeginInvoke</a> (Action&lt; Realms.Realm &gt; action)</td></tr>
<tr class="memdesc:a280ca2b623f7625f0a1176d511312d3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes a 'Fire and Forget' Action on a dedicated Realm thread. <a href="#a280ca2b623f7625f0a1176d511312d3c">More...</a><br /></td></tr>
<tr class="separator:a280ca2b623f7625f0a1176d511312d3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -123,8 +123,8 @@
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Realm Action Pump </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7123f318d85647b4599f02ad136d6fbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7123f318d85647b4599f02ad136d6fbe">&#9670;&nbsp;</a></span>RealmThread() <span class="overload">[1/2]</span></h2>
<a id="a213d6a64720818b6d9a1429c71e0af84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a213d6a64720818b6d9a1429c71e0af84">&#9670;&nbsp;</a></span>RealmThread() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
Expand All @@ -135,7 +135,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a7123f318d85647b4599f02ad
<tr>
<td class="memname">SushiHangover.RealmThread.RealmThread </td>
<td>(</td>
<td class="paramtype">Realms.RealmConfiguration&#160;</td>
<td class="paramtype">Realms.RealmConfigurationBase&#160;</td>
<td class="paramname"><em>realmConfig</em></td><td>)</td>
<td></td>
</tr>
Expand All @@ -150,15 +150,15 @@ <h2 class="memtitle"><span class="permalink"><a href="#a7123f318d85647b4599f02ad
<p>Initializes a new instance of the T:SushiHangover.RealmThread class. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">realmConfig</td><td>RealmConfiguration</td></tr>
<tr><td class="paramname">realmConfig</td><td>RealmConfigurationBase</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a id="a6b9058ec07b1f5f255c9b5375b24b20c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b9058ec07b1f5f255c9b5375b24b20c">&#9670;&nbsp;</a></span>RealmThread() <span class="overload">[2/2]</span></h2>
<a id="a15c4e76ce83634659b8b51af6de3badd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15c4e76ce83634659b8b51af6de3badd">&#9670;&nbsp;</a></span>RealmThread() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
Expand All @@ -169,7 +169,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6b9058ec07b1f5f255c9b537
<tr>
<td class="memname">SushiHangover.RealmThread.RealmThread </td>
<td>(</td>
<td class="paramtype">Realms.RealmConfiguration&#160;</td>
<td class="paramtype">Realms.RealmConfigurationBase&#160;</td>
<td class="paramname"><em>realmConfig</em>, </td>
</tr>
<tr>
Expand All @@ -194,7 +194,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6b9058ec07b1f5f255c9b537
<p>Initializes a new instance of the T:SushiHangover.RealmThread class. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">realmConfig</td><td>RealmConfiguration</td></tr>
<tr><td class="paramname">realmConfig</td><td>RealmConfigurationBase</td></tr>
<tr><td class="paramname">autoCommmit</td><td>If set to <code>true</code> auto commmit open transaction on Dispose</td></tr>
</table>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion docs/functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#af4f3dfc1e08ae59d0e115c3c33b75c5a">SushiHangover.RealmThread</a>
</li>
<li>RealmThread()
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe">SushiHangover.RealmThread</a>
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84">SushiHangover.RealmThread</a>
</li>
<li>RealmThreadException()
: <a class="el" href="class_sushi_hangover_1_1_realm_thread_exception.html#a19c1259888518ad7fe97d68b79fb2903">SushiHangover.RealmThreadException</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/functions_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#af4f3dfc1e08ae59d0e115c3c33b75c5a">SushiHangover.RealmThread</a>
</li>
<li>RealmThread()
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe">SushiHangover.RealmThread</a>
: <a class="el" href="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84">SushiHangover.RealmThread</a>
</li>
<li>RealmThreadException()
: <a class="el" href="class_sushi_hangover_1_1_realm_thread_exception.html#a19c1259888518ad7fe97d68b79fb2903">SushiHangover.RealmThreadException</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.hhc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<UL>
<LI><OBJECT type="text/sitemap"><param name="Name" value="RealmThread"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html"><param name="ImageNumber" value="1"></OBJECT>
<UL>
<LI><OBJECT type="text/sitemap"><param name="Name" value="RealmThread"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="RealmThread"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a6b9058ec07b1f5f255c9b5375b24b20c"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="RealmThread"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="RealmThread"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a15c4e76ce83634659b8b51af6de3badd"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="BeginInvoke"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a280ca2b623f7625f0a1176d511312d3c"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="BeginTransaction"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#acd5af6b0b13d5a6016b00f5c8e20e9b9"><param name="ImageNumber" value="11"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Name" value="CommitTransaction"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#ae17e20b53863c684af560050f0b41cf4"><param name="ImageNumber" value="11"></OBJECT>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.hhk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#af25e6f865dcde0cab6990e349b6907ec"><param name="Name" value="InTransaction"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a57b7cca758aa498ef464bd687e806b06"><param name="Name" value="Invoke"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#af4f3dfc1e08ae59d0e115c3c33b75c5a"><param name="Name" value="InvokeAsync"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe"><param name="Name" value="RealmThread"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84"><param name="Name" value="RealmThread"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread_exception.html#a66346140081e567a6dff5d2c0ea692d5"><param name="Name" value="RealmThreadException"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread_in_transaction.html#a8e47e19babb0a1032163948207a7e0f5"><param name="Name" value="RealmThreadInTransaction"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread_not_in_transaction.html#a1469fb33ca345f1e90e991ed9f3c1d29"><param name="Name" value="RealmThreadNotInTransaction"></OBJECT>
Expand All @@ -26,7 +26,7 @@
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#af25e6f865dcde0cab6990e349b6907ec"><param name="Name" value="InTransaction"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a57b7cca758aa498ef464bd687e806b06"><param name="Name" value="Invoke"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#af4f3dfc1e08ae59d0e115c3c33b75c5a"><param name="Name" value="InvokeAsync"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a7123f318d85647b4599f02ad136d6fbe"><param name="Name" value="RealmThread"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a213d6a64720818b6d9a1429c71e0af84"><param name="Name" value="RealmThread"></OBJECT>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread.html#a57e34c6cd8c6ecc4a24d7cc10d65594a"><param name="Name" value="RollbackTransaction"></OBJECT>
</UL>
<LI><OBJECT type="text/sitemap"><param name="Local" value="class_sushi_hangover_1_1_realm_thread_exception.html"><param name="Name" value="SushiHangover::RealmThreadException"></OBJECT>
Expand Down
15 changes: 8 additions & 7 deletions src/RealmThread.Portable/RealmThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class RealmThread : IDisposable
/// <value>The managed thread identifier.</value>
int ManagedThreadId
{
get
{
get
{
PCLHelpers.ThrowProxyShouldNeverBeUsed();
return int.MinValue;
}
Expand All @@ -27,7 +27,8 @@ int ManagedThreadId
/// <value><c>true</c> if in transaction; otherwise, <c>false</c>.</value>
public bool InTransaction
{
get {
get
{
PCLHelpers.ThrowProxyShouldNeverBeUsed();
return false;
}
Expand All @@ -36,18 +37,18 @@ public bool InTransaction
/// <summary>
/// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class.
/// </summary>
/// <param name="realmConfig">RealmConfiguration</param>
public RealmThread(Realms.RealmConfiguration realmConfig) : this(realmConfig, false)
/// <param name="realmConfig">RealmConfigurationBase</param>
public RealmThread(Realms.RealmConfigurationBase realmConfig) : this(realmConfig, false)
{
PCLHelpers.ThrowProxyShouldNeverBeUsed();
}

/// <summary>
/// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class.
/// </summary>
/// <param name="realmConfig">RealmConfiguration</param>
/// <param name="realmConfig">RealmConfigurationBase</param>
/// <param name="autoCommmit">If set to <c>true</c> auto commmit open transaction on Dispose</param>
public RealmThread(Realms.RealmConfiguration realmConfig, bool autoCommmit)
public RealmThread(Realms.RealmConfigurationBase realmConfig, bool autoCommmit)
{
PCLHelpers.ThrowProxyShouldNeverBeUsed();
}
Expand Down
4 changes: 2 additions & 2 deletions src/RealmThread.Shared/RealmThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public bool InTransaction
/// <summary>
/// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class.
/// </summary>
/// <param name="realmConfig">RealmConfiguration</param>
/// <param name="realmConfig">RealmConfigurationBase</param>
public RealmThread(RealmConfigurationBase realmConfig) : this(realmConfig, false)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="T:SushiHangover.RealmThread"/> class.
/// </summary>
/// <param name="realmConfig">RealmConfiguration</param>
/// <param name="realmConfig">RealmConfigurationBase</param>
/// <param name="autoCommmit">If set to <c>true</c> auto commmit open transaction on Dispose</param>
public RealmThread(RealmConfigurationBase realmConfig, bool autoCommmit)
{
Expand Down