Skip to content

Commit e833e4a

Browse files
committed
Merge branch 'develop/1.0' of https://github.com/sramekpete/polyline-algorithm-csharp into develop/1.0
2 parents 1b49059 + 81edbc9 commit e833e4a

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

api-reference/1.0/PolylineAlgorithm.PolylineEncodingOptions.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ body:
5454
url: https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerfactory
5555
- h4: Remarks
5656
- markdown: The default logger factory is <xref href="Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory" data-throw-if-not-resolved="false"></xref>, which does not log any messages.
57-
- api3: MaxPolylineLength
58-
id: PolylineAlgorithm_PolylineEncodingOptions_MaxPolylineLength
57+
- api3: MaxBufferSize
58+
id: PolylineAlgorithm_PolylineEncodingOptions_MaxBufferSize
5959
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/develop/1.0/src/PolylineAlgorithm/PolylineEncodingOptions.cs#L26
6060
metadata:
61-
uid: PolylineAlgorithm.PolylineEncodingOptions.MaxPolylineLength
62-
commentId: P:PolylineAlgorithm.PolylineEncodingOptions.MaxPolylineLength
63-
- markdown: Gets or sets the maximum size of the buffer used for encoding.
64-
- code: public int MaxPolylineLength { get; }
61+
uid: PolylineAlgorithm.PolylineEncodingOptions.MaxBufferSize
62+
commentId: P:PolylineAlgorithm.PolylineEncodingOptions.MaxBufferSize
63+
- markdown: Gets the maximum buffer size for encoding operations.
64+
- code: public int MaxBufferSize { get; }
6565
- h4: Property Value
6666
- parameters:
6767
- type:
6868
- text: int
6969
url: https://learn.microsoft.com/dotnet/api/system.int32
7070
- h4: Remarks
71-
- markdown: The default value is 1,024 characters.
71+
- markdown: The default maximum buffer size is 64,000 bytes (64 KB). This can be adjusted based on the expected size of the polyline data, but should be enough for common cases.
7272
languageId: csharp
7373
metadata:
7474
description: Options for configuring polyline encoding.

api-reference/1.0/PolylineAlgorithm.PolylineEncodingOptionsBuilder.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ body:
6767
- text: PolylineEncodingOptionsBuilder
6868
url: PolylineAlgorithm.PolylineEncodingOptionsBuilder.html
6969
description: An <xref href="PolylineAlgorithm.PolylineEncodingOptionsBuilder" data-throw-if-not-resolved="false"></xref> instance for configuring polyline encoding options.
70-
- api3: UseLoggerFactory(ILoggerFactory)
71-
id: PolylineAlgorithm_PolylineEncodingOptionsBuilder_UseLoggerFactory_Microsoft_Extensions_Logging_ILoggerFactory_
72-
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/develop/1.0/src/PolylineAlgorithm/PolylineEncodingOptionsBuilder.cs#L74
70+
- api3: WithLoggerFactory(ILoggerFactory)
71+
id: PolylineAlgorithm_PolylineEncodingOptionsBuilder_WithLoggerFactory_Microsoft_Extensions_Logging_ILoggerFactory_
72+
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/develop/1.0/src/PolylineAlgorithm/PolylineEncodingOptionsBuilder.cs#L72
7373
metadata:
74-
uid: PolylineAlgorithm.PolylineEncodingOptionsBuilder.UseLoggerFactory(Microsoft.Extensions.Logging.ILoggerFactory)
75-
commentId: M:PolylineAlgorithm.PolylineEncodingOptionsBuilder.UseLoggerFactory(Microsoft.Extensions.Logging.ILoggerFactory)
74+
uid: PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithLoggerFactory(Microsoft.Extensions.Logging.ILoggerFactory)
75+
commentId: M:PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithLoggerFactory(Microsoft.Extensions.Logging.ILoggerFactory)
7676
- markdown: Sets the logger factory for logging during encoding operations.
77-
- code: public PolylineEncodingOptionsBuilder UseLoggerFactory(ILoggerFactory loggerFactory)
77+
- code: public PolylineEncodingOptionsBuilder WithLoggerFactory(ILoggerFactory loggerFactory)
7878
- h4: Parameters
7979
- parameters:
8080
- name: loggerFactory
@@ -87,40 +87,40 @@ body:
8787
- type:
8888
- text: PolylineEncodingOptionsBuilder
8989
url: PolylineAlgorithm.PolylineEncodingOptionsBuilder.html
90-
description: The current builder instance, allowing for method chaining.
90+
description: The current builder instance.
9191
- h4: Exceptions
9292
- parameters:
9393
- type:
9494
- text: ArgumentNullException
9595
url: https://learn.microsoft.com/dotnet/api/system.argumentnullexception
9696
description: Thrown when <code class="paramref">loggerFactory</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.
97-
- api3: WithMaxPolylineLength(int)
98-
id: PolylineAlgorithm_PolylineEncodingOptionsBuilder_WithMaxPolylineLength_System_Int32_
99-
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/develop/1.0/src/PolylineAlgorithm/PolylineEncodingOptionsBuilder.cs#L56
97+
- api3: WithMaxBufferSize(int)
98+
id: PolylineAlgorithm_PolylineEncodingOptionsBuilder_WithMaxBufferSize_System_Int32_
99+
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/develop/1.0/src/PolylineAlgorithm/PolylineEncodingOptionsBuilder.cs#L54
100100
metadata:
101-
uid: PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithMaxPolylineLength(System.Int32)
102-
commentId: M:PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithMaxPolylineLength(System.Int32)
103-
- markdown: Sets the maximum length of the polyline string that can be encoded.
104-
- code: public PolylineEncodingOptionsBuilder WithMaxPolylineLength(int maxLength)
101+
uid: PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithMaxBufferSize(System.Int32)
102+
commentId: M:PolylineAlgorithm.PolylineEncodingOptionsBuilder.WithMaxBufferSize(System.Int32)
103+
- markdown: Sets the buffer size for encoding operations.
104+
- code: public PolylineEncodingOptionsBuilder WithMaxBufferSize(int bufferSize)
105105
- h4: Parameters
106106
- parameters:
107-
- name: maxLength
107+
- name: bufferSize
108108
type:
109109
- text: int
110110
url: https://learn.microsoft.com/dotnet/api/system.int32
111-
description: The maximum length of the polyline string in characters.
111+
description: The maximum buffer size. Must be greater than 11.
112112
- h4: Returns
113113
- parameters:
114114
- type:
115115
- text: PolylineEncodingOptionsBuilder
116116
url: PolylineAlgorithm.PolylineEncodingOptionsBuilder.html
117-
description: The current builder instance, allowing for method chaining.
117+
description: The current builder instance.
118118
- h4: Exceptions
119119
- parameters:
120120
- type:
121121
- text: ArgumentOutOfRangeException
122122
url: https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception
123-
description: Thrown when <code class="paramref">maxLength</code> is less than 1024 characters.
123+
description: Thrown when <code class="paramref">bufferSize</code> is less than or equal to 11.
124124
languageId: csharp
125125
metadata:
126126
description: Provides a builder for configuring options for polyline encoding operations.

0 commit comments

Comments
 (0)