-
Notifications
You must be signed in to change notification settings - Fork 111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます。
ライセンス通知、完全に見落としていました。
.editorconfigでライセンス通知を付けられるならそうしたいですね。
@@ -161,6 +161,7 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry) | |||
private static void RegisterCommonTypes(IContainer container) | |||
{ | |||
// Services | |||
container.Register<IDateTimeUtility, DateTimeUtility>(Reuse.Singleton); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
役割と利用頻度から言うと一番下のISecureStorageService
の下に置いた方がいいかなと思いましたが、好みの問題かも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISecureStorageService
の下に移動し「Utilities」というコメントを付けておきました。
using System; | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あれ? ライセンス表記ありませんね。
ありがとうございます:+1:
やっぱり自動でライセンスを付けたりチェックしたりする仕組みが欲しいですね……
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ブランチ tools/header
にて自動的にライセンス通知を追加してくれるツールを作りました。(#80)
|
||
public string CurrentStatusMessage { get; set; } = "初期状態"; | ||
public Status ExposureNotificationStatus { get; set; } | ||
|
||
public ExposureNotificationService(ILoggerService loggerService, IHttpClientService httpClientService, ISecureStorageService secureStorageService, IPreferencesService preferencesService, IApplicationPropertyService applicationPropertyService) | ||
public ExposureNotificationService(ILoggerService loggerService, IHttpClientService httpClientService, ISecureStorageService secureStorageService, IPreferencesService preferencesService, IApplicationPropertyService applicationPropertyService, IDateTimeUtility dateTimeUtility) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これくらいコンストラクタの引数が長くなると、改行して縦に伸ばした方がいいかもしれません。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応しました。
@Takym |
どういたしまして。 |
Issue 番号 / Issue ID
DateTimeUtility
のインスタンスを外部から簡単に書き変える事がでてしまう #223目的 / Purpose
IDateTimeUtility
をサービス化し、外部からインスタンスの書き換えを行えなくしました。破壊的変更をもたらしますか / Does this introduce a breaking change?
Pull Request の種類 / Pull Request type
検証方法 / How to test
コードの入手 / Get the code
コードの検証 / Test the code
確認事項 / What to check
その他 / Other information
IDateTimeUtility
とIHttpClientService
は持っている機能が少なく似ているので統合しても良いかもしれませんね。Internal IDs: