PostmarkDotNet.PostmarkAdminClient.GetServerAsync C# (CSharp) Method

GetServerAsync() public method

Get a server with the associated serverId.
public GetServerAsync ( int serverId ) : Task
serverId int
return Task
        public async Task<PostmarkServer> GetServerAsync(int serverId)
        {
            var retval = await this.ProcessNoBodyRequestAsync<PostmarkServer>("/servers/" + serverId);
            //the API doesn't return the server ID here, which would be helpful.
            retval.ID = serverId;
            return retval;
        }