public static void CreateBroker_2()
        {
            BrokerName2 = ConfigurationManager.AppSettings["BrokerName2"];

            if (!SpectraRioBrokerClient.DoesBrokerExist(BrokerName2))
            {
                var createBrokerRequest = new CreateBrokerRequest(BrokerName2, AgentName, new AgentConfig(DeviceName, BlackPearlUserName, BlackPearlBucket2, createBucket: true, dataPolicyUuid: "676f9ea1-e5b0-4d94-a2fa-62f2142cd1d3"));
                SpectraRioBrokerClient.CreateBroker(createBrokerRequest);
            }
        }
Exemple #2
0
        public static void CreateBroker_2()
        {
            BrokerName2 = ConfigurationManager.AppSettings["BrokerName2"];

            if (!SpectraRioBrokerClient.DoesBrokerExist(BrokerName2))
            {
                var createBrokerRequest = new CreateBrokerRequest(BrokerName2, AgentName, new AgentConfig(DeviceName, BlackPearlUserName, BlackPearlBucket2, createBucket: true, dataPolicyUuid: "873da35d-3646-4946-8a6f-69aaef0d6640"));
                SpectraRioBrokerClient.CreateBroker(createBrokerRequest);
            }
        }
        public static void CreateBroker_1()
        {
            BrokerName = ConfigurationManager.AppSettings["BrokerName"];

            if (!SpectraRioBrokerClient.DoesBrokerExist(BrokerName))
            {
                var agentConfig         = GetAgentConfig();
                var createBrokerRequest = new CreateBrokerRequest(BrokerName, AgentName, agentConfig);
                SpectraRioBrokerClient.CreateBroker(createBrokerRequest);
            }
        }