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
import java.util.*; | |
import java.util.concurrent.*; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
String[] clientIds = new String[] { | |
"abc-1", | |
"def-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
param ( | |
[Parameter(Mandatory = $true, HelpMessage = "List all named volumes you want to backup. <volume1,volume2,volume3>")] | |
[string[]] $Volumes, | |
[Parameter(Mandatory = $true, HelpMessage = "Backup path")] | |
[string] $Path | |
) | |
$ErrorActionPreference = "Stop" | |
"Checking volumes..." |
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
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Filters; | |
using System; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace Performa365.Web.Utils.Filters | |
{ | |
public class CheckPolicyFilter : IAsyncActionFilter |
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
{ | |
"message": "Hello World!" | |
} |
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
[Authorize] | |
[Route("api/[controller]")] | |
public abstract class ApiController<T> : Controller where T : class, IEntity | |
{ | |
private IApplicationRepository<T> _repository; | |
public ApiController(IApplicationRepository<T> repository) | |
{ | |
_repository = repository; | |
} |