public async override Task ReplaceEventAsync(object eventId, AuditEvent auditEvent) { var containerName = ContainerNameBuilder.Invoke(auditEvent); var client = await EnsureContainerClientAsync(containerName); await UploadAsync(client, auditEvent, eventId.ToString()); }
public override void ReplaceEvent(object eventId, AuditEvent auditEvent) { var containerName = ContainerNameBuilder.Invoke(auditEvent); var client = EnsureContainerClient(containerName); Upload(client, auditEvent, eventId.ToString()); }
protected string GetContainerName(AuditEvent auditEvent) { if (ContainerNameBuilder != null) { return(ContainerNameBuilder.Invoke(auditEvent)); } return("event"); }
public override object InsertEvent(AuditEvent auditEvent) { var containerName = ContainerNameBuilder.Invoke(auditEvent); var client = EnsureContainerClient(containerName); var blobName = Upload(client, auditEvent, null); return(blobName); }
public async override Task <object> InsertEventAsync(AuditEvent auditEvent) { var containerName = ContainerNameBuilder.Invoke(auditEvent); var client = await EnsureContainerClientAsync(containerName); var blobName = await UploadAsync(client, auditEvent, null); return(blobName); }
public async override Task <T> GetEventAsync <T>(object blobName) { var containerName = ContainerNameBuilder.Invoke(null); return(await GetEventAsync <T>(containerName, blobName.ToString())); }
public override T GetEvent <T>(object blobName) { var containerName = ContainerNameBuilder.Invoke(null); return(GetEvent <T>(containerName, blobName.ToString())); }