title: Django Channels 2.0: call Consumer's channel by its name
body: <p>I am trying to upgrade my code from django-channels 1.1.8 to 2.0.0</p>
  
  <p>So, I just want to perform a very simple async background task, and can not figure out how to call consumer by its name like in 1.1.8</p>
  
  <p>Following example does not work (prints nothing):</p>
  
  <p><strong>routing.py</strong></p>
  
  <pre><code>from channels.routing import ProtocolTypeRouter, ChannelNameRouter
  
  from tasks.consumers import LongTask
  
  application = ProtocolTypeRouter({
  
      'channel': ChannelNameRouter({
          'long-task': LongTask
      }),
  
  })
  </code></pre>
  
  <p><strong>consumers.py</strong></p>
  
  <pre><code>from channels.consumer import SyncConsumer
  
  class LongTask(SyncConsumer):
  
      def long_task(self, message):
          print(message)
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def perform_long_task(request):
  
      channel_layer.send('long-task', {
          'type': "long.task",
          'text': 'Hey!'
      })
  </code></pre>
  
  <hr>
  
  <p>I guess something wrong here <code>channel_layer.send('long-task', {...})</code></p>
  
  <p>Big thx</p>