Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ public LongScheduledWorkItem(TState state, Action<TState, ICancelable> action)
_action = action;

_cal.StartThread(
@thisObject =>
thisObject =>
{
var @this = (LongScheduledWorkItem<TState>)@thisObject;
var @this = (LongScheduledWorkItem<TState>)thisObject;

//
// Notice we don't check d.IsDisposed. The contract for ISchedulerLongRunning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public IDisposable Run(IScheduler self, TState s, Func<IScheduler, TState, Cance
return Disposable.Empty;

action(new CancelableScheduler(self, _cts.Token), s, _cts.Token).ContinueWith(
(t, @thisObject) =>
(t, thisObject) =>
{
if (!t.IsCanceled)
{
var @this = (AsyncInvocation<TState>)@thisObject;
var @this = (AsyncInvocation<TState>)thisObject;

t.Exception?.Handle(e => e is OperationCanceledException);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public ScheduledWorkItem(TaskPoolScheduler scheduler, TState state, Func<ISchedu
Disposable.SetSingle(ref _cancel, cancelable);

scheduler._taskFactory.StartNew(
@thisObject =>
thisObject =>
{
var @this = (ScheduledWorkItem<TState>)@thisObject;
var @this = (ScheduledWorkItem<TState>)thisObject;
//
// BREAKING CHANGE v2.0 > v1.x - No longer escalating exceptions using a throwing
// helper thread.
Expand Down Expand Up @@ -90,7 +90,7 @@ public SlowlyScheduledWorkItem(TaskPoolScheduler scheduler, TState state, TimeSp
Disposable.SetSingle(ref _cancel, ct);

TaskHelpers.Delay(dueTime, ct.Token).ContinueWith(
(_, @thisObject) =>
(_, thisObject) =>
{
var @this = (SlowlyScheduledWorkItem<TState>)thisObject;

Expand Down Expand Up @@ -124,7 +124,7 @@ public LongScheduledWorkItem(TaskPoolScheduler scheduler, TState state, Action<T
_action = action;

scheduler._taskFactory.StartNew(
@thisObject =>
thisObject =>
{
var @this = (LongScheduledWorkItem<TState>)thisObject;

Expand Down
2 changes: 1 addition & 1 deletion Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public override void OnNext(Task<TSource> value)
}
else
{
value.ContinueWith((t, @thisObject) => ((_)@thisObject).OnCompletedTask(t), this);
value.ContinueWith((t, thisObject) => ((_)thisObject).OnCompletedTask(t), this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ public override void OnNext(TSource value)
}
else
{
task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
}
}

Expand Down Expand Up @@ -1698,7 +1698,7 @@ public override void OnNext(TSource value)
}
else
{
task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
}
}

Expand Down