title: Send custom messages to Azure Service Bus from MS CRM Plugins (Sandbox)
body: <p>I know I can register a new "Service Endpoint" in MS CRM and use that to send messages to Azure Service Bus, but this... isn't really what I'm looking for. The above method ends up sending a serialized <code>RemoteExecutionContext</code>.</p>
  
  <p>In my case, I want to have full control over what the Service Bus messages will contain. This means serializing my own classes.</p>
  
  <p>I've tried using the <code>WindowsAzure.ServiceBus</code> nugget (and ILmerging the new DLL) but this only works in a non-sandboxed setting (on-premise CRM), but I'd also like for my solution to work in CRM Online. When attempting to use the same code in CRM Online then attempting to create a <code>TopicClient</code> throws an error:</p>
  
  <blockquote>
    <p>System.Security.SecurityException: That assembly does not allow partially trusted callers</p>
  </blockquote>
  
  <p>Is there any way around the above problem?</p>