Esempio n. 1
0
        public async override Task <HttpResponseMessage> ExecuteAsync(
            HttpControllerContext controllerContext,
            CancellationToken cancellationToken)
        {
            using (AsyncSession = DocStore.OpenAsyncSession())
            {
                var result = await base.ExecuteAsync(controllerContext, cancellationToken);

                await AsyncSession.SaveChangesAsync();

                return(result);
            }
        }
Esempio n. 2
0
 public Task Commit()
 {
     return(AsyncSession.SaveChangesAsync());
 }