internal void SetOwner(SingleThreadedSynchronizationContext context) { if (context != this.owner) { Verify.Operation(this.owner == null, Strings.SyncContextFrameMismatchedAffinity); this.owner = context; } }