Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                Console.Write("Username: "******"Password: "******"sb", endpointConfig.ServiceBusNamespace, "order"));

                endpoint.Behaviors.Add(new TransportClientEndpointBehavior
                {
                    TokenProvider = TokenProvider.CreateSharedSecretTokenProvider(
                        endpointConfig.Issuer,
                        endpointConfig.SecretKey)
                });
                sh.Open();

                Console.WriteLine("Press ENTER to close");
                Console.ReadLine();

                sh.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Exemplo n.º 2
0
 public ServiceBusManager()
 {
     cfgMgr = new ConfigurationManager();
 }