public void Send(string message, string target) { var server = new NotificationServer(); server.Connect("test-server"); var token = server.Authenticate("appId", "key"); server.Send(token, new Message(message), target); }
public void Send(string message, string target) { var server = new NotificationServer(); var connect = server.Connect("ip"); var token = server.Authenticate("AppId", "Key"); server.Send(token, new Message(message), "target"); connect.DisConnect(); }
public void Send(string message, string target) { var notificationServer = new NotificationServer(); var connection = notificationServer.Connect("ip"); var authToken = notificationServer.Authenticate("appId", "appKey"); notificationServer.Send(authToken, new Message(message), target); connection.Disconnect(); }