public static Task <QueryResult <TObject> > GetBoomiObjectsAsync <TObject, TBuilder>( this BoomiClient client, Func <TBuilder, IExpression> expressionBuilder) where TBuilder : IExpressionBuilder <TObject>, new() where TObject : IBoomiObject, ICanQuery { var builder = new TBuilder(); var expression = expressionBuilder(builder); var response = client.GetBoomiObjectsAsync <TObject>(expression); return(response); }
private static IObservable <T[]> GetBoomiObjectsObservable_Internal <T>(BoomiClient client, Task <QueryResult <T> > initialRequest) where T : IBoomiObject, ICanQuery { throw new NotImplementedException(); // TODO: //return // Observable // .Create<T[]>( // async (obs, token) => // { // var task = initialRequest; // QueryResult<T> result = null; // try // { // do // { // response = await task; // response.EnsureSuccessStatusCode(); // token.ThrowIfCancellationRequested(); // result = await response.DeserializeContentAsync(); // response.Dispose(); // token.ThrowIfCancellationRequested(); // obs.OnNext(result); // task = client.GetBoomiObjectsAsync<T>(result.QueryToken); // } // while (!string.IsNullOrEmpty(result.QueryToken)); // obs.OnCompleted(); // } // catch (OperationCanceledException e) // { // obs.OnCompleted(); // } // catch (Exception e) // { // obs.OnError(e); // } // finally // { // if (response != null) // { // response.Dispose(); // } // } // }); }
public static Task <QueryResult <BoomiObjects.Environment> > GetEnvironmentsAsync( this BoomiClient client, Func <EnvironmentExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <BoomiObjects.Environment, EnvironmentExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <BoomiObjects.Environment> > GetEnvironmentsAsync(this BoomiClient client) { return(client.GetBoomiObjectsAsync <BoomiObjects.Environment>()); }
public static IObservable <T[]> GetBoomiObjectsAsync <T>(this BoomiClient client, IExpression expression) where T : IBoomiObject, ICanQuery { return(GetBoomiObjectsObservable_Internal(client, client.GetBoomiObjectsAsync <T>(expression))); }
public static Task <QueryResult <ComponentAtomAttachment> > GetComponentAtomAttachmentsAsync( this BoomiClient client, Func <ComponentAtomAttachmentExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <ComponentAtomAttachment, ComponentAtomAttachmentExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <ComponentAtomAttachment> > GetComponentAtomAttachmentsAsync(this BoomiClient client) { return(client.GetBoomiObjectsAsync <ComponentAtomAttachment>()); }
public static Task <QueryResult <ProcessSchedules> > GetProcessSchedulesAsync( this BoomiClient client, Func <ProcessSchedulesExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <ProcessSchedules, ProcessSchedulesExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <EnvironmentMapExtensionsSummary> > GetEnvironmentMapExtensionsSummarysAsync( this BoomiClient client, Func <EnvironmentMapExtensionsSummaryExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <EnvironmentMapExtensionsSummary, EnvironmentMapExtensionsSummaryExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <ListenerStatus> > GetListenerStatusesAsync( this BoomiClient client, Func <ListenerStatusExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <ListenerStatus, ListenerStatusExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <Atom> > GetAtomsAsync( this BoomiClient client, Func <AtomExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <Atom, AtomExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <Atom> > GetAtomsAsync(this BoomiClient client) { return(client.GetBoomiObjectsAsync <Atom>()); }
public static Task <QueryResult <Process> > GetProcessesAsync(this BoomiClient client) { return(client.GetBoomiObjectsAsync <Process>()); }
public static Task <QueryResult <Deployment> > GetDeploymentsAsync( this BoomiClient client, Func <DeploymentExpressionBuilder, IExpression> expressionBuilder) { return(client.GetBoomiObjectsAsync <Deployment, DeploymentExpressionBuilder>(expressionBuilder)); }
public static Task <QueryResult <Deployment> > GetDeploymentsAsync(this BoomiClient client) { return(client.GetBoomiObjectsAsync <Deployment>()); }