Skip to content

Commit 6e604b6

Browse files
authored
Merge pull request #22 from microsoftgraph/feature/public-version
- Made the client options public so they can be used by consumers when customizing middleware
2 parents 5127bd4 + 2191ba4 commit 6e604b6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.2.1] - 2021-11-19
15+
16+
### Changed
17+
18+
- Made the client options public so they can be used by consumers when customizing middleware
19+
1420
## [0.2.0] - 2021-11-17
1521

1622
### Changed

graph_request_adapter.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ var clientOptions = core.GraphClientOptions{
1313
GraphServiceLibraryVersion: "0.2.0",
1414
}
1515

16+
// GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware.
17+
func GetDefaultClientOptions() core.GraphClientOptions {
18+
return clientOptions
19+
}
20+
1621
// GraphRequestAdapter is the core service used by GraphServiceClient to make requests to Microsoft Graph.
1722
type GraphRequestAdapter struct {
1823
core.GraphRequestAdapterBase
@@ -67,5 +72,3 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH
6772

6873
return result, nil
6974
}
70-
71-

0 commit comments

Comments
 (0)