-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generated helix api client library #116
Merged
alexperovich
merged 6 commits into
dotnet:master
from
alexperovich:alperovi/addHelixApi
Apr 17, 2018
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f3bb600
Add generated helix api client library
alexperovich 4669810
Add package extras
alexperovich 80009c0
Add sign tool data
alexperovich 5b11210
CR Feedback
alexperovich e6aceaa
Remove other solution
alexperovich ec02bd5
More signtooldata
alexperovich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Add generated helix api client library
- Loading branch information
commit f3bb60089f84c5533523be04131a278c1da938c9
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
|
||
[*.{cs}] | ||
indent_size = 4 | ||
tab_width = 4 | ||
|
||
[*.{*proj,xml,props,targets,tasks}] | ||
indent_size = 2 | ||
tab_width = 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.Rest; | ||
using System; | ||
using System.Net.Http; | ||
|
||
namespace Microsoft.DotNet.Helix.Client | ||
{ | ||
public static class ApiFactory | ||
{ | ||
public static IHelixApi GetAuthenticated(string accessToken) | ||
{ | ||
return new HelixApi(new TokenCredentials(accessToken, "token")); | ||
} | ||
|
||
public static IHelixApi GetAnonymous() | ||
{ | ||
return new NoCredentialsHelixApi(); | ||
} | ||
|
||
public static IHelixApi GetAuthenticated(string baseUri, string accessToken) | ||
{ | ||
return new HelixApi(new Uri(baseUri), new TokenCredentials(accessToken, "token")); | ||
} | ||
|
||
public static IHelixApi GetAnonymous(string baseUri) | ||
{ | ||
return new NoCredentialsHelixApi(new Uri(baseUri)); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.