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
siteConfig: { | |
appSettings: [ | |
{ | |
name: 'FUNCTIONS_EXTENSION_VERSION' | |
value: '~4' | |
} | |
{ | |
name: 'FUNCTIONS_WORKER_RUNTIME' | |
value: 'dotnet' | |
} |
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
var azureServiceBusDataOwnerRoleId = '090c5cfd-751d-490a-894a-3ce6f1109419' | |
resource subscriptionRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = { | |
name: guid('${servicebus.name}${servicebusSubscription.name}', userIdentity.name, azureServiceBusDataOwnerRoleId) | |
scope: servicebusSubscription | |
properties: { | |
principalId: userIdentity.properties.principalId | |
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', azureServiceBusDataOwnerRoleId) | |
principalType: 'ServicePrincipal' | |
} |
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
var storageBlobDataOwnerRoleId = 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b' | |
resource storageRoleAssignments 'Microsoft.Authorization/roleAssignments@2022-04-01' = { | |
name: guid(storageAccount.name, functionApp.name, storageBlobDataOwnerRoleId) | |
scope: storageAccount | |
properties: { | |
principalId: functionApp.identity.principalId | |
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', storageBlobDataOwnerRoleId) | |
principalType: 'ServicePrincipal' | |
} |
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
resource functionApp 'Microsoft.Web/sites@2021-03-01' = { | |
name: '${resourcePrefix}func' | |
location: location | |
kind: 'functionapp' | |
identity: { | |
type: 'SystemAssigned, UserAssigned' | |
userAssignedIdentities: { | |
'${userIdentity.id}': {} | |
} | |
} |
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
resource userIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = { | |
name: '${resourcePrefix}id' | |
location: location | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace employee_ex | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
class someclass { | |
int quantity; | |
DateTime mydate; | |
someclass({this.quantity, this.mydate}); | |
int compareTo(someclass second) { | |
int res = mydate.compareTo(second.mydate); | |
if (res == 0) { | |
return quantity.compareTo(second.quantity); |
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
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Documents; | |
using Microsoft.Azure.NotificationHubs; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
namespace PromoNotificationFunc | |
{ | |
public static class NotifyOnPromo |
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
import 'package:flutter/material.dart'; | |
import 'package:azure_notificationhubs_flutter/azure_notificationhubs_flutter.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
name: DemoApp PlayStore Release | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
version: | |
name: Create version number | |
runs-on: ubuntu-latest |
NewerOlder