Example #1
0
        public RedmineServiceContext(Uri serviceUri, string apiKey)
        {
            _serviceUri		= serviceUri;
            _apiKey			= apiKey;

            _news			= new NewsCollection(this);
            _projects		= new ProjectsCollection(this);
            _issues			= new IssuesCollection(this);
            _users			= new UsersCollection(this);
            _userRoles		= new UserRolesCollection(this);
            _relations		= new IssueRelationsCollection(this);
            _trackers		= new IssueTrackersCollection(this);
            _statuses		= new IssueStatusesCollection(this);
            _priorities		= new IssuePrioritiesCollection(this);
            _categories		= new IssueCategoriesCollection(this);
            _versions		= new ProjectVersionsCollection(this);
            _attachments	= new AttachmentsCollection(this);
            _customFields	= new CustomFieldsCollection(this);
            _queries		= new QueriesCollection(this);

            _syncRoot		= new object();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationTypeDefinition"/> class.
        /// </summary>
        /// <param name="fields">
        /// The fields.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// The custom fields collection
        /// </exception>
        internal LocationTypeDefinition(CustomFieldsCollection fields)
        {
            if (fields == null) throw new ArgumentNullException("fields");

            Fields = fields;
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Location"/> class.
        /// </summary>
        /// <param name="customFields">
        /// The custom fields.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Throws an exception if customFields is null
        /// </exception>
        internal Location(CustomFieldsCollection customFields)
        {
            if (customFields == null) throw new ArgumentNullException("customFields");

            Fields = customFields;
        }