public string Index(string name) { //var helloService = new HelloService(); //return helloService.Greeting(name); return(_helloService.Greeting(name)); }
public string Handle(SampleEventAndResponseFunctionInput input, ILambdaContext context) { // TODO ビジネスロジックを呼び出す場合は、コンストラクタインジェクションにより取得してください。 return($"{input?.Key1} And {_service.Greeting()}"); }
/// <summary> /// メイン処理 /// </summary> protected override void Main() { Console.WriteLine(_service.Greeting()); Console.WriteLine(_appSettings.SampleSettings.Key); // Sample Code }
public string Hello(string name) { return(_helloService.Greeting(name)); }
/// <summary> /// メイン処理 /// </summary> protected override void Main() { Logger.LogInformation(_service.Greeting()); Logger.LogInformation(_appSettings.SampleSettings.SampleKey); // Sample Code }