コード例 #1
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::StrawberryShake.Tools.SchemaRegistry.IMarkSchemaPublished> > MarkSchemaPublishedAsync(
            global::StrawberryShake.Optional <string> externalId         = default,
            global::StrawberryShake.Optional <string> schemaName         = default,
            global::StrawberryShake.Optional <string> environmentName    = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (externalId.HasValue && externalId.Value is null)
            {
                throw new ArgumentNullException(nameof(externalId));
            }

            if (schemaName.HasValue && schemaName.Value is null)
            {
                throw new ArgumentNullException(nameof(schemaName));
            }

            if (environmentName.HasValue && environmentName.Value is null)
            {
                throw new ArgumentNullException(nameof(environmentName));
            }

            return(_executor.ExecuteAsync(
                       new MarkSchemaPublishedOperation
            {
                ExternalId = externalId,
                SchemaName = schemaName,
                EnvironmentName = environmentName
            },
                       cancellationToken));
        }
コード例 #2
0
ファイル: EschoolClient.cs プロジェクト: sohan093007/eSchool
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::OpenCodeFoundation.ESchool.Web.Frontend.Blazor.Client.IRegisterStudent> > RegisterStudentAsync(
            global::StrawberryShake.Optional <string> fullName           = default,
            global::StrawberryShake.Optional <string> email              = default,
            global::StrawberryShake.Optional <string> mobile             = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (fullName.HasValue && fullName.Value is null)
            {
                throw new ArgumentNullException(nameof(fullName));
            }

            if (email.HasValue && email.Value is null)
            {
                throw new ArgumentNullException(nameof(email));
            }

            if (mobile.HasValue && mobile.Value is null)
            {
                throw new ArgumentNullException(nameof(mobile));
            }

            return(_executor.ExecuteAsync(
                       new RegisterStudentOperation
            {
                FullName = fullName,
                Email = email,
                Mobile = mobile
            },
                       cancellationToken));
        }
コード例 #3
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::StrawberryShake.IPublishSchema> > PublishSchemaAsync(
            global::StrawberryShake.Optional <string> externalId      = default,
            global::StrawberryShake.Optional <string> schemaName      = default,
            global::StrawberryShake.Optional <string> environmentName = default,
            global::StrawberryShake.Optional <string?> sourceText     = default,
            global::StrawberryShake.Optional <global::System.Collections.Generic.IReadOnlyList <global::StrawberryShake.TagInput>?> tags = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (externalId.HasValue && externalId.Value is null)
            {
                throw new ArgumentNullException(nameof(externalId));
            }

            if (schemaName.HasValue && schemaName.Value is null)
            {
                throw new ArgumentNullException(nameof(schemaName));
            }

            if (environmentName.HasValue && environmentName.Value is null)
            {
                throw new ArgumentNullException(nameof(environmentName));
            }

            return(_executor.ExecuteAsync(
                       new PublishSchemaOperation
            {
                ExternalId = externalId,
                SchemaName = schemaName,
                EnvironmentName = environmentName,
                SourceText = sourceText,
                Tags = tags
            },
                       cancellationToken));
        }
コード例 #4
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Elsa.OrchardCore.IGetWorkflowDefinitions> > GetWorkflowDefinitionsAsync(
     global::StrawberryShake.Optional <global::Elsa.OrchardCore.VersionOptionsInput> version = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new GetWorkflowDefinitionsOperation {
         Version = version
     },
                cancellationToken));
 }
コード例 #5
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::QueryAndMutationTest.ISetCount> > SetCountAsync(
     global::StrawberryShake.Optional <int> count = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new SetCountOperation {
         Count = count
     },
                cancellationToken));
 }
コード例 #6
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::CoolStore.WebUI.Host.ICreateProductMutation> > CreateProductMutationAsync(
            global::StrawberryShake.Optional <global::CoolStore.WebUI.Host.CreateProductInput> createProductInput = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (createProductInput.HasValue && createProductInput.Value is null)
            {
                throw new ArgumentNullException(nameof(createProductInput));
            }

            return(_executor.ExecuteAsync(
                       new CreateProductMutationOperation {
                CreateProductInput = createProductInput
            },
                       cancellationToken));
        }
コード例 #7
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::CoolStore.WebUI.Host.IGetProducts> > GetProductsAsync(
     global::StrawberryShake.Optional <int?> page     = default,
     global::StrawberryShake.Optional <int?> pageSize = default,
     global::StrawberryShake.Optional <global::CoolStore.WebUI.Host.CatalogProductDtoFilter> where = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new GetProductsOperation
     {
         Page = page,
         PageSize = pageSize,
         Where = where
     },
                cancellationToken));
 }
コード例 #8
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Library.Client.Generated.IGetDocs> > GetDocsAsync(
     global::StrawberryShake.Optional <string> search             = default,
     global::StrawberryShake.Optional <string> after              = default,
     global::StrawberryShake.Optional <string> before             = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new GetDocsOperation
     {
         Search = search,
         After = after,
         Before = before
     },
                cancellationToken));
 }
