Skip to content

Drop everything via an API endpoint #995

Answered by Mimetis
TheRyan1 asked this question in Q&A
Discussion options

You must be logged in to vote

I moved this to conversation as it's not an issue

BTW, you can create your own endpoint and call the DropAllAsync() method if you want, independently from DMS:

You can use this kind of code I guess

public SyncController(WebServerAgent webServerAgent, ILogger<SyncController> logger)
{
    this.webServerAgent = webServerAgent;
    this.logger = logger;
}

[HttpGet("drop")]
public async Task<IActionResult> DropAllAsync()
{
    await this.webServerAgent.RemoteOrchestrator.DropAllAsync();
    return Ok();

}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheRyan1
Comment options

@Mimetis
Comment options

Answer selected by TheRyan1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #994 on April 12, 2023 12:14.