public FcmServiceConnection(FcmConfiguration configuration) { Configuration = configuration; http = new HttpClient(); http.DefaultRequestHeaders.UserAgent.Clear(); http.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("PushSharp", "3.0")); http.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", "key=" + Configuration.SenderAuthToken); http.DefaultRequestHeaders.TryAddWithoutValidation("Sender", "id=" + Configuration.SenderID); }
public FcmServiceBroker(FcmConfiguration configuration) : base(new FcmServiceConnectionFactory(configuration)) { }
public FcmServiceConnectionFactory(FcmConfiguration configuration) { Configuration = configuration; }