Skip to content

Commit 8d42381

Browse files
committed
Try to use GFM
1 parent 99c44df commit 8d42381

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/2014-11-15-hangfire-pro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ As I already said, Hangfire Pro will solve performance/usability/monitoring issu
5858

5959
Batch jobs will help to build more complex workflows with Hangfire. They will give you the power of **parallel processing** and **continuations**, you can look at this code snippet:
6060

61-
{% highlight csharp %}
61+
```csharp
6262
BatchJob
6363
.Create(x =>
6464
{
@@ -67,23 +67,23 @@ BatchJob
6767
x.Enqueue(() => Console.Write("With"));
6868
})
6969
.ContinueWith(() => Console.WriteLine("Predictable continuation"));
70-
{% endhighlight %}
70+
```
7171

7272
Three first tasks will be executed in parallel, end the continuation will be invoked only after successful run of the first tasks.
7373

7474
#### Async Methods Support
7575

7676
As with [async controllers](http://msdn.microsoft.com/en-us/library/ee728598(v=vs.100).aspx) in ASP.NET MVC, this feature enables you to improve overall throughput keeping the lowest number of workers in the pool. Instead of waiting for an outstanding I/O operation, they will be able to process other background jobs as well.
7777

78-
{% highlight csharp %}
78+
```csharp
7979
public static async Task HighlightAsync(int snippetId)
8080
{
8181
var snippet = await Context.Snippets.SingleOrDefaultAsync(snippetId);
8282
snippet.Code = await RemoteService.HighlightAsync(snippet.Code);
8383

8484
await Context.SaveChangesAsync();
8585
}
86-
{% endhighlight %}
86+
```
8787

8888
### What are you waiting for?
8989

0 commit comments

Comments
 (0)