Namespace: Daisi.SDK.Clients.V1.Orc
Inheritance: ModelsProto.ModelsProtoClient
var factory = new ModelClientFactory(clientKeyProvider); var modelClient = factory.Create();
var factory = new ModelClientFactory(); var modelClient = factory.Create();
var getRequiredModelsResponse = modelClient.GetRequiredModels(); // or async var getRequiredModelsResponseAsync = await modelClient.GetRequiredModelsAsync();
Example for ModelClient:
// Always use the Factory Pattern var modelClientFactory = new ModelClientFactory(); var modelClient = new modelClientFactory.Create(); // Use modelClient to retrieve or manage models var modelResponse = await modelClient.GetModelsAsync(); // Process modelResponse
Example in a Blazor component (non-executable):
// At the top of your Blazor component file:
@inject Daisi.SDK.Clients.V1.Orc.ModelClientFactory ModelClientFactory
... Some UI Code
@code {
private Daisi.SDK.Clients.V1.Orc.ModelClient modelClient;
protected override void OnInitialized()
{
modelClient = ModelClientFactory.Create();
// Use modelClient to retrieve or manage models
}
}