Skip to content

Commit 1b4eb82

Browse files
authored
Merge pull request #4 from acn-sbuad/patch-1
Added alternative constructor for GatewayClient
2 parents c8a8d7f + f40d74d commit 1b4eb82

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

PSWin.Client/GatewayClient.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using LinkMobility.PSWin.Client.Interfaces;
22
using LinkMobility.PSWin.Client.Model;
33
using LinkMobility.PSWin.Client.Transports;
4+
using System;
45
using System.Collections.Generic;
56
using System.Linq;
67
using System.Threading.Tasks;
@@ -23,6 +24,16 @@ public GatewayClient(string username, string password) : this(new XmlTransport(u
2324
{
2425
}
2526

27+
/// <summary>
28+
/// Initializes a client that sends messages using the default transport.
29+
/// </summary>
30+
/// <param name="username">The username assigned to you by Link Mobility.</param>
31+
/// <param name="password">The password assigned to you by Link Mobility.</param>
32+
/// <param name="endpoint">The alternate XML endpoint to use.</param>
33+
public GatewayClient(string username, string password, Uri endpoint) : this(new XmlTransport(username, password, endpoint))
34+
{
35+
}
36+
2637
/// <summary>
2738
/// Initialize a client using the given transport.
2839
/// </summary>

0 commit comments

Comments
 (0)