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
public class ExtendedApiContentResponseBuilder : ApiContentBuilderBase<IApiContentResponse>, IApiContentResponseBuilder | |
{ | |
private readonly IApiContentRouteBuilder _apiContentRouteBuilder; | |
private readonly IOutputExpansionStrategyAccessor _outputExpansionStrategyAccessor; | |
private readonly IApiPublishedContentCache _apiPublishedContentCache; | |
public ExtendedApiContentResponseBuilder( | |
IApiContentNameProvider apiContentNameProvider, | |
IApiContentRouteBuilder apiContentRouteBuilder, | |
IOutputExpansionStrategyAccessor outputExpansionStrategyAccessor, |
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
public class Startup | |
{ | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
... | |
// Overwrite the default ApiPublishedContentCache to support wildcard item resolving | |
services.AddSingleton<ApiPublishedContentCache>(); | |
services.AddSingleton<IApiPublishedContentCache, WildcardApiPublishedContentCache>(); | |
} | |
} |
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
public class WildcardApiPublishedContentCache : IApiPublishedContentCache | |
{ | |
private const char SplitChar = '/'; | |
private const string WildcardName = "star"; | |
private readonly ApiPublishedContentCache _apiPublishedContentCache; | |
public WildcardApiPublishedContentCache(ApiPublishedContentCache apiPublishedContentCache) | |
{ | |
_apiPublishedContentCache = apiPublishedContentCache; |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<!-- 'Test' OR 'Prod', 'Test' by default --> | |
<Environment>Test</Environment> | |
<!-- Use distribution provision profile or development, false by default --> | |
<Distribute>false</Distribute> | |
<DefineConstants>ENV_$(Environment)</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFramework)'=='net6.0-ios'"> | |
<ProvisioningType>automatic</ProvisioningType> |
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
├─ 📂 src | |
│ └─ ♾️ MyApplication.Mobile.sln | |
├─ 🚀 azure-pipelines-build.yml | |
├─ 🚀 azure-pipelines-publish.yml | |
├─ 📄 MyApplication.mobileprovision | |
└─ 📄 MyApplicationDistribution.mobileprovision |
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
trigger: none | |
variables: | |
DotNetVersion: 6.0.x | |
stages: | |
# PROD iOS build and upload | |
- stage: BuildiOS | |
dependsOn: '' | |
displayName: PROD - Build iOS and upload for review |
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
trigger: | |
- main | |
variables: | |
DotNetVersion: 6.0.x | |
stages: | |
# iOS | |
- stage: BuildiOS | |
dependsOn: '' |
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
namespace Feature.EventHandlers | |
{ | |
public class ClearAccessResultCache | |
{ | |
private static readonly Dictionary<ID, ID> TemplatesToCheck = new Dictionary<ID, ID>() | |
{ | |
{ Constants.Template1.TemplateId, Constants.Template1.Fields.Role }, | |
{ Constants.Template2.TemplateId, Constants.Template2.Fields.Role } | |
}; |