1717#region U S A G E S
1818
1919using AggregatedGenericResultMessage . Abstractions ;
20+ using DynamicExcelProvider . Models . Request . Configuration ;
2021using DynamicExcelProvider . Models . Request . Configuration . Property ;
2122using DynamicExcelProvider . Models . Request . Export ;
2223using DynamicExcelProvider . WorkXCore . Models ;
@@ -56,7 +57,7 @@ public interface IExcelWriteFactoryProvider
5657 /// </returns>
5758 /// =================================================================================================
5859 Task < IResult < byte [ ] > > GenerateCsvFromKnownAsync (
59- IReadOnlyCollection < PropModel > embeddedModelCollection , IReadOnlyCollection < PropTranslateModel > availablePropInOutput ,
60+ IReadOnlyCollection < PropModel > embeddedModelCollection , IReadOnlyCollection < PropTranslateModel > availablePropInOutput ,
6061 IEnumerable < IReadOnlyList < PropNameValue > > data , CancellationToken cancellationToken = default ) ;
6162
6263 /// -------------------------------------------------------------------------------------------------
@@ -207,7 +208,7 @@ Task<IResult> GenerateAsync<TDataModel>(Stream stream, IReadOnlyCollection<TData
207208 /// </summary>
208209 /// <typeparam name="T">Generic type parameter.</typeparam>
209210 /// <param name="lcid">The lcid.</param>
210- /// <param name="customOutFields">Custom user defined output/result fields.</param>
211+ /// <param name="customOutFields">(Optional) Custom user defined output/result fields.</param>
211212 /// <returns>
212213 /// The template.
213214 /// </returns>
@@ -221,12 +222,12 @@ Task<IResult> GenerateAsync<TDataModel>(Stream stream, IReadOnlyCollection<TData
221222 /// <typeparam name="T">Generic type parameter.</typeparam>
222223 /// <param name="stream">The stream.</param>
223224 /// <param name="lcid">The lcid.</param>
224- /// <param name="customOutFields">Custom user defined output/result fields.</param>
225+ /// <param name="customOutFields">(Optional) Custom user defined output/result fields.</param>
225226 /// <returns>
226227 /// The template.
227228 /// </returns>
228229 /// =================================================================================================
229- IResult GenerateTemplate < T > ( MemoryStream stream , int lcid ,
230+ IResult GenerateTemplate < T > ( MemoryStream stream , int lcid ,
230231 IReadOnlyCollection < string > customOutFields = null ) where T : class ;
231232
232233 /// -------------------------------------------------------------------------------------------------
@@ -235,15 +236,15 @@ IResult GenerateTemplate<T>(MemoryStream stream, int lcid,
235236 /// </summary>
236237 /// <typeparam name="T">Generic type parameter.</typeparam>
237238 /// <param name="lcid">The lcid.</param>
238- /// <param name="customOutFields">Custom user defined output/result fields.</param>
239+ /// <param name="customOutFields">(Optional) Custom user defined output/result fields.</param>
239240 /// <param name="cancellationToken">
240241 /// (Optional) A token that allows processing to be cancelled.
241242 /// </param>
242243 /// <returns>
243244 /// The template asynchronous.
244245 /// </returns>
245246 /// =================================================================================================
246- Task < IResult < byte [ ] > > GenerateTemplateAsync < T > ( int lcid ,
247+ Task < IResult < byte [ ] > > GenerateTemplateAsync < T > ( int lcid ,
247248 IReadOnlyCollection < string > customOutFields = null , CancellationToken cancellationToken = default ) where T : class ;
248249
249250 /// -------------------------------------------------------------------------------------------------
@@ -253,15 +254,39 @@ Task<IResult<byte[]>> GenerateTemplateAsync<T>(int lcid,
253254 /// <typeparam name="T">Generic type parameter.</typeparam>
254255 /// <param name="stream">The stream.</param>
255256 /// <param name="lcid">The lcid.</param>
256- /// <param name="customOutFields">Custom user defined output/result fields.</param>
257+ /// <param name="customOutFields">(Optional) Custom user defined output/result fields.</param>
257258 /// <param name="cancellationToken">
258259 /// (Optional) A token that allows processing to be cancelled.
259260 /// </param>
260261 /// <returns>
261262 /// The template asynchronous.
262263 /// </returns>
263264 /// =================================================================================================
264- Task < IResult > GenerateTemplateAsync < T > ( MemoryStream stream , int lcid ,
265+ Task < IResult > GenerateTemplateAsync < T > ( MemoryStream stream , int lcid ,
265266 IReadOnlyCollection < string > customOutFields = null , CancellationToken cancellationToken = default ) where T : class ;
267+
268+ /// -------------------------------------------------------------------------------------------------
269+ /// <summary>
270+ /// Generates a template.
271+ /// </summary>
272+ /// <param name="stream">The stream.</param>
273+ /// <param name="configuration">The configuration.</param>
274+ /// <returns>
275+ /// The template.
276+ /// </returns>
277+ /// =================================================================================================
278+ IResult GenerateTemplate ( Stream stream , ExcelTemplateWriteConfiguration configuration ) ;
279+
280+ /// -------------------------------------------------------------------------------------------------
281+ /// <summary>
282+ /// Generates a template asynchronous.
283+ /// </summary>
284+ /// <param name="stream">The stream.</param>
285+ /// <param name="configuration">The configuration.</param>
286+ /// <returns>
287+ /// The template asynchronous.
288+ /// </returns>
289+ /// =================================================================================================
290+ Task < IResult > GenerateTemplateAsync ( Stream stream , ExcelTemplateWriteConfiguration configuration ) ;
266291 }
267292}
0 commit comments