Пример #1
0
 public ITentFeedRequest AddPostBoundary(ITentRequestPost boundaryPost, TentFeedRequestBoundaryType boundaryType)
 {
     Ensure.Argument.IsNotNull(boundaryPost, nameof(boundaryPost));
     (this.temporaryBoundaryPosts ?? (this.temporaryBoundaryPosts = new Dictionary<TentFeedRequestBoundaryType, ITentRequestPost>()))[boundaryType] = boundaryPost;
     return this;
 }
Пример #2
0
 public ITentFeedRequest AddBoundary(ITentRequestDate boundaryDate, TentFeedRequestBoundaryType boundaryType)
 {
     Ensure.Argument.IsNotNull(boundaryDate, nameof(boundaryDate));
     (this.boundaries ?? (this.boundaries = new Dictionary<TentFeedRequestBoundaryType, ITentRequestDate>()))[boundaryType] = boundaryDate;
     return this;
 }
Пример #3
0
 public ITentFeedRequest AddPostBoundary(TentPost boundaryPost, TentFeedRequestBoundaryType boundaryType)
 {
     Ensure.Argument.IsNotNull(boundaryPost, nameof(boundaryPost));
     var requestPost = this.requestPostFactory.FromPost(boundaryPost);
     return this.AddPostBoundary(requestPost, boundaryType);
 }