Пример #1
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="EnvironmentApi"/> class
        ///   configured the same way as <see cref="api"/>.
        /// </summary>
        /// <param name="api">The API wrapper.</param>
        /// <param name="environmentId">The identifier of an environment to point to.</param>
        internal EnvironmentApi(ApiBase api, Guid environmentId)
            : base(api)
        {
            _environmentId  = environmentId;
            _environmentUri = new Uri(Uri, String.Format("environments/{0}/", EnvironmentId));

            Events     = new EventsApi(this);
            Links      = new LinksApi(this);
            Nodes      = new NodesApi(this);
            StatPoints = new StatPointsApi(this);
            Systems    = new SystemsApi(this);
        }
Пример #2
0
 public void Init()
 {
     instance = new NodesApi();
 }