var info = await DocumentSession.Query<Member_Info_Index.UserInfoResult, Member_Info_Index>()
.SingleAsync(x => x.UserId == ctx.CurrentUser.UserName, token)
.ConfigureAwait(false);Nancy.RequestExecutionException: Oh noes! ---> System.ObjectDisposedException: The CancellationTokenSource associated with this CancellationToken has been disposed.
at System.Threading.CancellationToken.ThrowObjectDisposedException()
at System.Threading.Tasks.Task.AssignCancellationToken(CancellationToken cancellationToken, Task antecedent, TaskContinuation continuation)
at System.Threading.Tasks.Task.ContinueWithCore(Task continuationTask, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions options)
at System.Threading.Tasks.Task`1.ContinueWith[TNewResult](Func`2 continuationFunction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, StackCrawlMark& stackMark)
at System.Threading.Tasks.Task`1.ContinueWith[TNewResult](Func`2 continuationFunction, CancellationToken cancellationToken)
at Raven.Abstractions.Extensions.TaskExtensions.WithCancellation[T](Task`1 task, CancellationToken token) in c:\Builds\RavenDB-Stable-3.0\Raven.Abstractions\Extensions\TaskExtensions.cs:line 65
at Raven.Client.Document.AbstractDocumentQuery`2.d__48.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:line 2297 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.LinqExtensions.d__43`1.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\PublicExtensions\LinqExtensions.cs:line 0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at HyRes.Website.Modules.RavenDbModule.<b__41_0>d.MoveNext() in E:\github\HyRes\src\HyRes.Website\Modules\RavenDbModule.cs:line 202 --- End of inner exception stack trace --- at Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.LinqExtensions.d__43`1.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\PublicExtensions\LinqExtensions.cs:line 0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at HyRes.Website.Modules.RavenDbModule.<b__41_0>d.MoveNext() in E:\github\HyRes\src\HyRes.Website\Modules\RavenDbModule.cs:line 202 --- End of inner exception stack trace --- at Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at HyRes.Website.Modules.RavenDbModule.<b__41_0>d.MoveNext() in E:\github\HyRes\src\HyRes.Website\Modules\RavenDbModule.cs:line 202 --- End of inner exception stack trace --- at Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)
--- End of inner exception stack trace ---
at Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)
var info = await DocumentSession.Query<Member_Info_Index.UserInfoResult, Member_Info_Index>()
.SingleAsync(x => x.UserId == ctx.CurrentUser.UserName, CancellationToken.None)
.ConfigureAwait(false);Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var member = await DocumentSession.LoadAsync<Member>(ctx.CurrentUser.UserName, token)
.ConfigureAwait(false);
var info = await DocumentSession.Query<Member_Info_Index.UserInfoResult, Member_Info_Index>()
.SingleAsync(x => x.UserId == ctx.CurrentUser.UserName, CancellationToken.None)
.ConfigureAwait(false);