This file contains hidden or 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
| Option Explicit | |
| Sub ListAllFormulas() | |
| Dim sht As Worksheet | |
| Dim shtName | |
| Dim myRng As Range | |
| Dim newRng As Range | |
| Dim c As Range | |
This file contains hidden or 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
| static async Task<string> GetTokenForMsProjectOnline() | |
| { | |
| var aadApp = PublicClientApplicationBuilder | |
| .Create(AadAppClientId) | |
| .WithTenantId(TenantId) | |
| .WithRedirectUri("http://localhost") | |
| .Build(); | |
| // It is essential to provide a token cache for this scenario, | |
| // otherwise .AcquireTokenSilent() will never succeed, and the code will keep asking users to re-authenticate. |
This file contains hidden or 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
| public async Task<ICollection<PublishedProject>> GetApplicableProjectsAsync() | |
| { | |
| var projectContext = GetProjectContext(); | |
| const int PROJECT_BLOCK_SIZE = 20; | |
| projectContext.Load(projectContext.Projects, ps => ps.Include(p => p.Id)); | |
| await projectContext.ExecuteQueryAsync(); | |
| var allIds = projectContext.Projects.Select(p => p.Id).ToArray(); |
NewerOlder