Exemplo n.º 1
0
 internal void PurgeSingleBookmark(Bookmark bookmark)
 {
     Fx.Assert(_bookmarks.ContainsKey(bookmark) && object.ReferenceEquals(bookmark, _bookmarks[bookmark].Bookmark), "Something went wrong with our housekeeping - it must exist and must be our intenral reference");
     UpdateExclusiveHandleList(bookmark);
     _bookmarks.Remove(bookmark);
 }
Exemplo n.º 2
0
 public void CheckForCancelation()
 {
     Fx.Assert(_callbackWrapper != null, "We must have a callback wrapper if we are calling this.");
     _callbackWrapper.CheckForCancelation();
 }
Exemplo n.º 3
0
        public override bool Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
        {
            Fx.Assert("Empty work items should never been executed.");

            return(true);
        }
Exemplo n.º 4
0
 public FatalException(string message, Exception innerException) : base(message, innerException)
 {
     // This can't throw something like ArgumentException because that would be worse than
     // throwing the fatal exception that was requested.
     Fx.Assert(innerException == null || !Fx.IsFatal(innerException), "FatalException can't be used to wrap fatal exceptions.");
 }