示例#1
0
 public static BuildLocator WithDimensions(BuildTypeLocator buildType = null,
                                           UserLocator user = null,
                                           string agentName = null,
                                           BuildStatus? status = null,
                                           bool? personal = null,
                                           bool? canceled = null,
                                           bool? running = null,
                                           bool? pinned = null,
                                           int? maxResults = null,
                                           int? startIndex = null,
                                           BuildLocator sinceBuild = null,
                                           DateTime? sinceDate = null,
                                           string[] tags = null,
                                           string branch = null
     )
 {
     return new BuildLocator
                {
                    BuildType = buildType,
                    User = user,
                    AgentName = agentName,
                    Status = status,
                    Personal = personal,
                    Canceled = canceled,
                    Running = running,
                    Pinned = pinned,
                    MaxResults = maxResults,
                    StartIndex = startIndex,
                    SinceBuild = sinceBuild,
                    SinceDate = sinceDate,
                    Tags = tags,
                    Branch = branch
                };
 }
 public static BuildLocator WithDimensions(BuildTypeLocator buildType = null,
                                           UserLocator user           = null,
                                           string agentName           = null,
                                           BuildStatus?status         = null,
                                           bool?personal           = null,
                                           bool?canceled           = null,
                                           bool?running            = null,
                                           bool?pinned             = null,
                                           int?maxResults          = null,
                                           int?startIndex          = null,
                                           BuildLocator sinceBuild = null,
                                           DateTime?sinceDate      = null,
                                           string[] tags           = null,
                                           string branch           = null
                                           )
 {
     return(new BuildLocator
     {
         BuildType = buildType,
         User = user,
         AgentName = agentName,
         Status = status,
         Personal = personal,
         Canceled = canceled,
         Running = running,
         Pinned = pinned,
         MaxResults = maxResults,
         StartIndex = startIndex,
         SinceBuild = sinceBuild,
         SinceDate = sinceDate,
         Tags = tags,
         Branch = branch
     });
 }