Ejemplo n.º 1
0
        public static Task <bool> Stop(NEEOConf conf, string adapterName)
        {
            var urlPrefix = UrlBuilder.BuildBrainUrl(conf.Brain);

            _notification        = null;
            _notificationMapping = null;
            return(Register.UnregisterAdapterOnTheBrain(urlPrefix, adapterName));
        }
Ejemplo n.º 2
0
        public static Task <bool> Start(NEEOConf conf, string adapterName)
        {
            var urlPrefix = UrlBuilder.BuildBrainUrl(conf.Brain, null, conf.BrainPort);

            _notification        = new Notification(_restClient, urlPrefix, _logger);
            _notificationMapping = new NotificationMapping(_restClient, urlPrefix, adapterName, _logger);
            return(Register.RegisterAdapterOnTheBrain(urlPrefix, conf.BaseUrl, adapterName));
        }