Exemplo n.º 1
0
 internal SendNotification(String conectionString)
 {
     NotificatioEventDb = new NoitificationEvent(conectionString);
     NotificationLogs   = new NotificationLogs(conectionString);
     Notify             = new ResolverNotify();
     NotificationQuerys = new NotificationQuerys(conectionString);
 }
Exemplo n.º 2
0
        private async Task <bool> SendNotification(string message)
        {
            NotificationLogs logs = new NotificationLogs();

            logs.ServiceName = "Provider Services";
            logs.Message     = message;


            Uri url           = new Uri($"rabbitmq://{_configuration["RabbitMQHostName"]}/NotificationQueue");
            var rabbitService = await _bus.GetSendEndpoint(url);

            await rabbitService.Send(logs);

            return(true);
        }
Exemplo n.º 3
0
 protected virtual void ClearNavigationProperties()
 {
     NotificationLogs.Clear();
     Portfolio = null;
 }