コード例 #9
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::ImageRecognition.Web.IGetPhoto> > GetPhotoAsync(
            global::StrawberryShake.Optional <string> id = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (id.HasValue && id.Value is null)
            {
                throw new ArgumentNullException(nameof(id));
            }

            return(_executor.ExecuteAsync(
                       new GetPhotoOperation {
                Id = id
            },
                       cancellationToken));
        }
コード例 #10
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.IGetMessages> > GetMessagesAsync(
            global::StrawberryShake.Optional <string> email = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (email.HasValue && email.Value is null)
            {
                throw new ArgumentNullException(nameof(email));
            }

            return(_executor.ExecuteAsync(
                       new GetMessagesOperation {
                Email = email
            },
                       cancellationToken));
        }
コード例 #11
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::StrawberryShake.Client.StarWarsQuery.IGetHuman> > GetHumanAsync(
            global::StrawberryShake.Optional <string> id = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (id.HasValue && id.Value is null)
            {
                throw new ArgumentNullException(nameof(id));
            }

            return(_executor.ExecuteAsync(
                       new GetHumanOperation {
                Id = id
            },
                       cancellationToken));
        }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.IPeople> > GetPeopleAsync(
            global::StrawberryShake.Optional <string> userId             = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (userId.HasValue && userId.Value is null)
            {
                throw new ArgumentNullException(nameof(userId));
            }

            return(_executor.ExecuteAsync(
                       new GetPeopleOperation {
                UserId = userId
            },
                       cancellationToken));
        }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.IRecipientById> > GetRecipientAsync(
            global::StrawberryShake.Optional <string> recipientId        = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (recipientId.HasValue && recipientId.Value is null)
            {
                throw new ArgumentNullException(nameof(recipientId));
            }

            return(_executor.ExecuteAsync(
                       new GetRecipientOperation {
                RecipientId = recipientId
            },
                       cancellationToken));
        }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.ISignUp> > SignUpAsync(
            global::StrawberryShake.Optional <global::Client.CreateUserInput> newUser = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (newUser.HasValue && newUser.Value is null)
            {
                throw new ArgumentNullException(nameof(newUser));
            }

            return(_executor.ExecuteAsync(
                       new SignUpOperation {
                NewUser = newUser
            },
                       cancellationToken));
        }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.IUserIsTyping> > UserIsTypingAsync(
            global::StrawberryShake.Optional <string> writingTo          = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (writingTo.HasValue && writingTo.Value is null)
            {
                throw new ArgumentNullException(nameof(writingTo));
            }

            return(_executor.ExecuteAsync(
                       new UserIsTypingOperation {
                WritingTo = writingTo
            },
                       cancellationToken));
        }
コード例 #16
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::ImageRecognition.Web.IListPhotos> > ListPhotosAsync(
     global::StrawberryShake.Optional <global::ImageRecognition.Web.ModelPhotoFilterInput?> filter = default,
     global::StrawberryShake.Optional <int?> limit                = default,
     global::StrawberryShake.Optional <string?> nextToken         = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new ListPhotosOperation
     {
         Filter = filter,
         Limit = limit,
         NextToken = nextToken
     },
                cancellationToken));
 }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.ISignIn> > SignInAsync(
            global::StrawberryShake.Optional <global::Client.LoginInput> signIn = default,
            global::System.Threading.CancellationToken cancellationToken        = default)
        {
            if (signIn.HasValue && signIn.Value is null)
            {
                throw new ArgumentNullException(nameof(signIn));
            }

            return(_executor.ExecuteAsync(
                       new SignInOperation {
                SignIn = signIn
            },
                       cancellationToken));
        }
コード例 #18
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::MyHobbyPal.Client.IUpsertPerson> > UpsertPersonAsync(
            global::StrawberryShake.Optional <global::MyHobbyPal.Client.UpsertPersonInput> person = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (person.HasValue && person.Value is null)
            {
                throw new ArgumentNullException(nameof(person));
            }

            return(_executor.ExecuteAsync(
                       new UpsertPersonOperation {
                Person = person
            },
                       cancellationToken));
        }
コード例 #19
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IResponseStream <global::StrawberryShake.Tools.SchemaRegistry.IOnPublishDocument> > OnPublishDocumentAsync(
            global::StrawberryShake.Optional <string> sessionId          = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (sessionId.HasValue && sessionId.Value is null)
            {
                throw new ArgumentNullException(nameof(sessionId));
            }

            return(_streamExecutor.ExecuteAsync(
                       new OnPublishDocumentOperation {
                SessionId = sessionId
            },
                       cancellationToken));
        }
