예제 #1
0
        public MessagingService(IMessagingQueries messagingQueries, IMessagingRepository messagingRepository)
        {
            string serviceAccountKeyPath = GlobalConfiguration.GetByKey(AppConfigs.ServiceAccountKeyPathConfigKey);
            var    settings = FileBasedFcmClientSettings.CreateFromFile(serviceAccountKeyPath);

            _fcmClient           = new FcmClient(settings);
            _messagingQueries    = messagingQueries;
            _messagingRepository = messagingRepository;
        }