Dean Herbert
|
a5c76a9647
|
Fix a few more cases of "context" terminology usage
|
2022-01-25 13:56:47 +09:00 |
|
Dean Herbert
|
d7342880f5
|
Update remaining cases of clashes with realm.Write and realm.RegisterForNotifications
|
2022-01-25 13:09:48 +09:00 |
|
Dean Herbert
|
e23b10e6a5
|
Update remaining cases of clashing variable name in realm.Run(realm..
|
2022-01-25 13:04:05 +09:00 |
|
Dean Herbert
|
f30894840c
|
Update terminology to realm "instance" rather than "context"
This matches the terminology used by realm themselves, which feels
better.
|
2022-01-24 20:38:38 +09:00 |
|
Dean Herbert
|
6eb2c28e41
|
Rename RealmContextFactory to RealmAccess
|
2022-01-24 20:38:07 +09:00 |
|
Dan Balasescu
|
bb54ad9ad8
|
Merge pull request #16547 from peppy/realm-stable-subscriptions
Fix realm subscriptions getting lost after a context recycle
|
2022-01-24 20:20:04 +09:00 |
|
Dean Herbert
|
66c5d77d63
|
Allow realm migration to run again if interrupted halfway
|
2022-01-24 18:55:15 +09:00 |
|
Dean Herbert
|
9afa034296
|
Fix attempt to revive update thread realm context from non-update thread
|
2022-01-24 18:36:16 +09:00 |
|
Dean Herbert
|
9ff9611296
|
Merge branch 'master' into realm-stable-subscriptions
|
2022-01-24 18:25:47 +09:00 |
|
Dean Herbert
|
e3083c2477
|
Fix copy pasted xmldoc
|
2022-01-24 18:05:30 +09:00 |
|
Dean Herbert
|
bf5bf8d1fd
|
Rename dictionaries to match methods
|
2022-01-24 17:58:53 +09:00 |
|
Dean Herbert
|
f4e7211ef1
|
Add xmldoc for RegisterForNotifications
|
2022-01-24 17:52:36 +09:00 |
|
Dean Herbert
|
abf14f0982
|
Lock unregistration for sanity
|
2022-01-24 17:46:53 +09:00 |
|
Dean Herbert
|
52cd906af6
|
Move context retrieval inside lock
|
2022-01-24 17:45:31 +09:00 |
|
Dean Herbert
|
cb319cebdb
|
Refactor naming and add more comments to help understanding in RealmContextFactory subscription logic
|
2022-01-24 14:48:55 +09:00 |
|
Dean Herbert
|
40aa873190
|
Rename register methods to better explain their purpose
|
2022-01-24 14:37:36 +09:00 |
|
Dean Herbert
|
997c13f643
|
Add locking over realmSubscriptionsResetMap for sanity
|
2022-01-24 13:36:51 +09:00 |
|
Dean Herbert
|
deb1670862
|
Use Array.Empty instead of constructed list
|
2022-01-23 23:18:50 +09:00 |
|
Dean Herbert
|
249f0f9697
|
Add more lengthy comment explaining cyclic avoidance
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
|
2022-01-23 23:15:39 +09:00 |
|
Dean Herbert
|
5e7993c35a
|
Post disposal to synchronisation context
|
2022-01-23 20:43:25 +09:00 |
|
Dean Herbert
|
61cef42be9
|
Proof of concept realm subscriptions via Register
|
2022-01-23 20:28:04 +09:00 |
|
Dean Herbert
|
f39ff1eacb
|
Add unregistration on blocking
This is the first part of the requirement of sending a `ChangeSet` event
to ensure correct state during blocking time
|
2022-01-23 20:27:57 +09:00 |
|
Dean Herbert
|
70a120ea8a
|
Add missing lock coverage when using subscriptionActions dictionary
|
2022-01-23 18:00:24 +09:00 |
|
Bartłomiej Dach
|
7e68371d28
|
Move log statement about migration completed closer to rest of migration code
|
2022-01-22 14:20:28 +01:00 |
|
Bartłomiej Dach
|
1b2cca4a0d
|
Merge branch 'master' into realm-migration-ui
|
2022-01-22 13:52:19 +01:00 |
|
Bartłomiej Dach
|
c99f227879
|
Remove no longer used resolved storage
|
2022-01-22 13:48:49 +01:00 |
|
Dean Herbert
|
6a076a684e
|
Merge branch 'realm-context-use-update-when-feasible' into realm-stable-subscriptions
|
2022-01-22 13:14:25 +09:00 |
|
Dean Herbert
|
cdcf0947e6
|
Merge branch 'master' into realm-context-use-update-when-feasible
|
2022-01-22 12:09:18 +09:00 |
|
Dean Herbert
|
b23f4674b1
|
Update outdated exception message
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
|
2022-01-22 12:02:18 +09:00 |
|
Dean Herbert
|
daed0b04dc
|
Remove using statements
|
2022-01-22 11:54:40 +09:00 |
|
Dean Herbert
|
855ef3fa92
|
Create backup before any realm contexts are used
|
2022-01-22 11:52:46 +09:00 |
|
Dean Herbert
|
8ef50ff42d
|
Add safety to ensure RealmLiveUnmanaged is not used with managed instances
|
2022-01-22 02:13:08 +09:00 |
|
Dean Herbert
|
ad3a01dc06
|
Use a more reliable method of reviving the update thread realm after blocking
|
2022-01-21 22:44:56 +09:00 |
|
Dean Herbert
|
3b11235d3c
|
Fix potentially cyclic subscription registration if a subscription's delegate accesses Context
|
2022-01-21 20:45:10 +09:00 |
|
Dean Herbert
|
1f157d729d
|
Update existing subscriptions to new style
Fix missing detach calls in `MusicController`
|
2022-01-21 20:05:03 +09:00 |
|
Dean Herbert
|
45aea9add5
|
Implement full subscription flow
|
2022-01-21 19:06:23 +09:00 |
|
Dean Herbert
|
18bf690a30
|
Add Register method for subscription purposes and update safeties
|
2022-01-21 19:06:18 +09:00 |
|
Dean Herbert
|
8f1dfa33a2
|
Merge branch 'master' into realm-context-use-update-when-feasible
|
2022-01-21 18:03:09 +09:00 |
|
Dean Herbert
|
81b5717ae7
|
Fix RealmLive failing to retrieve due to lack of refresh
|
2022-01-21 17:33:03 +09:00 |
|
Dean Herbert
|
d2655c0825
|
Fix RealmLive not necessarily being in refreshed state due to potentially using update context
|
2022-01-21 17:27:30 +09:00 |
|
Dean Herbert
|
114c9e8c1f
|
Update all usages of CreateContext to use either Run or Write
|
2022-01-21 17:27:08 +09:00 |
|
Dean Herbert
|
da0a803e6c
|
Add RealmContextFactory.Write helper method
|
2022-01-21 17:08:05 +09:00 |
|
Dean Herbert
|
a59105635e
|
Make CreateContext private
|
2022-01-21 16:40:20 +09:00 |
|
Dean Herbert
|
dde10d1ba2
|
Remove unused IRealmFactory interface
|
2022-01-21 16:38:07 +09:00 |
|
Dean Herbert
|
5622d2ba4f
|
Show realm migration progress at Loader
|
2022-01-21 14:56:49 +09:00 |
|
Dean Herbert
|
0c9eb3ad61
|
Add realm factory helper methods to run work on the correct context
Avoids constructing a new `Realm` instance when called from the update
thread without worrying about disposal.
|
2022-01-21 01:33:47 +09:00 |
|
Dean Herbert
|
7aad2780b1
|
Add retry logic for realm backup creation
|
2022-01-21 00:46:53 +09:00 |
|
Dean Herbert
|
079b2dfc42
|
Create backup of databases before opening contexts
Attempt to avoid file IO issues.
Closes #16531.
|
2022-01-21 00:46:53 +09:00 |
|
Dean Herbert
|
5df46d0a54
|
Remove all calls to Realm.Refresh to fix blocking overhead from subscriptions
Turns out this is not required if realm is aware of a
`SynchronizationContext`. See
https://github.com/realm/realm-dotnet/discussions/2775#discussioncomment-2005412
for further reading.
|
2022-01-20 20:23:18 +09:00 |
|
Dean Herbert
|
ccddf9b47d
|
Avoid constructor overhead for realm BeatmapSetInfo parameterless constructor
|
2022-01-20 17:03:44 +09:00 |
|