/// <summary> /// Creates new segment /// </summary> public static DiskQueueSegmentWrapper <T> CreateSegmentWrapped <T>(this DiskQueueSegmentFactory <T> factory, string path, long number) { Debug.Assert(factory != null); var segment = factory.CreateSegment(path, number); return(new DiskQueueSegmentWrapper <T>(segment)); }
/// <summary> /// Creates new segment /// </summary> public static DiskQueueSegmentWrapper <T> CreateSegmentWrapped <T>(this DiskQueueSegmentFactory <T> factory, string path, long number) { TurboContract.Requires(factory != null, conditionString: "factory != null"); var segment = factory.CreateSegment(path, number); return(new DiskQueueSegmentWrapper <T>(segment)); }