PostmarkDotNet.PostmarkAdminClient.GetServersAsync C# (CSharp) Method

GetServersAsync() public method

List all servers that are currently configured for this account.
public GetServersAsync ( int offset, int count = 100, string name = null ) : Task
offset int
count int
name string
return Task
        public async Task<PostmarkServerList> GetServersAsync(int offset = 0, int count = 100, string name = null)
        {
            var parameters = new Dictionary<string, object>();
            parameters["offset"] = offset;
            parameters["count"] = count;
            parameters["name"] = name;

            return await this.ProcessNoBodyRequestAsync<PostmarkServerList>("/servers", parameters);
        }
    }