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
static void CreateABucket() | |
{ | |
try | |
{ | |
PutBucketRequest request = new PutBucketRequest(); | |
request.BucketName = bucketName; | |
client.PutBucket(request); | |
} | |
catch (AmazonS3Exception amazonS3Exception) | |
{ |
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
/****** Object: Table [dbo].[Customer] Script Date: 5/20/2018 10:26:06 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE TABLE [dbo].[Customer]( | |
[Id] [int] IDENTITY(1,1) NOT NULL, | |
[Name] [nvarchar](50) NULL, | |
[Email] [nvarchar](200) NULL, | |
[Phone] [nvarchar](200) NULL, |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="PrismApp.Views.MainPage" | |
Title="{Binding Title}"> | |
<StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"> | |
<Label Text="Welcome to Xamarin Forms and Prism!" /> | |
<Button Text="Go to Second Page" Command="{Binding NavigateToSecond}"></Button> | |
</StackLayout> |
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 void NavigateToSecondCall() | |
{ | |
_navigationService.NavigateAsync("SecondPage"); | |
} |
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 MainPageViewModel(INavigationService navigationService) | |
: base (navigationService) | |
{ | |
Title = "Main Page"; | |
_navigationService = navigationService; | |
NavigateToSecond = new DelegateCommand(NavigateToSecondCall); | |
} |
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 DelegateCommand NavigateToSecond { get; set; } //It will hold the nivgation | |
private INavigationService _navigationService; //To get the navigationservice |
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
{ | |
"Name":"Amr", | |
"Email":"test@tutorialsxl.com" | |
} |
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 FunctionTest | |
{ | |
[Fact] | |
public void TestToUpperFunction() | |
{ | |
// Invoke the lambda function and confirm the string was upper cased. | |
var function = new Function(); | |
var context = new TestLambdaContext(); | |
Student student = new Student |
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 string FunctionHandler(Student input, ILambdaContext context) | |
{ | |
return $"Name: {input.Name}, Email: {input.Email}"; | |
} |
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 LambdaService | |
{ | |
public class Student | |
{ | |
public string Name { get; set; } | |
public string Email { get; set; } | |
} | |
} |