Example #1
0
        protected override void SubmitData(IJsonWebhook json)
        {
            var endpoint = EndpointFactory.Build(EntityRequestType.Webhook_Write_Update, new Dictionary <string, object> {
                { "_id", Data.Id }
            });
            var newData = JsonRepository.Execute(Auth, endpoint, json);

            Merge(newData);
        }
Example #2
0
        protected override async Task SubmitData(IJsonWebhook json, CancellationToken ct)
        {
            var endpoint = EndpointFactory.Build(EntityRequestType.Webhook_Write_Update,
                                                 new Dictionary <string, object> {
                { "_id", Data.Id }
            });
            var newData = await JsonRepository.Execute(Auth, endpoint, json, ct);

            Merge(newData);
        }
Example #3
0
 void IMergeJson <IJsonWebhook> .Merge(IJsonWebhook json, bool overwrite)
 {
     _context.Merge(json, overwrite);
 }
Example #4
0
 void IMergeJson <IJsonWebhook> .Merge(IJsonWebhook json)
 {
     _context.Merge(json);
 }