/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <SINner> > AdminGetSINnersAsync(this ISINnersClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AdminGetSINnersWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='username'> /// </param> /// <param name='password'> /// </param> /// <param name='startIpAddress'> /// </param> /// <param name='endIpAddress'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> GetAddSqlDbUserAsync(this ISINnersClient operations, string username = default(string), string password = default(string), string startIpAddress = default(string), string endIpAddress = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAddSqlDbUserWithHttpMessagesAsync(username, password, startIpAddress, endIpAddress, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Search for all members and subgroups of a group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupid'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINSearchGroupResult> GetGroupMembersAsync(this ISINnersClient operations, Guid?groupid = default(Guid?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetGroupMembersWithHttpMessagesAsync(groupid, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='searchTag'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <SINner> > SearchAsync(this ISINnersClient operations, SearchTag searchTag = default(SearchTag), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SearchWithHttpMessagesAsync(searchTag, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Search for Groups /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupname'> /// </param> /// <param name='usernameOrEmail'> /// </param> /// <param name='sINnerName'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINSearchGroupResult> GetSearchGroupsAsync(this ISINnersClient operations, string groupname = default(string), string usernameOrEmail = default(string), string sINnerName = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSearchGroupsWithHttpMessagesAsync(groupname, usernameOrEmail, sINnerName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Remove a sinner from a group. If this sinner is the last member of it's /// group, the group will be deleted as well! /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupid'> /// </param> /// <param name='sinnerid'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool?> DeleteLeaveGroupAsync(this ISINnersClient operations, Guid?groupid = default(Guid?), Guid?sinnerid = default(Guid?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteLeaveGroupWithHttpMessagesAsync(groupid, sinnerid, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Store the new group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// </param> /// <param name='sinnerId'> /// </param> /// <param name='pwhash'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINner> PutSINerInGroupAsync(this ISINnersClient operations, Guid?groupId = default(Guid?), Guid?sinnerId = default(Guid?), string pwhash = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutSINerInGroupWithHttpMessagesAsync(groupId, sinnerId, pwhash, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='email'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationUser> GetUserByEmailAsync(this ISINnersClient operations, string email = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserByEmailWithHttpMessagesAsync(email, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Store the new group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// </param> /// <param name='groupname'> /// In case you want to rename the group /// </param> /// <param name='parentGroupId'> /// </param> /// <param name='adminIdentityRole'> /// </param> /// <param name='isPublicVisible'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINner> PutGroupInGroupAsync(this ISINnersClient operations, Guid?groupId = default(Guid?), string groupname = default(string), Guid?parentGroupId = default(Guid?), string adminIdentityRole = default(string), bool?isPublicVisible = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutGroupInGroupWithHttpMessagesAsync(groupId, groupname, parentGroupId, adminIdentityRole, isPublicVisible, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINner> GetSINByIdAsync(this ISINnersClient operations, Guid id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSINByIdWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns the Chummer-Save-File /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sinnerid'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <System.IO.Stream> GetDownloadFileAsync(this ISINnersClient operations, Guid sinnerid, CancellationToken cancellationToken = default(CancellationToken)) { var _result = await operations.GetDownloadFileWithHttpMessagesAsync(sinnerid, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return(_result.Body); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> GetDeleteAndRecreateDbAsync(this ISINnersClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetDeleteAndRecreateDbWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SINSearchResult> GetSINnersByAuthorizationAsync(this ISINnersClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSINnersByAuthorizationWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool?> LogoutAsync(this ISINnersClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.LogoutWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ChummerHubVersion> GetVersionAsync(this ISINnersClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetVersionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='username'> /// </param> /// <param name='password'> /// </param> /// <param name='startIpAddress'> /// </param> /// <param name='endIpAddress'> /// </param> public static string GetAddSqlDbUser(this ISINnersClient operations, string username = default(string), string password = default(string), string startIpAddress = default(string), string endIpAddress = default(string)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).GetAddSqlDbUserAsync(username, password, startIpAddress, endIpAddress), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <UploadClient> GetSomeTestUploadClients(this ISINnersClient operations) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).GetSomeTestUploadClientsAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='searchTag'> /// </param> public static IList <SINner> Search(this ISINnersClient operations, SearchTag searchTag = default(SearchTag)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).SearchAsync(searchTag), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Search for all members and subgroups of a group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupid'> /// </param> public static SINSearchGroupResult GetGroupMembers(this ISINnersClient operations, Guid?groupid = default(Guid?)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).GetGroupMembersAsync(groupid), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Remove a sinner from a group. If this sinner is the last member of it's /// group, the group will be deleted as well! /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupid'> /// </param> /// <param name='sinnerid'> /// </param> public static bool?DeleteLeaveGroup(this ISINnersClient operations, Guid?groupid = default(Guid?), Guid?sinnerid = default(Guid?)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).DeleteLeaveGroupAsync(groupid, sinnerid), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Search for Groups /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupname'> /// </param> /// <param name='usernameOrEmail'> /// </param> /// <param name='sINnerName'> /// </param> /// <param name='language'> /// </param> public static object GetSearchGroups(this ISINnersClient operations, string groupname = default(string), string usernameOrEmail = default(string), string sINnerName = default(string), string language = default(string)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).GetSearchGroupsAsync(groupname, usernameOrEmail, sINnerName, language), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Store the new group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// </param> /// <param name='sinnerId'> /// </param> /// <param name='pwhash'> /// </param> public static object PutSINerInGroup(this ISINnersClient operations, Guid?groupId = default(Guid?), Guid?sinnerId = default(Guid?), string pwhash = default(string)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).PutSINerInGroupAsync(groupId, sinnerId, pwhash), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Store the new group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='mygroup'> /// </param> /// <param name='sinnerId'> /// </param> public static object PostGroup(this ISINnersClient operations, SINnerGroup mygroup = default(SINnerGroup), Guid?sinnerId = default(Guid?)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).PostGroupAsync(mygroup, sinnerId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='email'> /// </param> public static ApplicationUser GetUserByEmail(this ISINnersClient operations, string email = default(string)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).GetUserByEmailAsync(email), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Store the new group /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// </param> /// <param name='groupname'> /// In case you want to rename the group /// </param> /// <param name='parentGroupId'> /// </param> /// <param name='adminIdentityRole'> /// </param> /// <param name='isPublicVisible'> /// </param> public static SINner PutGroupInGroup(this ISINnersClient operations, Guid?groupId = default(Guid?), string groupname = default(string), Guid?parentGroupId = default(Guid?), string adminIdentityRole = default(string), bool?isPublicVisible = default(bool?)) { return(Task.Factory.StartNew(s => ((ISINnersClient)s).PutGroupInGroupAsync(groupId, groupname, parentGroupId, adminIdentityRole, isPublicVisible), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Store the MetaData for chummerfiles (to get a Id). /// This Id can be used to store the actual file with PUT afterwards. /// Alternativly, the DownloadUrl can be set directly from the Client. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='uploadInfo'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostSINAsync(this ISINnersClient operations, UploadInfoObject uploadInfo = default(UploadInfoObject), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostSINWithHttpMessagesAsync(uploadInfo, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Store the MetaData for chummerfiles (to get a Id). /// This Id can be used to store the actual file with PUT afterwards. /// Alternativly, the DownloadUrl can be set directly from the Client. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='uploadInfo'> /// </param> public static void PostSIN(this ISINnersClient operations, UploadInfoObject uploadInfo = default(UploadInfoObject)) { Task.Factory.StartNew(s => ((ISINnersClient)s).PostSINAsync(uploadInfo), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static void GetSINners(this ISINnersClient operations, Guid id) { Task.Factory.StartNew(s => ((ISINnersClient)s).GetSINnersAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetSINnersAsync(this ISINnersClient operations, Guid id, CancellationToken cancellationToken = default(CancellationToken)) { await operations.GetSINnersWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// The Xml or Zip File can be uploaded (knowing the previously stored Id) /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='uploadedFile'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutSINAsync(this ISINnersClient operations, Guid id, System.IO.Stream uploadedFile = default(System.IO.Stream), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PutSINWithHttpMessagesAsync(id, uploadedFile, null, cancellationToken).ConfigureAwait(false); }