OverflowStack.GenericData.Client.DataClient.BuildRequest C# (CSharp) Method

BuildRequest() public method

public BuildRequest ( Payload payload, string tag, string token, string userId ) : Request
payload OverflowStack.GenericData.SharedDomains.Models.Payload
tag string
token string
userId string
return OverflowStack.GenericData.SharedDomains.Models.Request
        public Request BuildRequest(Payload payload, string tag, string token, string userId)
        {
            return new Request {CreatedDate = DateTime.Now, Id = Guid.NewGuid(), Machine = Environment.MachineName, Payload = payload, Tag = tag, Token = token, UserId = userId};
        }
    }

Usage Example

Beispiel #1
0
 private static Response TestUpdate(DataClient client, DataRecord record)
 {
     var payload = client.BuildPayload("TestUser", new List<object> { record.Values[0], "John Doe", "America", "1989-02-28", false, 23, 135.79, DateTime.Now });
     var request = client.BuildRequest(payload, "update", "1234", "user1");
     var response = client.Send(request);
     return response.Result;
 }
All Usage Examples Of OverflowStack.GenericData.Client.DataClient::BuildRequest