Example #1
0
 private void InitConnection(RelayConfig relayConfig)
 {
     Client = new HybridConnectionClient(new Uri(String.Format("sb://{0}/{1}",
                                                               relayConfig.RelayNamespace,
                                                               relayConfig.ConnectionName)),
                                         TokenProvider);
 }
Example #2
0
 private void InitTokenProvider(RelayConfig relayConfig)
 {
     TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(
         relayConfig.KeyName,
         relayConfig.Key);
 }