コード例 #20
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::StrawberryShake.Tools.SchemaRegistry.IPublishClient> > PublishClientAsync(
            global::StrawberryShake.Optional <string> externalId      = default,
            global::StrawberryShake.Optional <string> schemaName      = default,
            global::StrawberryShake.Optional <string> environmentName = default,
            global::StrawberryShake.Optional <string> clientName      = default,
            global::StrawberryShake.Optional <QueryFileFormat> format = default,
            global::StrawberryShake.Optional <global::System.Collections.Generic.IReadOnlyList <global::StrawberryShake.Tools.SchemaRegistry.QueryFileInput> > files = default,
            global::StrawberryShake.Optional <global::System.Collections.Generic.IReadOnlyList <global::StrawberryShake.Tools.SchemaRegistry.TagInput>?> tags        = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (externalId.HasValue && externalId.Value is null)
            {
                throw new ArgumentNullException(nameof(externalId));
            }

            if (schemaName.HasValue && schemaName.Value is null)
            {
                throw new ArgumentNullException(nameof(schemaName));
            }

            if (environmentName.HasValue && environmentName.Value is null)
            {
                throw new ArgumentNullException(nameof(environmentName));
            }

            if (clientName.HasValue && clientName.Value is null)
            {
                throw new ArgumentNullException(nameof(clientName));
            }

            if (files.HasValue && files.Value is null)
            {
                throw new ArgumentNullException(nameof(files));
            }

            return(_executor.ExecuteAsync(
                       new PublishClientOperation
            {
                ExternalId = externalId,
                SchemaName = schemaName,
                EnvironmentName = environmentName,
                ClientName = clientName,
                Format = format,
                Files = files,
                Tags = tags
            },
                       cancellationToken));
        }
コード例 #21
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::ImageRecognition.Web.IListPhotosByAlbumUploadTime> > ListPhotosByAlbumUploadTimeAsync(
     global::StrawberryShake.Optional <string?> albumId = default,
     global::StrawberryShake.Optional <ModelSortDirection?> sortDirection = default,
     global::StrawberryShake.Optional <global::ImageRecognition.Web.ModelPhotoFilterInput?> filter = default,
     global::StrawberryShake.Optional <int?> limit                = default,
     global::StrawberryShake.Optional <string?> nextToken         = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new ListPhotosByAlbumUploadTimeOperation
     {
         AlbumId = albumId,
         SortDirection = sortDirection,
         Filter = filter,
         Limit = limit,
         NextToken = nextToken
     },
                cancellationToken));
 }
コード例 #22
0
 public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::MyHobbyPal.Client.IGetAllPersons> > GetAllPersonsAsync(
     global::StrawberryShake.Optional <int?> first                = default,
     global::StrawberryShake.Optional <string> after              = default,
     global::StrawberryShake.Optional <int?> last                 = default,
     global::StrawberryShake.Optional <string> before             = default,
     global::StrawberryShake.Optional <string> familyName         = default,
     global::StrawberryShake.Optional <string> givenName          = default,
     global::System.Threading.CancellationToken cancellationToken = default)
 {
     return(_executor.ExecuteAsync(
                new GetAllPersonsOperation
     {
         First = first,
         After = after,
         Last = last,
         Before = before,
         FamilyName = familyName,
         GivenName = givenName
     },
                cancellationToken));
 }
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.ISendMessage> > SendMessageAsync(
            global::StrawberryShake.Optional <string> recipientEmail     = default,
            global::StrawberryShake.Optional <string> text               = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (recipientEmail.HasValue && recipientEmail.Value is null)
            {
                throw new ArgumentNullException(nameof(recipientEmail));
            }

            if (text.HasValue && text.Value is null)
            {
                throw new ArgumentNullException(nameof(text));
            }

            return(_executor.ExecuteAsync(
                       new SendMessageOperation
            {
                RecipientEmail = recipientEmail,
                Text = text
            },
                       cancellationToken));
        }
コード例 #24
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::MyHobbyPal.Client.IGetPersonWithHobbies> > GetPersonWithHobbiesAsync(
            global::StrawberryShake.Optional <string> personId           = default,
            global::StrawberryShake.Optional <string> partitionKey       = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (personId.HasValue && personId.Value is null)
            {
                throw new ArgumentNullException(nameof(personId));
            }

            if (partitionKey.HasValue && partitionKey.Value is null)
            {
                throw new ArgumentNullException(nameof(partitionKey));
            }

            return(_executor.ExecuteAsync(
                       new GetPersonWithHobbiesOperation
            {
                PersonId = personId,
                PartitionKey = partitionKey
            },
                       cancellationToken));
        }
コード例 #25
0
        public global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <global::Client.ISendMessage> > SendMessageAsync(
            global::StrawberryShake.Optional <string> to                 = default,
            global::StrawberryShake.Optional <string> message            = default,
            global::System.Threading.CancellationToken cancellationToken = default)
        {
            if (to.HasValue && to.Value is null)
            {
                throw new ArgumentNullException(nameof(to));
            }

            if (message.HasValue && message.Value is null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            return(_executor.ExecuteAsync(
                       new SendMessageOperation
            {
                To = to,
                Message = message
            },
                       cancellationToken));
        }