コード例 #1
0
        /// <summary>
        /// A method that can be called to manually initiate or cancel the Realm file deletion process. If the method
        /// isn't called at all, the Realm file will be deleted the next time your application is launched and the
        /// sync subsystem is initialized. Can only be called once.
        /// </summary>
        /// <returns><c>true</c> if actions were run successfully, <c>false</c> otherwise.</returns>
        public bool DeleteRealmUserInfo()
        {
            Argument.Ensure <NotSupportedException>(!_actionInvoked, $"{nameof(DeleteRealmUserInfo)} can only be called once.");
            _actionInvoked = true;

            return(SharedRealmHandleExtensions.ImmediatelyRunFileActions(_originalFilePath));
        }
コード例 #2
0
 /// <summary>
 /// Initiates the client reset process.
 /// </summary>
 /// <returns><c>true</c> if actions were run successfully, <c>false</c> otherwise.</returns>
 public bool InitiateClientReset()
 {
     return(SharedRealmHandleExtensions.ImmediatelyRunFileActions(_originalFilePath));
 }