content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
/* * Copyright (c) Adam Chapweske * * Licensed under MIT (https://github.com/achapweske/silvernote/blob/master/LICENSE) */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SilverNote.Editor { internal class OpenSquareListStyle : IListStyle { public string Description { get { return "\u25A1 Square"; } } public bool IsOrdered { get { return false; } } public string GetMarker(int index) { return "\u25A1"; } public IListStyle NextStyle { get { return ListStyles.Diamond; } } public IListStyle PreviousStyle { get { return ListStyles.Square; } } public override string ToString() { return "open-square"; } } }
19.085106
84
0.548495
[ "MIT" ]
achapweske/silvernote
SilverNote.Editor/Text/ListStyles/OpenSquareListStyle.cs
899
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Microsoft.Azure.Management.WebSites { using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; /// <summary> /// WebAppsOperations operations. /// </summary> public partial interface IWebAppsOperations { /// <summary> /// Get all apps for a subscription. /// </summary> /// <remarks> /// Get all apps for a subscription. /// </remarks> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all web, mobile, and API apps in the specified resource group. /// </summary> /// <remarks> /// Gets all web, mobile, and API apps in the specified resource group. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='includeSlots'> /// Specify &lt;strong&gt;true&lt;/strong&gt; to include deployment /// slots in results. The default is false, which only gives you the /// production slot of all apps. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, bool? includeSlots = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the details of a web, mobile, or API app. /// </summary> /// <remarks> /// Gets the details of a web, mobile, or API app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> GetWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string name, Site siteEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a web, mobile, or API app, or one of the deployment slots. /// </summary> /// <remarks> /// Deletes a web, mobile, or API app, or one of the deployment slots. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app to delete. /// </param> /// <param name='deleteMetrics'> /// If true, web app metrics are also deleted. /// </param> /// <param name='deleteEmptyServerFarm'> /// Specify true if the App Service plan will be empty after app /// deletion and you want to delete the empty App Service plan. By /// default, the empty App Service plan is not deleted. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string name, bool? deleteMetrics = default(bool?), bool? deleteEmptyServerFarm = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, SitePatchResource siteEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Analyze a custom hostname. /// </summary> /// <remarks> /// Analyze a custom hostname. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='hostName'> /// Custom hostname. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<CustomHostnameAnalysisResult>> AnalyzeCustomHostnameWithHttpMessagesAsync(string resourceGroupName, string name, string hostName = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Applies the configuration settings from the target slot onto the /// current slot. /// </summary> /// <remarks> /// Applies the configuration settings from the target slot onto the /// current slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> ApplySlotConfigToProductionWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a backup of an app. /// </summary> /// <remarks> /// Creates a backup of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Backup configuration. You can use the JSON response from the POST /// action as input here. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> BackupWithHttpMessagesAsync(string resourceGroupName, string name, BackupRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets existing backups of an app. /// </summary> /// <remarks> /// Gets existing backups of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<BackupItem>>> ListBackupsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a backup of an app by its ID. /// </summary> /// <remarks> /// Gets a backup of an app by its ID. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> GetBackupStatusWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a backup of an app by its ID. /// </summary> /// <remarks> /// Deletes a backup of an app by its ID. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteBackupWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets status of a web app backup that may be in progress, including /// secrets associated with the backup, such as the Azure Storage SAS /// URL. Also can be used to update the SAS URL for the backup if a new /// URL is passed in the request body. /// </summary> /// <remarks> /// Gets status of a web app backup that may be in progress, including /// secrets associated with the backup, such as the Azure Storage SAS /// URL. Also can be used to update the SAS URL for the backup if a new /// URL is passed in the request body. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='backupId'> /// ID of backup. /// </param> /// <param name='request'> /// Information on backup request. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> ListBackupStatusSecretsWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, BackupRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, RestoreRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the configurations of an app /// </summary> /// <remarks> /// List the configurations of an app /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigResource>>> ListConfigurationsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the application settings of an app. /// </summary> /// <remarks> /// Replaces the application settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='appSettings'> /// Application settings of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> UpdateApplicationSettingsWithHttpMessagesAsync(string resourceGroupName, string name, StringDictionary appSettings, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the application settings of an app. /// </summary> /// <remarks> /// Gets the application settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> ListApplicationSettingsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Authentication / Authorization settings associated with /// web app. /// </summary> /// <remarks> /// Updates the Authentication / Authorization settings associated with /// web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='siteAuthSettings'> /// Auth settings associated with web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteAuthSettings>> UpdateAuthSettingsWithHttpMessagesAsync(string resourceGroupName, string name, SiteAuthSettings siteAuthSettings, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Authentication/Authorization settings of an app. /// </summary> /// <remarks> /// Gets the Authentication/Authorization settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteAuthSettings>> GetAuthSettingsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Azure storage account configurations of an app. /// </summary> /// <remarks> /// Updates the Azure storage account configurations of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='azureStorageAccounts'> /// Azure storage accounts of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<AzureStoragePropertyDictionaryResource>> UpdateAzureStorageAccountsWithHttpMessagesAsync(string resourceGroupName, string name, AzureStoragePropertyDictionaryResource azureStorageAccounts, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Azure storage account configurations of an app. /// </summary> /// <remarks> /// Gets the Azure storage account configurations of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<AzureStoragePropertyDictionaryResource>> ListAzureStorageAccountsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the backup configuration of an app. /// </summary> /// <remarks> /// Updates the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Edited backup configuration. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupRequest>> UpdateBackupConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, BackupRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes the backup configuration of an app. /// </summary> /// <remarks> /// Deletes the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteBackupConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the backup configuration of an app. /// </summary> /// <remarks> /// Gets the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupRequest>> GetBackupConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the connection strings of an app. /// </summary> /// <remarks> /// Replaces the connection strings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionStrings'> /// Connection strings of the app or deployment slot. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ConnectionStringDictionary>> UpdateConnectionStringsWithHttpMessagesAsync(string resourceGroupName, string name, ConnectionStringDictionary connectionStrings, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the connection strings of an app. /// </summary> /// <remarks> /// Gets the connection strings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ConnectionStringDictionary>> ListConnectionStringsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the logging configuration of an app. /// </summary> /// <remarks> /// Gets the logging configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteLogsConfig>> GetDiagnosticLogsConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the logging configuration of an app. /// </summary> /// <remarks> /// Updates the logging configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteLogsConfig'> /// A SiteLogsConfig JSON object that contains the logging /// configuration to change in the "properties" property. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteLogsConfig>> UpdateDiagnosticLogsConfigWithHttpMessagesAsync(string resourceGroupName, string name, SiteLogsConfig siteLogsConfig, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the metadata of an app. /// </summary> /// <remarks> /// Replaces the metadata of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='metadata'> /// Edited metadata of the app or deployment slot. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> UpdateMetadataWithHttpMessagesAsync(string resourceGroupName, string name, StringDictionary metadata, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the metadata of an app. /// </summary> /// <remarks> /// Gets the metadata of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> ListMetadataWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Git/FTP publishing credentials of an app. /// </summary> /// <remarks> /// Gets the Git/FTP publishing credentials of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<User>> ListPublishingCredentialsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Push settings associated with web app. /// </summary> /// <remarks> /// Updates the Push settings associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='pushSettings'> /// Push settings associated with web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PushSettings>> UpdateSitePushSettingsWithHttpMessagesAsync(string resourceGroupName, string name, PushSettings pushSettings, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Push settings associated with web app. /// </summary> /// <remarks> /// Gets the Push settings associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PushSettings>> ListSitePushSettingsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the names of app settings and connection strings that stick to /// the slot (not swapped). /// </summary> /// <remarks> /// Gets the names of app settings and connection strings that stick to /// the slot (not swapped). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SlotConfigNamesResource>> ListSlotConfigurationNamesWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the names of application settings and connection string /// that remain with the slot during swap operation. /// </summary> /// <remarks> /// Updates the names of application settings and connection string /// that remain with the slot during swap operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotConfigNames'> /// Names of application settings and connection strings. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SlotConfigNamesResource>> UpdateSlotConfigurationNamesWithHttpMessagesAsync(string resourceGroupName, string name, SlotConfigNamesResource slotConfigNames, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the configuration of an app, such as platform version and /// bitness, default documents, virtual applications, Always On, etc. /// </summary> /// <remarks> /// Gets the configuration of an app, such as platform version and /// bitness, default documents, virtual applications, Always On, etc. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> GetConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the configuration of an app. /// </summary> /// <remarks> /// Updates the configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteConfig'> /// JSON representation of a SiteConfig object. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> CreateOrUpdateConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, SiteConfigResource siteConfig, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the configuration of an app. /// </summary> /// <remarks> /// Updates the configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteConfig'> /// JSON representation of a SiteConfig object. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> UpdateConfigurationWithHttpMessagesAsync(string resourceGroupName, string name, SiteConfigResource siteConfig, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </summary> /// <remarks> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigurationSnapshotInfo>>> ListConfigurationSnapshotInfoWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a snapshot of the configuration of an app at a previous point /// in time. /// </summary> /// <remarks> /// Gets a snapshot of the configuration of an app at a previous point /// in time. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='snapshotId'> /// The ID of the snapshot to read. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> GetConfigurationSnapshotWithHttpMessagesAsync(string resourceGroupName, string name, string snapshotId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Reverts the configuration of an app to a previous snapshot. /// </summary> /// <remarks> /// Reverts the configuration of an app to a previous snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='snapshotId'> /// The ID of the snapshot to read. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RecoverSiteConfigurationSnapshotWithHttpMessagesAsync(string resourceGroupName, string name, string snapshotId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the last lines of docker logs for the given site /// </summary> /// <remarks> /// Gets the last lines of docker logs for the given site /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetWebSiteContainerLogsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the ZIP archived docker log files for the given site /// </summary> /// <remarks> /// Gets the ZIP archived docker log files for the given site /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetContainerLogsZipWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List continuous web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List continuous web jobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ContinuousWebJob>>> ListContinuousWebJobsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a continuous web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Gets a continuous web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ContinuousWebJob>> GetContinuousWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a continuous web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Delete a continuous web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteContinuousWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start a continuous web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Start a continuous web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StartContinuousWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop a continuous web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Stop a continuous web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopContinuousWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployments for an app, or a deployment slot. /// </summary> /// <remarks> /// List deployments for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Deployment>>> ListDeploymentsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a deployment by its ID for an app, or a deployment slot. /// </summary> /// <remarks> /// Get a deployment by its ID for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// Deployment ID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> GetDeploymentWithHttpMessagesAsync(string resourceGroupName, string name, string id, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create a deployment for an app, or a deployment slot. /// </summary> /// <remarks> /// Create a deployment for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// ID of an existing deployment. /// </param> /// <param name='deployment'> /// Deployment details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> CreateDeploymentWithHttpMessagesAsync(string resourceGroupName, string name, string id, Deployment deployment, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a deployment by its ID for an app, or a deployment slot. /// </summary> /// <remarks> /// Delete a deployment by its ID for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// Deployment ID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteDeploymentWithHttpMessagesAsync(string resourceGroupName, string name, string id, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployment log for specific deployment for an app, or a /// deployment slot. /// </summary> /// <remarks> /// List deployment log for specific deployment for an app, or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// The ID of a specific deployment. This is the value of the name /// property in the JSON response from "GET /// /api/sites/{siteName}/deployments". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> ListDeploymentLogWithHttpMessagesAsync(string resourceGroupName, string name, string id, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Discovers an existing app backup that can be restored from a blob /// in Azure storage. Use this to get information about the databases /// stored in a backup. /// </summary> /// <remarks> /// Discovers an existing app backup that can be restored from a blob /// in Azure storage. Use this to get information about the databases /// stored in a backup. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// A RestoreRequest object that includes Azure storage URL and blog /// name for discovery of backup. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RestoreRequest>> DiscoverBackupWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists ownership identifiers for domain associated with web app. /// </summary> /// <remarks> /// Lists ownership identifiers for domain associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Identifier>>> ListDomainOwnershipIdentifiersWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get domain ownership identifier for web app. /// </summary> /// <remarks> /// Get domain ownership identifier for web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> GetDomainOwnershipIdentifierWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </summary> /// <remarks> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> CreateOrUpdateDomainOwnershipIdentifierWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Identifier domainOwnershipIdentifier, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a domain ownership identifier for a web app. /// </summary> /// <remarks> /// Deletes a domain ownership identifier for a web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteDomainOwnershipIdentifierWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </summary> /// <remarks> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> UpdateDomainOwnershipIdentifierWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Identifier domainOwnershipIdentifier, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the status of the last MSDeploy operation. /// </summary> /// <remarks> /// Get the status of the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> GetMSDeployStatusWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> CreateMSDeployOperationWithHttpMessagesAsync(string resourceGroupName, string name, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the MSDeploy Log for the last MSDeploy operation. /// </summary> /// <remarks> /// Get the MSDeploy Log for the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployLog>> GetMSDeployLogWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the functions for a web site, or a deployment slot. /// </summary> /// <remarks> /// List the functions for a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<FunctionEnvelope>>> ListFunctionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Fetch a short lived token that can be exchanged for a master key. /// </summary> /// <remarks> /// Fetch a short lived token that can be exchanged for a master key. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<string>> GetFunctionsAdminTokenWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get function information by its ID for web site, or a deployment /// slot. /// </summary> /// <remarks> /// Get function information by its ID for web site, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> GetFunctionWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create function for web site, or a deployment slot. /// </summary> /// <remarks> /// Create function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='functionEnvelope'> /// Function details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> CreateFunctionWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, FunctionEnvelope functionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a function for web site, or a deployment slot. /// </summary> /// <remarks> /// Delete a function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteFunctionWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get function secrets for a function in a web site, or a deployment /// slot. /// </summary> /// <remarks> /// Get function secrets for a function in a web site, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionSecrets>> ListFunctionSecretsWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get hostname bindings for an app or a deployment slot. /// </summary> /// <remarks> /// Get hostname bindings for an app or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<HostNameBinding>>> ListHostNameBindingsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the named hostname binding for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Get the named hostname binding for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HostNameBinding>> GetHostNameBindingWithHttpMessagesAsync(string resourceGroupName, string name, string hostName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a hostname binding for an app. /// </summary> /// <remarks> /// Creates a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='hostNameBinding'> /// Binding details. This is the JSON representation of a /// HostNameBinding object. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HostNameBinding>> CreateOrUpdateHostNameBindingWithHttpMessagesAsync(string resourceGroupName, string name, string hostName, HostNameBinding hostNameBinding, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a hostname binding for an app. /// </summary> /// <remarks> /// Deletes a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteHostNameBindingWithHttpMessagesAsync(string resourceGroupName, string name, string hostName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves a specific Service Bus Hybrid Connection used by this Web /// App. /// </summary> /// <remarks> /// Retrieves a specific Service Bus Hybrid Connection used by this Web /// App. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> GetHybridConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new Hybrid Connection using a Service Bus relay. /// </summary> /// <remarks> /// Creates a new Hybrid Connection using a Service Bus relay. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='connectionEnvelope'> /// The details of the hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> CreateOrUpdateHybridConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, HybridConnection connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Removes a Hybrid Connection from this site. /// </summary> /// <remarks> /// Removes a Hybrid Connection from this site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteHybridConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new Hybrid Connection using a Service Bus relay. /// </summary> /// <remarks> /// Creates a new Hybrid Connection using a Service Bus relay. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='connectionEnvelope'> /// The details of the hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> UpdateHybridConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, HybridConnection connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the send key name and value for a Hybrid Connection. /// </summary> /// <remarks> /// Gets the send key name and value for a Hybrid Connection. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnectionKey>> ListHybridConnectionKeysWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves all Service Bus Hybrid Connections used by this Web App. /// </summary> /// <remarks> /// Retrieves all Service Bus Hybrid Connections used by this Web App. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> ListHybridConnectionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets hybrid connections configured for an app (or deployment slot, /// if specified). /// </summary> /// <remarks> /// Gets hybrid connections configured for an app (or deployment slot, /// if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> ListRelayServiceConnectionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a hybrid connection configuration by its name. /// </summary> /// <remarks> /// Gets a hybrid connection configuration by its name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> GetRelayServiceConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </summary> /// <remarks> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='connectionEnvelope'> /// Details of the hybrid connection configuration. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> CreateOrUpdateRelayServiceConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, RelayServiceConnectionEntity connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a relay service connection by its name. /// </summary> /// <remarks> /// Deletes a relay service connection by its name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteRelayServiceConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </summary> /// <remarks> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='connectionEnvelope'> /// Details of the hybrid connection configuration. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> UpdateRelayServiceConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, RelayServiceConnectionEntity connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all scale-out instances of an app. /// </summary> /// <remarks> /// Gets all scale-out instances of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteInstance>>> ListInstanceIdentifiersWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the status of the last MSDeploy operation. /// </summary> /// <remarks> /// Get the status of the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> GetInstanceMsDeployStatusWithHttpMessagesAsync(string resourceGroupName, string name, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> CreateInstanceMSDeployOperationWithHttpMessagesAsync(string resourceGroupName, string name, string instanceId, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the MSDeploy Log for the last MSDeploy operation. /// </summary> /// <remarks> /// Get the MSDeploy Log for the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployLog>> GetInstanceMSDeployLogWithHttpMessagesAsync(string resourceGroupName, string name, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListInstanceProcessesWithHttpMessagesAsync(string resourceGroupName, string name, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessInfo>> GetInstanceProcessWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteInstanceProcessWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetInstanceProcessDumpWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListInstanceProcessModulesWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='baseAddress'> /// Module base address. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessModuleInfo>> GetInstanceProcessModuleWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string baseAddress, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListInstanceProcessThreadsWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='threadId'> /// TID. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessThreadInfo>> GetInstanceProcessThreadWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string threadId, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Shows whether an app can be cloned to another resource group or /// subscription. /// </summary> /// <remarks> /// Shows whether an app can be cloned to another resource group or /// subscription. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteCloneability>> IsCloneableWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is to allow calling via powershell and ARM template. /// </summary> /// <remarks> /// This is to allow calling via powershell and ARM template. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionSecrets>> ListSyncFunctionTriggersWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetricDefinition>>> ListMetricDefinitionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='details'> /// Specify "true" to include metric details in the response. It is /// "false" by default. /// </param> /// <param name='filter'> /// Return only metrics specified in the filter (using OData syntax). /// For example: $filter=(name.value eq 'Metric1' or name.value eq /// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq /// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetric>>> ListMetricsWithHttpMessagesAsync(string resourceGroupName, string name, bool? details = default(bool?), string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app. /// </summary> /// <remarks> /// Restores a web app. /// </remarks> /// <param name='subscriptionName'> /// Azure subscription. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='migrationOptions'> /// Migration migrationOptions. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StorageMigrationResponse>> MigrateStorageWithHttpMessagesAsync(string subscriptionName, string resourceGroupName, string name, StorageMigrationOptions migrationOptions, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Migrates a local (in-app) MySql database to a remote MySql /// database. /// </summary> /// <remarks> /// Migrates a local (in-app) MySql database to a remote MySql /// database. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='migrationRequestEnvelope'> /// MySql migration options. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Operation>> MigrateMySqlWithHttpMessagesAsync(string resourceGroupName, string name, MigrateMySqlRequest migrationRequestEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the status of MySql in app migration, if one is active, and /// whether or not MySql in app is enabled /// </summary> /// <remarks> /// Returns the status of MySql in app migration, if one is active, and /// whether or not MySql in app is enabled /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MigrateMySqlStatus>> GetMigrateMySqlStatusWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a Swift Virtual Network connection. /// </summary> /// <remarks> /// Gets a Swift Virtual Network connection. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> GetSwiftVirtualNetworkConnectionWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </summary> /// <remarks> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> CreateOrUpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync(string resourceGroupName, string name, SwiftVirtualNetwork connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a Swift Virtual Network connection from an app (or /// deployment slot). /// </summary> /// <remarks> /// Deletes a Swift Virtual Network connection from an app (or /// deployment slot). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSwiftVirtualNetworkWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </summary> /// <remarks> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> UpdateSwiftVirtualNetworkConnectionWithHttpMessagesAsync(string resourceGroupName, string name, SwiftVirtualNetwork connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all network features used by the app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all network features used by the app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='view'> /// The type of view. This can either be "summary" or "detailed". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<NetworkFeatures>> ListNetworkFeaturesWithHttpMessagesAsync(string resourceGroupName, string name, string view, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTraceOperationWithHttpMessagesAsync(string resourceGroupName, string name, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site (To be deprecated). /// </summary> /// <remarks> /// Start capturing network packets for the site (To be deprecated). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<string>> StartWebSiteNetworkTraceWithHttpMessagesAsync(string resourceGroupName, string name, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> StartWebSiteNetworkTraceOperationWithHttpMessagesAsync(string resourceGroupName, string name, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop ongoing capturing network packets for the site. /// </summary> /// <remarks> /// Stop ongoing capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopWebSiteNetworkTraceWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTracesWithHttpMessagesAsync(string resourceGroupName, string name, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTraceOperationV2WithHttpMessagesAsync(string resourceGroupName, string name, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTracesV2WithHttpMessagesAsync(string resourceGroupName, string name, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Generates a new publishing password for an app (or deployment slot, /// if specified). /// </summary> /// <remarks> /// Generates a new publishing password for an app (or deployment slot, /// if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> GenerateNewSitePublishingPasswordWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets perfmon counters for web app. /// </summary> /// <remarks> /// Gets perfmon counters for web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='filter'> /// Return only usages/metrics specified in the filter. Filter conforms /// to odata syntax. Example: $filter=(startTime eq /// 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and /// timeGrain eq duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PerfMonResponse>>> ListPerfMonCountersWithHttpMessagesAsync(string resourceGroupName, string name, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets web app's event logs. /// </summary> /// <remarks> /// Gets web app's event logs. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SitePhpErrorLogFlag>> GetSitePhpErrorLogFlagWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the premier add-ons of an app. /// </summary> /// <remarks> /// Gets the premier add-ons of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> ListPremierAddOnsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named add-on of an app. /// </summary> /// <remarks> /// Gets a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> GetPremierAddOnWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates a named add-on of an app. /// </summary> /// <remarks> /// Updates a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='premierAddOn'> /// A JSON representation of the edited premier add-on. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> AddPremierAddOnWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, PremierAddOn premierAddOn, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a premier add-on from an app. /// </summary> /// <remarks> /// Delete a premier add-on from an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeletePremierAddOnWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates a named add-on of an app. /// </summary> /// <remarks> /// Updates a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='premierAddOn'> /// A JSON representation of the edited premier add-on. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> UpdatePremierAddOnWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, PremierAddOnPatchResource premierAddOn, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </summary> /// <remarks> /// Gets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PrivateAccess>> GetPrivateAccessWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Sets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </summary> /// <remarks> /// Sets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='access'> /// The information for the private access /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PrivateAccess>> PutPrivateAccessVnetWithHttpMessagesAsync(string resourceGroupName, string name, PrivateAccess access, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListProcessesWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessInfo>> GetProcessWithHttpMessagesAsync(string resourceGroupName, string name, string processId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteProcessWithHttpMessagesAsync(string resourceGroupName, string name, string processId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetProcessDumpWithHttpMessagesAsync(string resourceGroupName, string name, string processId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListProcessModulesWithHttpMessagesAsync(string resourceGroupName, string name, string processId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='baseAddress'> /// Module base address. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessModuleInfo>> GetProcessModuleWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string baseAddress, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListProcessThreadsWithHttpMessagesAsync(string resourceGroupName, string name, string processId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='threadId'> /// TID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessThreadInfo>> GetProcessThreadWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string threadId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get public certificates for an app or a deployment slot. /// </summary> /// <remarks> /// Get public certificates for an app or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PublicCertificate>>> ListPublicCertificatesWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the named public certificate for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Get the named public certificate for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PublicCertificate>> GetPublicCertificateWithHttpMessagesAsync(string resourceGroupName, string name, string publicCertificateName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a hostname binding for an app. /// </summary> /// <remarks> /// Creates a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='publicCertificate'> /// Public certificate details. This is the JSON representation of a /// PublicCertificate object. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PublicCertificate>> CreateOrUpdatePublicCertificateWithHttpMessagesAsync(string resourceGroupName, string name, string publicCertificateName, PublicCertificate publicCertificate, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a hostname binding for an app. /// </summary> /// <remarks> /// Deletes a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeletePublicCertificateWithHttpMessagesAsync(string resourceGroupName, string name, string publicCertificateName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the publishing profile for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the publishing profile for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publishingProfileOptions'> /// Specifies publishingProfileOptions for publishing profile. For /// example, use {"format": "FileZilla3"} to get a FileZilla publishing /// profile. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> ListPublishingProfileXmlWithSecretsWithHttpMessagesAsync(string resourceGroupName, string name, CsmPublishingProfileOptions publishingProfileOptions, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Resets the configuration settings of the current slot if they were /// previously modified by calling the API with POST. /// </summary> /// <remarks> /// Resets the configuration settings of the current slot if they were /// previously modified by calling the API with POST. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> ResetProductionSlotConfigWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restarts an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Restarts an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='softRestart'> /// Specify true to apply the configuration settings and restarts the /// app only if necessary. By default, the API always restarts and /// reprovisions the app. /// </param> /// <param name='synchronous'> /// Specify true to block until the app is restarted. By default, it is /// set to false, and the API responds immediately (asynchronous). /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestartWithHttpMessagesAsync(string resourceGroupName, string name, bool? softRestart = default(bool?), bool? synchronous = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores an app from a backup blob in Azure Storage. /// </summary> /// <remarks> /// Restores an app from a backup blob in Azure Storage. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreFromBackupBlobWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a deleted web app to this web app. /// </summary> /// <remarks> /// Restores a deleted web app to this web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Deleted web app restore information. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreFromDeletedAppWithHttpMessagesAsync(string resourceGroupName, string name, DeletedAppRestoreRequest restoreRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app from a snapshot. /// </summary> /// <remarks> /// Restores a web app from a snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Snapshot restore settings. Snapshot information can be obtained by /// calling GetDeletedSites or GetSiteSnapshots API. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreSnapshotWithHttpMessagesAsync(string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of siteextensions for a web site, or a deployment slot. /// </summary> /// <remarks> /// Get list of siteextensions for a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteExtensionInfo>>> ListSiteExtensionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get site extension information by its ID for a web site, or a /// deployment slot. /// </summary> /// <remarks> /// Get site extension information by its ID for a web site, or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> GetSiteExtensionWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Install site extension on a web site, or a deployment slot. /// </summary> /// <remarks> /// Install site extension on a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> InstallSiteExtensionWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Remove a site extension from a web site, or a deployment slot. /// </summary> /// <remarks> /// Remove a site extension from a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSiteExtensionWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets an app's deployment slots. /// </summary> /// <remarks> /// Gets an app's deployment slots. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListSlotsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the details of a web, mobile, or API app. /// </summary> /// <remarks> /// Gets the details of a web, mobile, or API app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. By default, this API returns the /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> GetSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot to create or update. By default, this /// API attempts to create or modify the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> CreateOrUpdateSlotWithHttpMessagesAsync(string resourceGroupName, string name, Site siteEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a web, mobile, or API app, or one of the deployment slots. /// </summary> /// <remarks> /// Deletes a web, mobile, or API app, or one of the deployment slots. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app to delete. /// </param> /// <param name='slot'> /// Name of the deployment slot to delete. By default, the API deletes /// the production slot. /// </param> /// <param name='deleteMetrics'> /// If true, web app metrics are also deleted. /// </param> /// <param name='deleteEmptyServerFarm'> /// Specify true if the App Service plan will be empty after app /// deletion and you want to delete the empty App Service plan. By /// default, the empty App Service plan is not deleted. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, bool? deleteMetrics = default(bool?), bool? deleteEmptyServerFarm = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot to create or update. By default, this /// API attempts to create or modify the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> UpdateSlotWithHttpMessagesAsync(string resourceGroupName, string name, SitePatchResource siteEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Analyze a custom hostname. /// </summary> /// <remarks> /// Analyze a custom hostname. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='hostName'> /// Custom hostname. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<CustomHostnameAnalysisResult>> AnalyzeCustomHostnameSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string hostName = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Applies the configuration settings from the target slot onto the /// current slot. /// </summary> /// <remarks> /// Applies the configuration settings from the target slot onto the /// current slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='slot'> /// Name of the source slot. If a slot is not specified, the production /// slot is used as the source slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> ApplySlotConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a backup of an app. /// </summary> /// <remarks> /// Creates a backup of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Backup configuration. You can use the JSON response from the POST /// action as input here. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will create a backup for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> BackupSlotWithHttpMessagesAsync(string resourceGroupName, string name, BackupRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets existing backups of an app. /// </summary> /// <remarks> /// Gets existing backups of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get backups of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<BackupItem>>> ListBackupsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a backup of an app by its ID. /// </summary> /// <remarks> /// Gets a backup of an app by its ID. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> GetBackupStatusSlotWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a backup of an app by its ID. /// </summary> /// <remarks> /// Deletes a backup of an app by its ID. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteBackupSlotWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets status of a web app backup that may be in progress, including /// secrets associated with the backup, such as the Azure Storage SAS /// URL. Also can be used to update the SAS URL for the backup if a new /// URL is passed in the request body. /// </summary> /// <remarks> /// Gets status of a web app backup that may be in progress, including /// secrets associated with the backup, such as the Azure Storage SAS /// URL. Also can be used to update the SAS URL for the backup if a new /// URL is passed in the request body. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='backupId'> /// ID of backup. /// </param> /// <param name='request'> /// Information on backup request. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupItem>> ListBackupStatusSecretsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, BackupRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreSlotWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, RestoreRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the configurations of an app /// </summary> /// <remarks> /// List the configurations of an app /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will return configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigResource>>> ListConfigurationsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the application settings of an app. /// </summary> /// <remarks> /// Replaces the application settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='appSettings'> /// Application settings of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the application settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> UpdateApplicationSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, StringDictionary appSettings, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the application settings of an app. /// </summary> /// <remarks> /// Gets the application settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the application settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> ListApplicationSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Authentication / Authorization settings associated with /// web app. /// </summary> /// <remarks> /// Updates the Authentication / Authorization settings associated with /// web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='siteAuthSettings'> /// Auth settings associated with web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteAuthSettings>> UpdateAuthSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteAuthSettings siteAuthSettings, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Authentication/Authorization settings of an app. /// </summary> /// <remarks> /// Gets the Authentication/Authorization settings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteAuthSettings>> GetAuthSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Azure storage account configurations of an app. /// </summary> /// <remarks> /// Updates the Azure storage account configurations of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='azureStorageAccounts'> /// Azure storage accounts of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the Azure storage account configurations for the /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<AzureStoragePropertyDictionaryResource>> UpdateAzureStorageAccountsSlotWithHttpMessagesAsync(string resourceGroupName, string name, AzureStoragePropertyDictionaryResource azureStorageAccounts, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Azure storage account configurations of an app. /// </summary> /// <remarks> /// Gets the Azure storage account configurations of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the Azure storage account configurations for the /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<AzureStoragePropertyDictionaryResource>> ListAzureStorageAccountsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the backup configuration of an app. /// </summary> /// <remarks> /// Updates the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Edited backup configuration. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the backup configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupRequest>> UpdateBackupConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, BackupRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes the backup configuration of an app. /// </summary> /// <remarks> /// Deletes the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the backup configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteBackupConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the backup configuration of an app. /// </summary> /// <remarks> /// Gets the backup configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the backup configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<BackupRequest>> GetBackupConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the connection strings of an app. /// </summary> /// <remarks> /// Replaces the connection strings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionStrings'> /// Connection strings of the app or deployment slot. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the connection settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ConnectionStringDictionary>> UpdateConnectionStringsSlotWithHttpMessagesAsync(string resourceGroupName, string name, ConnectionStringDictionary connectionStrings, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the connection strings of an app. /// </summary> /// <remarks> /// Gets the connection strings of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the connection settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ConnectionStringDictionary>> ListConnectionStringsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the logging configuration of an app. /// </summary> /// <remarks> /// Gets the logging configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the logging configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteLogsConfig>> GetDiagnosticLogsConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the logging configuration of an app. /// </summary> /// <remarks> /// Updates the logging configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteLogsConfig'> /// A SiteLogsConfig JSON object that contains the logging /// configuration to change in the "properties" property. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the logging configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteLogsConfig>> UpdateDiagnosticLogsConfigSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteLogsConfig siteLogsConfig, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Replaces the metadata of an app. /// </summary> /// <remarks> /// Replaces the metadata of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='metadata'> /// Edited metadata of the app or deployment slot. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the metadata for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> UpdateMetadataSlotWithHttpMessagesAsync(string resourceGroupName, string name, StringDictionary metadata, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the metadata of an app. /// </summary> /// <remarks> /// Gets the metadata of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the metadata for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StringDictionary>> ListMetadataSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Git/FTP publishing credentials of an app. /// </summary> /// <remarks> /// Gets the Git/FTP publishing credentials of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the publishing credentials for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<User>> ListPublishingCredentialsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the Push settings associated with web app. /// </summary> /// <remarks> /// Updates the Push settings associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='pushSettings'> /// Push settings associated with web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PushSettings>> UpdateSitePushSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, PushSettings pushSettings, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Push settings associated with web app. /// </summary> /// <remarks> /// Gets the Push settings associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PushSettings>> ListSitePushSettingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the configuration of an app, such as platform version and /// bitness, default documents, virtual applications, Always On, etc. /// </summary> /// <remarks> /// Gets the configuration of an app, such as platform version and /// bitness, default documents, virtual applications, Always On, etc. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will return configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> GetConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the configuration of an app. /// </summary> /// <remarks> /// Updates the configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteConfig'> /// JSON representation of a SiteConfig object. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> CreateOrUpdateConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteConfigResource siteConfig, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the configuration of an app. /// </summary> /// <remarks> /// Updates the configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteConfig'> /// JSON representation of a SiteConfig object. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> UpdateConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteConfigResource siteConfig, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </summary> /// <remarks> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will return configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigurationSnapshotInfo>>> ListConfigurationSnapshotInfoSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a snapshot of the configuration of an app at a previous point /// in time. /// </summary> /// <remarks> /// Gets a snapshot of the configuration of an app at a previous point /// in time. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='snapshotId'> /// The ID of the snapshot to read. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will return configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteConfigResource>> GetConfigurationSnapshotSlotWithHttpMessagesAsync(string resourceGroupName, string name, string snapshotId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Reverts the configuration of an app to a previous snapshot. /// </summary> /// <remarks> /// Reverts the configuration of an app to a previous snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='snapshotId'> /// The ID of the snapshot to read. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will return configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RecoverSiteConfigurationSnapshotSlotWithHttpMessagesAsync(string resourceGroupName, string name, string snapshotId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the last lines of docker logs for the given site /// </summary> /// <remarks> /// Gets the last lines of docker logs for the given site /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetWebSiteContainerLogsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the ZIP archived docker log files for the given site /// </summary> /// <remarks> /// Gets the ZIP archived docker log files for the given site /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetContainerLogsZipSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List continuous web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List continuous web jobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ContinuousWebJob>>> ListContinuousWebJobsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a continuous web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Gets a continuous web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ContinuousWebJob>> GetContinuousWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a continuous web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Delete a continuous web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteContinuousWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start a continuous web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Start a continuous web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StartContinuousWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop a continuous web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Stop a continuous web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopContinuousWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployments for an app, or a deployment slot. /// </summary> /// <remarks> /// List deployments for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Deployment>>> ListDeploymentsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a deployment by its ID for an app, or a deployment slot. /// </summary> /// <remarks> /// Get a deployment by its ID for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// Deployment ID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// gets a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> GetDeploymentSlotWithHttpMessagesAsync(string resourceGroupName, string name, string id, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create a deployment for an app, or a deployment slot. /// </summary> /// <remarks> /// Create a deployment for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// ID of an existing deployment. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// creates a deployment for the production slot. /// </param> /// <param name='deployment'> /// Deployment details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> CreateDeploymentSlotWithHttpMessagesAsync(string resourceGroupName, string name, string id, string slot, Deployment deployment, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a deployment by its ID for an app, or a deployment slot. /// </summary> /// <remarks> /// Delete a deployment by its ID for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// Deployment ID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteDeploymentSlotWithHttpMessagesAsync(string resourceGroupName, string name, string id, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployment log for specific deployment for an app, or a /// deployment slot. /// </summary> /// <remarks> /// List deployment log for specific deployment for an app, or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='id'> /// The ID of a specific deployment. This is the value of the name /// property in the JSON response from "GET /// /api/sites/{siteName}/deployments". /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Deployment>> ListDeploymentLogSlotWithHttpMessagesAsync(string resourceGroupName, string name, string id, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Discovers an existing app backup that can be restored from a blob /// in Azure storage. Use this to get information about the databases /// stored in a backup. /// </summary> /// <remarks> /// Discovers an existing app backup that can be restored from a blob /// in Azure storage. Use this to get information about the databases /// stored in a backup. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// A RestoreRequest object that includes Azure storage URL and blog /// name for discovery of backup. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will perform discovery for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RestoreRequest>> DiscoverBackupSlotWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists ownership identifiers for domain associated with web app. /// </summary> /// <remarks> /// Lists ownership identifiers for domain associated with web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Identifier>>> ListDomainOwnershipIdentifiersSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get domain ownership identifier for web app. /// </summary> /// <remarks> /// Get domain ownership identifier for web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> GetDomainOwnershipIdentifierSlotWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </summary> /// <remarks> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> CreateOrUpdateDomainOwnershipIdentifierSlotWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Identifier domainOwnershipIdentifier, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a domain ownership identifier for a web app. /// </summary> /// <remarks> /// Deletes a domain ownership identifier for a web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteDomainOwnershipIdentifierSlotWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </summary> /// <remarks> /// Creates a domain ownership identifier for web app, or updates an /// existing ownership identifier. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='domainOwnershipIdentifierName'> /// Name of domain ownership identifier. /// </param> /// <param name='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Identifier>> UpdateDomainOwnershipIdentifierSlotWithHttpMessagesAsync(string resourceGroupName, string name, string domainOwnershipIdentifierName, Identifier domainOwnershipIdentifier, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the status of the last MSDeploy operation. /// </summary> /// <remarks> /// Get the status of the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> GetMSDeployStatusSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> CreateMSDeployOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the MSDeploy Log for the last MSDeploy operation. /// </summary> /// <remarks> /// Get the MSDeploy Log for the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployLog>> GetMSDeployLogSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the functions for a web site, or a deployment slot. /// </summary> /// <remarks> /// List the functions for a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<FunctionEnvelope>>> ListInstanceFunctionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Fetch a short lived token that can be exchanged for a master key. /// </summary> /// <remarks> /// Fetch a short lived token that can be exchanged for a master key. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<string>> GetFunctionsAdminTokenSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get function information by its ID for web site, or a deployment /// slot. /// </summary> /// <remarks> /// Get function information by its ID for web site, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> GetInstanceFunctionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create function for web site, or a deployment slot. /// </summary> /// <remarks> /// Create function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='functionEnvelope'> /// Function details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> CreateInstanceFunctionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, string slot, FunctionEnvelope functionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a function for web site, or a deployment slot. /// </summary> /// <remarks> /// Delete a function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteInstanceFunctionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get function secrets for a function in a web site, or a deployment /// slot. /// </summary> /// <remarks> /// Get function secrets for a function in a web site, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionSecrets>> ListFunctionSecretsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get hostname bindings for an app or a deployment slot. /// </summary> /// <remarks> /// Get hostname bindings for an app or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// gets hostname bindings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<HostNameBinding>>> ListHostNameBindingsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the named hostname binding for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Get the named hostname binding for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// the named binding for the production slot. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HostNameBinding>> GetHostNameBindingSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string hostName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a hostname binding for an app. /// </summary> /// <remarks> /// Creates a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='hostNameBinding'> /// Binding details. This is the JSON representation of a /// HostNameBinding object. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will create a binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HostNameBinding>> CreateOrUpdateHostNameBindingSlotWithHttpMessagesAsync(string resourceGroupName, string name, string hostName, HostNameBinding hostNameBinding, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a hostname binding for an app. /// </summary> /// <remarks> /// Deletes a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='hostName'> /// Hostname in the hostname binding. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteHostNameBindingSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string hostName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves a specific Service Bus Hybrid Connection used by this Web /// App. /// </summary> /// <remarks> /// Retrieves a specific Service Bus Hybrid Connection used by this Web /// App. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> GetHybridConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new Hybrid Connection using a Service Bus relay. /// </summary> /// <remarks> /// Creates a new Hybrid Connection using a Service Bus relay. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='connectionEnvelope'> /// The details of the hybrid connection. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> CreateOrUpdateHybridConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, HybridConnection connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Removes a Hybrid Connection from this site. /// </summary> /// <remarks> /// Removes a Hybrid Connection from this site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteHybridConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new Hybrid Connection using a Service Bus relay. /// </summary> /// <remarks> /// Creates a new Hybrid Connection using a Service Bus relay. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='connectionEnvelope'> /// The details of the hybrid connection. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> UpdateHybridConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, HybridConnection connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the send key name and value for a Hybrid Connection. /// </summary> /// <remarks> /// Gets the send key name and value for a Hybrid Connection. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='namespaceName'> /// The namespace for this hybrid connection. /// </param> /// <param name='relayName'> /// The relay name for this hybrid connection. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnectionKey>> ListHybridConnectionKeysSlotWithHttpMessagesAsync(string resourceGroupName, string name, string namespaceName, string relayName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves all Service Bus Hybrid Connections used by this Web App. /// </summary> /// <remarks> /// Retrieves all Service Bus Hybrid Connections used by this Web App. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<HybridConnection>> ListHybridConnectionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets hybrid connections configured for an app (or deployment slot, /// if specified). /// </summary> /// <remarks> /// Gets hybrid connections configured for an app (or deployment slot, /// if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get hybrid connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> ListRelayServiceConnectionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a hybrid connection configuration by its name. /// </summary> /// <remarks> /// Gets a hybrid connection configuration by its name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get a hybrid connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> GetRelayServiceConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </summary> /// <remarks> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='connectionEnvelope'> /// Details of the hybrid connection configuration. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will create or update a hybrid connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> CreateOrUpdateRelayServiceConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, RelayServiceConnectionEntity connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a relay service connection by its name. /// </summary> /// <remarks> /// Deletes a relay service connection by its name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete a hybrid connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteRelayServiceConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </summary> /// <remarks> /// Creates a new hybrid connection configuration (PUT), or updates an /// existing one (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='entityName'> /// Name of the hybrid connection configuration. /// </param> /// <param name='connectionEnvelope'> /// Details of the hybrid connection configuration. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will create or update a hybrid connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<RelayServiceConnectionEntity>> UpdateRelayServiceConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string entityName, RelayServiceConnectionEntity connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all scale-out instances of an app. /// </summary> /// <remarks> /// Gets all scale-out instances of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// gets the production slot instances. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteInstance>>> ListInstanceIdentifiersSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the status of the last MSDeploy operation. /// </summary> /// <remarks> /// Get the status of the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> GetInstanceMsDeployStatusSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> CreateInstanceMSDeployOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string instanceId, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the MSDeploy Log for the last MSDeploy operation. /// </summary> /// <remarks> /// Get the MSDeploy Log for the last MSDeploy operation. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployLog>> GetInstanceMSDeployLogSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListInstanceProcessesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessInfo>> GetInstanceProcessSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteInstanceProcessSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetInstanceProcessDumpSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListInstanceProcessModulesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='baseAddress'> /// Module base address. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessModuleInfo>> GetInstanceProcessModuleSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string baseAddress, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListInstanceProcessThreadsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='threadId'> /// TID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='instanceId'> /// ID of a specific scaled-out instance. This is the value of the name /// property in the JSON response from "GET /// api/sites/{siteName}/instances". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessThreadInfo>> GetInstanceProcessThreadSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string threadId, string slot, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Shows whether an app can be cloned to another resource group or /// subscription. /// </summary> /// <remarks> /// Shows whether an app can be cloned to another resource group or /// subscription. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. By default, this API returns /// information on the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteCloneability>> IsCloneableSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is to allow calling via powershell and ARM template. /// </summary> /// <remarks> /// This is to allow calling via powershell and ARM template. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionSecrets>> ListSyncFunctionTriggersSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get metric definitions of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetricDefinition>>> ListMetricDefinitionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get metrics of the production slot. /// </param> /// <param name='details'> /// Specify "true" to include metric details in the response. It is /// "false" by default. /// </param> /// <param name='filter'> /// Return only metrics specified in the filter (using OData syntax). /// For example: $filter=(name.value eq 'Metric1' or name.value eq /// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq /// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetric>>> ListMetricsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, bool? details = default(bool?), string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the status of MySql in app migration, if one is active, and /// whether or not MySql in app is enabled /// </summary> /// <remarks> /// Returns the status of MySql in app migration, if one is active, and /// whether or not MySql in app is enabled /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of the deployment slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MigrateMySqlStatus>> GetMigrateMySqlStatusSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a Swift Virtual Network connection. /// </summary> /// <remarks> /// Gets a Swift Virtual Network connection. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get a gateway for the production slot's Virtual Network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> GetSwiftVirtualNetworkConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </summary> /// <remarks> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> CreateOrUpdateSwiftVirtualNetworkConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, SwiftVirtualNetwork connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a Swift Virtual Network connection from an app (or /// deployment slot). /// </summary> /// <remarks> /// Deletes a Swift Virtual Network connection from an app (or /// deployment slot). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSwiftVirtualNetworkSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </summary> /// <remarks> /// Integrates this Web App with a Virtual Network. This requires that /// 1) "swiftSupported" is true when doing a GET against this resource, /// and 2) that the target Subnet has already been delegated, and is /// not /// in use by another App Service Plan other than the one this App is /// in. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SwiftVirtualNetwork>> UpdateSwiftVirtualNetworkConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, SwiftVirtualNetwork connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all network features used by the app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all network features used by the app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='view'> /// The type of view. This can either be "summary" or "detailed". /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get network features for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<NetworkFeatures>> ListNetworkFeaturesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string view, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get an operation for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTraceOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string operationId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site (To be deprecated). /// </summary> /// <remarks> /// Start capturing network packets for the site (To be deprecated). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<string>> StartWebSiteNetworkTraceSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> StartWebSiteNetworkTraceOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop ongoing capturing network packets for the site. /// </summary> /// <remarks> /// Stop ongoing capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopWebSiteNetworkTraceSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get an operation for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTracesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string operationId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get an operation for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTraceOperationSlotV2WithHttpMessagesAsync(string resourceGroupName, string name, string operationId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </summary> /// <remarks> /// Gets a named operation for a network trace capturing (or deployment /// slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='operationId'> /// GUID of the operation. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get an operation for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> GetNetworkTracesSlotV2WithHttpMessagesAsync(string resourceGroupName, string name, string operationId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Generates a new publishing password for an app (or deployment slot, /// if specified). /// </summary> /// <remarks> /// Generates a new publishing password for an app (or deployment slot, /// if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// generate a new publishing password for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> GenerateNewSitePublishingPasswordSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets perfmon counters for web app. /// </summary> /// <remarks> /// Gets perfmon counters for web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='filter'> /// Return only usages/metrics specified in the filter. Filter conforms /// to odata syntax. Example: $filter=(startTime eq /// 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and /// timeGrain eq duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PerfMonResponse>>> ListPerfMonCountersSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets web app's event logs. /// </summary> /// <remarks> /// Gets web app's event logs. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SitePhpErrorLogFlag>> GetSitePhpErrorLogFlagSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the premier add-ons of an app. /// </summary> /// <remarks> /// Gets the premier add-ons of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the premier add-ons for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> ListPremierAddOnsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a named add-on of an app. /// </summary> /// <remarks> /// Gets a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the named add-on for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> GetPremierAddOnSlotWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates a named add-on of an app. /// </summary> /// <remarks> /// Updates a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='premierAddOn'> /// A JSON representation of the edited premier add-on. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the named add-on for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> AddPremierAddOnSlotWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, PremierAddOn premierAddOn, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a premier add-on from an app. /// </summary> /// <remarks> /// Delete a premier add-on from an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the named add-on for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeletePremierAddOnSlotWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates a named add-on of an app. /// </summary> /// <remarks> /// Updates a named add-on of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='premierAddOnName'> /// Add-on name. /// </param> /// <param name='premierAddOn'> /// A JSON representation of the edited premier add-on. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the named add-on for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PremierAddOn>> UpdatePremierAddOnSlotWithHttpMessagesAsync(string resourceGroupName, string name, string premierAddOnName, PremierAddOnPatchResource premierAddOn, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </summary> /// <remarks> /// Gets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PrivateAccess>> GetPrivateAccessSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Sets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </summary> /// <remarks> /// Sets data around private site access enablement and authorized /// Virtual Networks that can access the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='access'> /// The information for the private access /// </param> /// <param name='slot'> /// The name of the slot for the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PrivateAccess>> PutPrivateAccessVnetSlotWithHttpMessagesAsync(string resourceGroupName, string name, PrivateAccess access, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListProcessesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessInfo>> GetProcessSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Terminate a process by its ID for a web site, or a deployment slot, /// or specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteProcessSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get a memory dump of a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> GetProcessDumpSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListProcessModulesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// Get process information by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='baseAddress'> /// Module base address. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessModuleInfo>> GetProcessModuleSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string baseAddress, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListProcessThreadsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get thread information by Thread ID for a specific process, in a /// specific scaled-out instance in a web site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='processId'> /// PID. /// </param> /// <param name='threadId'> /// TID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<ProcessThreadInfo>> GetProcessThreadSlotWithHttpMessagesAsync(string resourceGroupName, string name, string processId, string threadId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get public certificates for an app or a deployment slot. /// </summary> /// <remarks> /// Get public certificates for an app or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// gets hostname bindings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PublicCertificate>>> ListPublicCertificatesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the named public certificate for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Get the named public certificate for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// the named binding for the production slot. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PublicCertificate>> GetPublicCertificateSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string publicCertificateName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a hostname binding for an app. /// </summary> /// <remarks> /// Creates a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='publicCertificate'> /// Public certificate details. This is the JSON representation of a /// PublicCertificate object. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will create a binding for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<PublicCertificate>> CreateOrUpdatePublicCertificateSlotWithHttpMessagesAsync(string resourceGroupName, string name, string publicCertificateName, PublicCertificate publicCertificate, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a hostname binding for an app. /// </summary> /// <remarks> /// Deletes a hostname binding for an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the binding for the production slot. /// </param> /// <param name='publicCertificateName'> /// Public certificate name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeletePublicCertificateSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string publicCertificateName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the publishing profile for an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the publishing profile for an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='publishingProfileOptions'> /// Specifies publishingProfileOptions for publishing profile. For /// example, use {"format": "FileZilla3"} to get a FileZilla publishing /// profile. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the publishing profile for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Stream>> ListPublishingProfileXmlWithSecretsSlotWithHttpMessagesAsync(string resourceGroupName, string name, CsmPublishingProfileOptions publishingProfileOptions, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Resets the configuration settings of the current slot if they were /// previously modified by calling the API with POST. /// </summary> /// <remarks> /// Resets the configuration settings of the current slot if they were /// previously modified by calling the API with POST. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// resets configuration settings for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> ResetSlotConfigurationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restarts an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Restarts an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restart the production slot. /// </param> /// <param name='softRestart'> /// Specify true to apply the configuration settings and restarts the /// app only if necessary. By default, the API always restarts and /// reprovisions the app. /// </param> /// <param name='synchronous'> /// Specify true to block until the app is restarted. By default, it is /// set to false, and the API responds immediately (asynchronous). /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestartSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, bool? softRestart = default(bool?), bool? synchronous = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores an app from a backup blob in Azure Storage. /// </summary> /// <remarks> /// Restores an app from a backup blob in Azure Storage. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreFromBackupBlobSlotWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a deleted web app to this web app. /// </summary> /// <remarks> /// Restores a deleted web app to this web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Deleted web app restore information. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreFromDeletedAppSlotWithHttpMessagesAsync(string resourceGroupName, string name, DeletedAppRestoreRequest restoreRequest, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app from a snapshot. /// </summary> /// <remarks> /// Restores a web app from a snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Snapshot restore settings. Snapshot information can be obtained by /// calling GetDeletedSites or GetSiteSnapshots API. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RestoreSnapshotSlotWithHttpMessagesAsync(string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of siteextensions for a web site, or a deployment slot. /// </summary> /// <remarks> /// Get list of siteextensions for a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteExtensionInfo>>> ListSiteExtensionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get site extension information by its ID for a web site, or a /// deployment slot. /// </summary> /// <remarks> /// Get site extension information by its ID for a web site, or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> GetSiteExtensionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Install site extension on a web site, or a deployment slot. /// </summary> /// <remarks> /// Install site extension on a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> InstallSiteExtensionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Remove a site extension from a web site, or a deployment slot. /// </summary> /// <remarks> /// Remove a site extension from a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSiteExtensionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the difference in configuration settings between two web app /// slots. /// </summary> /// <remarks> /// Get the difference in configuration settings between two web app /// slots. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='slot'> /// Name of the source slot. If a slot is not specified, the production /// slot is used as the source slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SlotDifference>>> ListSlotDifferencesSlotWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Swaps two deployment slots of an app. /// </summary> /// <remarks> /// Swaps two deployment slots of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='slot'> /// Name of the source slot. If a slot is not specified, the production /// slot is used as the source slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SwapSlotSlotWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user. /// </summary> /// <remarks> /// Returns all Snapshots to the user. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Website Name. /// </param> /// <param name='slot'> /// Website Slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </summary> /// <remarks> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Website Name. /// </param> /// <param name='slot'> /// Website Slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsFromDRSecondarySlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the source control configuration of an app. /// </summary> /// <remarks> /// Gets the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the source control configuration for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> GetSourceControlSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the source control configuration for the production /// slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> CreateOrUpdateSourceControlSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes the source control configuration of an app. /// </summary> /// <remarks> /// Deletes the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the source control configuration for the production /// slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSourceControlSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the source control configuration for the production /// slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> UpdateSourceControlSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Starts an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Starts an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will start the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StartSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> StartNetworkTraceSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stops an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Stops an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will stop the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop ongoing capturing network packets for the site. /// </summary> /// <remarks> /// Stop ongoing capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopNetworkTraceSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Sync web app repository. /// </summary> /// <remarks> /// Sync web app repository. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SyncRepositorySlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Syncs function trigger metadata to the scale controller /// </summary> /// <remarks> /// Syncs function trigger metadata to the scale controller /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SyncFunctionTriggersSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List triggered web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List triggered web jobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredWebJob>>> ListTriggeredWebJobsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a triggered web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Gets a triggered web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<TriggeredWebJob>> GetTriggeredWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a triggered web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Delete a triggered web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteTriggeredWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List a triggered web job's history for an app, or a deployment /// slot. /// </summary> /// <remarks> /// List a triggered web job's history for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredJobHistory>>> ListTriggeredWebJobHistorySlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a triggered web job's history by its ID for an app, , or a /// deployment slot. /// </summary> /// <remarks> /// Gets a triggered web job's history by its ID for an app, , or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='id'> /// History ID. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<TriggeredJobHistory>> GetTriggeredWebJobHistorySlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string id, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Run a triggered web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Run a triggered web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RunTriggeredWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get quota information of the production slot. /// </param> /// <param name='filter'> /// Return only information specified in the filter (using OData /// syntax). For example: $filter=(name.value eq 'Metric1' or /// name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and /// endTime eq 2014-12-31T23:59:59Z and timeGrain eq /// duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<CsmUsageQuota>>> ListUsagesSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the virtual networks the app (or deployment slot) is connected /// to. /// </summary> /// <remarks> /// Gets the virtual networks the app (or deployment slot) is connected /// to. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get virtual network connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<VnetInfo>>> ListVnetConnectionsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a virtual network the app (or deployment slot) is connected to /// by name. /// </summary> /// <remarks> /// Gets a virtual network the app (or deployment slot) is connected to /// by name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the virtual network. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the named virtual network for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> GetVnetConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </summary> /// <remarks> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of an existing Virtual Network. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> CreateOrUpdateVnetConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, VnetInfo connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a connection from an app (or deployment slot to a named /// virtual network. /// </summary> /// <remarks> /// Deletes a connection from an app (or deployment slot to a named /// virtual network. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the virtual network. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will delete the connection for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteVnetConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </summary> /// <remarks> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of an existing Virtual Network. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update connections for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> UpdateVnetConnectionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, VnetInfo connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets an app's Virtual Network gateway. /// </summary> /// <remarks> /// Gets an app's Virtual Network gateway. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get a gateway for the production slot's Virtual Network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> GetVnetConnectionGatewaySlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </summary> /// <remarks> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='connectionEnvelope'> /// The properties to update this gateway with. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update a gateway for the production slot's Virtual /// Network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> CreateOrUpdateVnetConnectionGatewaySlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, VnetGateway connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </summary> /// <remarks> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='connectionEnvelope'> /// The properties to update this gateway with. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will add or update a gateway for the production slot's Virtual /// Network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> UpdateVnetConnectionGatewaySlotWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, VnetGateway connectionEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List webjobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List webjobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<WebJob>>> ListWebJobsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get webjob information for an app, or a deployment slot. /// </summary> /// <remarks> /// Get webjob information for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of the web job. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// returns deployments for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<WebJob>> GetWebJobSlotWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the difference in configuration settings between two web app /// slots. /// </summary> /// <remarks> /// Get the difference in configuration settings between two web app /// slots. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SlotDifference>>> ListSlotDifferencesFromProductionWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Swaps two deployment slots of an app. /// </summary> /// <remarks> /// Swaps two deployment slots of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SwapSlotWithProductionWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user. /// </summary> /// <remarks> /// Returns all Snapshots to the user. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Website Name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </summary> /// <remarks> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Website Name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsFromDRSecondaryWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the source control configuration of an app. /// </summary> /// <remarks> /// Gets the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> GetSourceControlWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> CreateOrUpdateSourceControlWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes the source control configuration of an app. /// </summary> /// <remarks> /// Deletes the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteSourceControlWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> UpdateSourceControlWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Starts an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Starts an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StartWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> StartNetworkTraceWithHttpMessagesAsync(string resourceGroupName, string name, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stops an app (or deployment slot, if specified). /// </summary> /// <remarks> /// Stops an app (or deployment slot, if specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Stop ongoing capturing network packets for the site. /// </summary> /// <remarks> /// Stop ongoing capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> StopNetworkTraceWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Sync web app repository. /// </summary> /// <remarks> /// Sync web app repository. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SyncRepositoryWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Syncs function trigger metadata to the scale controller /// </summary> /// <remarks> /// Syncs function trigger metadata to the scale controller /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> SyncFunctionTriggersWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List triggered web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List triggered web jobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredWebJob>>> ListTriggeredWebJobsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a triggered web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Gets a triggered web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<TriggeredWebJob>> GetTriggeredWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Delete a triggered web job by its ID for an app, or a deployment /// slot. /// </summary> /// <remarks> /// Delete a triggered web job by its ID for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteTriggeredWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List a triggered web job's history for an app, or a deployment /// slot. /// </summary> /// <remarks> /// List a triggered web job's history for an app, or a deployment /// slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredJobHistory>>> ListTriggeredWebJobHistoryWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a triggered web job's history by its ID for an app, , or a /// deployment slot. /// </summary> /// <remarks> /// Gets a triggered web job's history by its ID for an app, , or a /// deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='id'> /// History ID. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<TriggeredJobHistory>> GetTriggeredWebJobHistoryWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, string id, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Run a triggered web job for an app, or a deployment slot. /// </summary> /// <remarks> /// Run a triggered web job for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of Web Job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> RunTriggeredWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='filter'> /// Return only information specified in the filter (using OData /// syntax). For example: $filter=(name.value eq 'Metric1' or /// name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and /// endTime eq 2014-12-31T23:59:59Z and timeGrain eq /// duration'[Hour|Minute|Day]'. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<CsmUsageQuota>>> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string name, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the virtual networks the app (or deployment slot) is connected /// to. /// </summary> /// <remarks> /// Gets the virtual networks the app (or deployment slot) is connected /// to. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<VnetInfo>>> ListVnetConnectionsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a virtual network the app (or deployment slot) is connected to /// by name. /// </summary> /// <remarks> /// Gets a virtual network the app (or deployment slot) is connected to /// by name. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the virtual network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> GetVnetConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </summary> /// <remarks> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of an existing Virtual Network. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> CreateOrUpdateVnetConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, VnetInfo connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a connection from an app (or deployment slot to a named /// virtual network. /// </summary> /// <remarks> /// Deletes a connection from an app (or deployment slot to a named /// virtual network. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the virtual network. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> DeleteVnetConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </summary> /// <remarks> /// Adds a Virtual Network connection to an app or slot (PUT) or /// updates the connection properties (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of an existing Virtual Network. /// </param> /// <param name='connectionEnvelope'> /// Properties of the Virtual Network connection. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetInfo>> UpdateVnetConnectionWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, VnetInfo connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets an app's Virtual Network gateway. /// </summary> /// <remarks> /// Gets an app's Virtual Network gateway. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> GetVnetConnectionGatewayWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </summary> /// <remarks> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='connectionEnvelope'> /// The properties to update this gateway with. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> CreateOrUpdateVnetConnectionGatewayWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, VnetGateway connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </summary> /// <remarks> /// Adds a gateway to a connected Virtual Network (PUT) or updates it /// (PATCH). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='vnetName'> /// Name of the Virtual Network. /// </param> /// <param name='gatewayName'> /// Name of the gateway. Currently, the only supported string is /// "primary". /// </param> /// <param name='connectionEnvelope'> /// The properties to update this gateway with. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<VnetGateway>> UpdateVnetConnectionGatewayWithHttpMessagesAsync(string resourceGroupName, string name, string vnetName, string gatewayName, VnetGateway connectionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List webjobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List webjobs for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<WebJob>>> ListWebJobsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get webjob information for an app, or a deployment slot. /// </summary> /// <remarks> /// Get webjob information for an app, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='webJobName'> /// Name of the web job. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<WebJob>> GetWebJobWithHttpMessagesAsync(string resourceGroupName, string name, string webJobName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string name, Site siteEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, RestoreRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Git/FTP publishing credentials of an app. /// </summary> /// <remarks> /// Gets the Git/FTP publishing credentials of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<User>> BeginListPublishingCredentialsWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> BeginCreateMSDeployOperationWithHttpMessagesAsync(string resourceGroupName, string name, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create function for web site, or a deployment slot. /// </summary> /// <remarks> /// Create function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='functionEnvelope'> /// Function details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> BeginCreateFunctionWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, FunctionEnvelope functionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> BeginCreateInstanceMSDeployOperationWithHttpMessagesAsync(string resourceGroupName, string name, string instanceId, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app. /// </summary> /// <remarks> /// Restores a web app. /// </remarks> /// <param name='subscriptionName'> /// Azure subscription. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='migrationOptions'> /// Migration migrationOptions. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<StorageMigrationResponse>> BeginMigrateStorageWithHttpMessagesAsync(string subscriptionName, string resourceGroupName, string name, StorageMigrationOptions migrationOptions, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Migrates a local (in-app) MySql database to a remote MySql /// database. /// </summary> /// <remarks> /// Migrates a local (in-app) MySql database to a remote MySql /// database. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='migrationRequestEnvelope'> /// MySql migration options. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Operation>> BeginMigrateMySqlWithHttpMessagesAsync(string resourceGroupName, string name, MigrateMySqlRequest migrationRequestEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> BeginStartWebSiteNetworkTraceOperationWithHttpMessagesAsync(string resourceGroupName, string name, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores an app from a backup blob in Azure Storage. /// </summary> /// <remarks> /// Restores an app from a backup blob in Azure Storage. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreFromBackupBlobWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a deleted web app to this web app. /// </summary> /// <remarks> /// Restores a deleted web app to this web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Deleted web app restore information. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreFromDeletedAppWithHttpMessagesAsync(string resourceGroupName, string name, DeletedAppRestoreRequest restoreRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app from a snapshot. /// </summary> /// <remarks> /// Restores a web app from a snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Snapshot restore settings. Snapshot information can be obtained by /// calling GetDeletedSites or GetSiteSnapshots API. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreSnapshotWithHttpMessagesAsync(string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Install site extension on a web site, or a deployment slot. /// </summary> /// <remarks> /// Install site extension on a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> BeginInstallSiteExtensionWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </summary> /// <remarks> /// Creates a new web, mobile, or API app in an existing resource /// group, or updates an existing app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Unique name of the app to create or update. To create or update a /// deployment slot, use the {slot} parameter. /// </param> /// <param name='siteEnvelope'> /// A JSON representation of the app properties. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot to create or update. By default, this /// API attempts to create or modify the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<Site>> BeginCreateOrUpdateSlotWithHttpMessagesAsync(string resourceGroupName, string name, Site siteEnvelope, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Restores a specific backup to another app (or deployment slot, if /// specified). /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='backupId'> /// ID of the backup. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreSlotWithHttpMessagesAsync(string resourceGroupName, string name, string backupId, RestoreRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the Git/FTP publishing credentials of an app. /// </summary> /// <remarks> /// Gets the Git/FTP publishing credentials of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will get the publishing credentials for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<User>> BeginListPublishingCredentialsSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> BeginCreateMSDeployOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Create function for web site, or a deployment slot. /// </summary> /// <remarks> /// Create function for web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='functionName'> /// Function name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='functionEnvelope'> /// Function details. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<FunctionEnvelope>> BeginCreateInstanceFunctionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string functionName, string slot, FunctionEnvelope functionEnvelope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Invoke the MSDeploy web app extension. /// </summary> /// <remarks> /// Invoke the MSDeploy web app extension. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='instanceId'> /// ID of web app instance. /// </param> /// <param name='mSDeploy'> /// Details of MSDeploy operation /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<MSDeployStatus>> BeginCreateInstanceMSDeployOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, string instanceId, MSDeploy mSDeploy, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> BeginStartWebSiteNetworkTraceOperationSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores an app from a backup blob in Azure Storage. /// </summary> /// <remarks> /// Restores an app from a backup blob in Azure Storage. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='request'> /// Information on restore request . /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will restore a backup of the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreFromBackupBlobSlotWithHttpMessagesAsync(string resourceGroupName, string name, RestoreRequest request, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a deleted web app to this web app. /// </summary> /// <remarks> /// Restores a deleted web app to this web app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Deleted web app restore information. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreFromDeletedAppSlotWithHttpMessagesAsync(string resourceGroupName, string name, DeletedAppRestoreRequest restoreRequest, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Restores a web app from a snapshot. /// </summary> /// <remarks> /// Restores a web app from a snapshot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of web app. /// </param> /// <param name='restoreRequest'> /// Snapshot restore settings. Snapshot information can be obtained by /// calling GetDeletedSites or GetSiteSnapshots API. /// </param> /// <param name='slot'> /// Name of web app slot. If not specified then will default to /// production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginRestoreSnapshotSlotWithHttpMessagesAsync(string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Install site extension on a web site, or a deployment slot. /// </summary> /// <remarks> /// Install site extension on a web site, or a deployment slot. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Site name. /// </param> /// <param name='siteExtensionId'> /// Site extension name. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// deletes a deployment for the production slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteExtensionInfo>> BeginInstallSiteExtensionSlotWithHttpMessagesAsync(string resourceGroupName, string name, string siteExtensionId, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Swaps two deployment slots of an app. /// </summary> /// <remarks> /// Swaps two deployment slots of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='slot'> /// Name of the source slot. If a slot is not specified, the production /// slot is used as the source slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginSwapSlotSlotWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='slot'> /// Name of the deployment slot. If a slot is not specified, the API /// will update the source control configuration for the production /// slot. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> BeginCreateOrUpdateSourceControlSlotWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, string slot, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='slot'> /// The name of the slot for this web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> BeginStartNetworkTraceSlotWithHttpMessagesAsync(string resourceGroupName, string name, string slot, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Swaps two deployment slots of an app. /// </summary> /// <remarks> /// Swaps two deployment slots of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='slotSwapEntity'> /// JSON object that contains the target slot name. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse> BeginSwapSlotWithProductionWithHttpMessagesAsync(string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Updates the source control configuration of an app. /// </summary> /// <remarks> /// Updates the source control configuration of an app. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the app. /// </param> /// <param name='siteSourceControl'> /// JSON representation of a SiteSourceControl object. See example. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<SiteSourceControl>> BeginCreateOrUpdateSourceControlWithHttpMessagesAsync(string resourceGroupName, string name, SiteSourceControl siteSourceControl, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Start capturing network packets for the site. /// </summary> /// <remarks> /// Start capturing network packets for the site. /// </remarks> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// The name of the web app. /// </param> /// <param name='durationInSeconds'> /// The duration to keep capturing in seconds. /// </param> /// <param name='maxFrameLength'> /// The maximum frame length in bytes (Optional). /// </param> /// <param name='sasUrl'> /// The Blob URL to store capture file. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IList<NetworkTrace>>> BeginStartNetworkTraceWithHttpMessagesAsync(string resourceGroupName, string name, int? durationInSeconds = default(int?), int? maxFrameLength = default(int?), string sasUrl = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get all apps for a subscription. /// </summary> /// <remarks> /// Get all apps for a subscription. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all web, mobile, and API apps in the specified resource group. /// </summary> /// <remarks> /// Gets all web, mobile, and API apps in the specified resource group. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets existing backups of an app. /// </summary> /// <remarks> /// Gets existing backups of an app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<BackupItem>>> ListBackupsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the configurations of an app /// </summary> /// <remarks> /// List the configurations of an app /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigResource>>> ListConfigurationsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </summary> /// <remarks> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigurationSnapshotInfo>>> ListConfigurationSnapshotInfoNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List continuous web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List continuous web jobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ContinuousWebJob>>> ListContinuousWebJobsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployments for an app, or a deployment slot. /// </summary> /// <remarks> /// List deployments for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Deployment>>> ListDeploymentsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists ownership identifiers for domain associated with web app. /// </summary> /// <remarks> /// Lists ownership identifiers for domain associated with web app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Identifier>>> ListDomainOwnershipIdentifiersNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the functions for a web site, or a deployment slot. /// </summary> /// <remarks> /// List the functions for a web site, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<FunctionEnvelope>>> ListFunctionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get hostname bindings for an app or a deployment slot. /// </summary> /// <remarks> /// Get hostname bindings for an app or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<HostNameBinding>>> ListHostNameBindingsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all scale-out instances of an app. /// </summary> /// <remarks> /// Gets all scale-out instances of an app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteInstance>>> ListInstanceIdentifiersNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListInstanceProcessesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListInstanceProcessModulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListInstanceProcessThreadsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetricDefinition>>> ListMetricDefinitionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetric>>> ListMetricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets perfmon counters for web app. /// </summary> /// <remarks> /// Gets perfmon counters for web app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PerfMonResponse>>> ListPerfMonCountersNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListProcessesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListProcessModulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListProcessThreadsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get public certificates for an app or a deployment slot. /// </summary> /// <remarks> /// Get public certificates for an app or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PublicCertificate>>> ListPublicCertificatesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of siteextensions for a web site, or a deployment slot. /// </summary> /// <remarks> /// Get list of siteextensions for a web site, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteExtensionInfo>>> ListSiteExtensionsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets an app's deployment slots. /// </summary> /// <remarks> /// Gets an app's deployment slots. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Site>>> ListSlotsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets existing backups of an app. /// </summary> /// <remarks> /// Gets existing backups of an app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<BackupItem>>> ListBackupsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the configurations of an app /// </summary> /// <remarks> /// List the configurations of an app /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigResource>>> ListConfigurationsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </summary> /// <remarks> /// Gets a list of web app configuration snapshots identifiers. Each /// element of the list contains a timestamp and the ID of the /// snapshot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteConfigurationSnapshotInfo>>> ListConfigurationSnapshotInfoSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List continuous web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List continuous web jobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ContinuousWebJob>>> ListContinuousWebJobsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List deployments for an app, or a deployment slot. /// </summary> /// <remarks> /// List deployments for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Deployment>>> ListDeploymentsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Lists ownership identifiers for domain associated with web app. /// </summary> /// <remarks> /// Lists ownership identifiers for domain associated with web app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Identifier>>> ListDomainOwnershipIdentifiersSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the functions for a web site, or a deployment slot. /// </summary> /// <remarks> /// List the functions for a web site, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<FunctionEnvelope>>> ListInstanceFunctionsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get hostname bindings for an app or a deployment slot. /// </summary> /// <remarks> /// Get hostname bindings for an app or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<HostNameBinding>>> ListHostNameBindingsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all scale-out instances of an app. /// </summary> /// <remarks> /// Gets all scale-out instances of an app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteInstance>>> ListInstanceIdentifiersSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListInstanceProcessesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListInstanceProcessModulesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListInstanceProcessThreadsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets all metric definitions of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetricDefinition>>> ListMetricDefinitionsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets performance metrics of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ResourceMetric>>> ListMetricsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets perfmon counters for web app. /// </summary> /// <remarks> /// Gets perfmon counters for web app. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PerfMonResponse>>> ListPerfMonCountersSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </summary> /// <remarks> /// Get list of processes for a web site, or a deployment slot, or for /// a specific scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessInfo>>> ListProcessesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </summary> /// <remarks> /// List module information for a process by its ID for a specific /// scaled-out instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessModuleInfo>>> ListProcessModulesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </summary> /// <remarks> /// List the threads in a process by its ID for a specific scaled-out /// instance in a web site. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<ProcessThreadInfo>>> ListProcessThreadsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get public certificates for an app or a deployment slot. /// </summary> /// <remarks> /// Get public certificates for an app or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<PublicCertificate>>> ListPublicCertificatesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get list of siteextensions for a web site, or a deployment slot. /// </summary> /// <remarks> /// Get list of siteextensions for a web site, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SiteExtensionInfo>>> ListSiteExtensionsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the difference in configuration settings between two web app /// slots. /// </summary> /// <remarks> /// Get the difference in configuration settings between two web app /// slots. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SlotDifference>>> ListSlotDifferencesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user. /// </summary> /// <remarks> /// Returns all Snapshots to the user. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </summary> /// <remarks> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsFromDRSecondarySlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List triggered web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List triggered web jobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredWebJob>>> ListTriggeredWebJobsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List a triggered web job's history for an app, or a deployment /// slot. /// </summary> /// <remarks> /// List a triggered web job's history for an app, or a deployment /// slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredJobHistory>>> ListTriggeredWebJobHistorySlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<CsmUsageQuota>>> ListUsagesSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List webjobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List webjobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<WebJob>>> ListWebJobsSlotNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Get the difference in configuration settings between two web app /// slots. /// </summary> /// <remarks> /// Get the difference in configuration settings between two web app /// slots. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<SlotDifference>>> ListSlotDifferencesFromProductionNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user. /// </summary> /// <remarks> /// Returns all Snapshots to the user. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </summary> /// <remarks> /// Returns all Snapshots to the user from DRSecondary endpoint. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<Snapshot>>> ListSnapshotsFromDRSecondaryNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List triggered web jobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List triggered web jobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredWebJob>>> ListTriggeredWebJobsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List a triggered web job's history for an app, or a deployment /// slot. /// </summary> /// <remarks> /// List a triggered web job's history for an app, or a deployment /// slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="Microsoft.Rest.Azure.CloudException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<TriggeredJobHistory>>> ListTriggeredWebJobHistoryNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </summary> /// <remarks> /// Gets the quota usage information of an app (or deployment slot, if /// specified). /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<CsmUsageQuota>>> ListUsagesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List webjobs for an app, or a deployment slot. /// </summary> /// <remarks> /// List webjobs for an app, or a deployment slot. /// </remarks> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='customHeaders'> /// The headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="DefaultErrorResponseException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> Task<AzureOperationResponse<IPage<WebJob>>> ListWebJobsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } }
48.586731
405
0.604788
[ "MIT" ]
0xced/azure-sdk-for-net
src/SDKs/WebSites/Management.Websites/Generated/IWebAppsOperations.cs
687,648
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("02 Number Checker")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("02 Number Checker")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("3f9eacee-f8f7-46e5-b4ac-d184b8540063")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.027027
84
0.744136
[ "MIT" ]
Bullsized/Assignments-Fundamentals-Normal
10 - 12 Data Types and Var/2017-06-03/02 Number Checker/Properties/AssemblyInfo.cs
1,410
C#
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.IO; using System.Linq; using System.Web.Mvc; using MvcContrib.UI.Grid; using MvcContrib.UI.Grid.Syntax; using NUnit.Framework; using System.Collections.Generic; namespace MvcContrib.UnitTests.UI.Grid { [TestFixture] public class AutoColumnBuilderTester { private DataAnnotationsModelMetadataProvider _provider; [SetUp] public void Setup() { _provider = new DataAnnotationsModelMetadataProvider(); } [Test] public void Should_generate_columns() { var builder = new AutoColumnBuilder<Person>(_provider); builder.Count().ShouldEqual(2); builder.First().Name.ShouldEqual("Name"); builder.Last().Name.ShouldEqual("Id"); } [Test] public void Calling_AutoGenerateColumns_should_add_columns() { IGrid<Person> grid = new Grid<Person>(new Person[0], new ViewContext()); grid.AutoGenerateColumns(); ((Grid<Person>)grid).Model.Columns.Count.ShouldEqual(2); } [Test] public void Does_not_scaffold_property() { var buuilder = new AutoColumnBuilder<ScaffoldPerson>(_provider); buuilder.Count().ShouldEqual(1); buuilder.Single().Name.ShouldEqual("Name"); } [Test] public void Uses_custom_displayname() { var builder = new AutoColumnBuilder<DisplayNamePerson>(_provider); builder.Single().DisplayName.ShouldEqual("Foo"); } [Test] public void Uses_custom_displayformat() { var builder = new AutoColumnBuilder<DisplayFormatPerson>(_provider); var date = new DateTime(2010, 1, 15); var person = new DisplayFormatPerson { DateOfBirth = date }; builder.Single().GetValue(person).ShouldEqual(date.ToString("d")); } [Test] public void Supports_adding_additional_columns() { var grid = new Grid<Person>(new List<Person>(), new ViewContext()); grid .AutoGenerateColumns() .Columns(column => { column.For(x => null).Named("Some custom column"); }); grid.Model.Columns.Count.ShouldEqual(3); } private class Person { public string Name { get; set; } public int Id { get; set; } } private class ScaffoldPerson { [ScaffoldColumn(false)] public int Id { get; set; } public string Name { get; set; } } private class DisplayNamePerson { [Display(Name = "Foo")] public string Name { get; set; } } private class DisplayFormatPerson { [DisplayFormat(DataFormatString = "{0:d}")] public DateTime DateOfBirth { get; set; } } } }
22.392857
75
0.701356
[ "Apache-2.0" ]
joaofx/mvccontrib
src/MVCContrib.UnitTests/UI/Grid/AutoColumnBuilderTester.cs
2,508
C#
using System.Web.Routing; using NUnit.Framework; namespace SharpRouting { public abstract class RoutingTests { protected RouteCollection Routes { get; private set; } [SetUp] public virtual void SetUp() { Routes = new RouteCollection(); } // TODO: Move this to RouteExtensionTests, and then it doesn't need to subclass this class. internal static Route Route( string url, string controller = null, string action = null, object defaults = null, object constraints = null, object dataTokens = null) { var route = new Route ( url, new RouteValueDictionary(defaults), new RouteValueDictionary(constraints), new RouteValueDictionary(dataTokens), routeHandler: null ); if (controller != null) route.Defaults.Add("controller", controller); if (action != null) route.Defaults.Add("action", action); return route; } } }
27.395349
99
0.527165
[ "Apache-2.0" ]
sharpjs/SharpRouting
SharpRouting.Tests/RoutingTests.cs
1,180
C#
// <copyright file="ResourceUtilities.cs" company="WebDriver Committers"> // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // </copyright> using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Reflection; using System.Text; namespace OpenQA.Selenium.Internal { /// <summary> /// Encapsulates methods for finding and extracting WebDriver resources. /// </summary> public static class ResourceUtilities { /// <summary> /// Gets a <see cref="Stream"/> that contains the resource to use. /// </summary> /// <param name="fileName">A file name in the file system containing the resource to use.</param> /// <param name="resourceId">A string representing the resource name embedded in the /// executing assembly, if it is not found in the file system.</param> /// <returns>A Stream from which the resource can be read.</returns> /// <exception cref="WebDriverException">Thrown if neither the file nor the embedded resource can be found.</exception> /// <remarks> /// The GetResourceStream method searches for the specified resource using the following /// algorithm: /// <para> /// <list type="numbered"> /// <item>In the same directory as the calling assembly.</item> /// <item>In the full path specified by the <paramref name="fileName"/> argument.</item> /// <item>Inside the calling assembly as an embedded resource.</item> /// </list> /// </para> /// </remarks> public static Stream GetResourceStream(string fileName, string resourceId) { Stream resourceStream = null; string resourceFilePath = Path.Combine(FileUtilities.GetCurrentDirectory(), Path.GetFileName(fileName)); if (File.Exists(resourceFilePath)) { resourceStream = new FileStream(resourceFilePath, FileMode.Open, FileAccess.Read); } else if (File.Exists(fileName)) { resourceStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); } else { if (string.IsNullOrEmpty(resourceId)) { throw new WebDriverException("The file specified does not exist, and you have specified no internal resource ID"); } Assembly executingAssembly = Assembly.GetCallingAssembly(); resourceStream = executingAssembly.GetManifestResourceStream(resourceId); } if (resourceStream == null) { throw new WebDriverException(string.Format(CultureInfo.InvariantCulture, "Cannot find a file named '{0}' or an embedded resource with the id '{1}'.", resourceFilePath, resourceId)); } return resourceStream; } /// <summary> /// Returns a value indicating whether a resource exists with the specified ID. /// </summary> /// <param name="resourceId">ID of the embedded resource to check for.</param> /// <returns><see langword="true"/> if the resource exists in the calling assembly; otherwise <see langword="false"/>.</returns> public static bool IsValidResourceName(string resourceId) { Assembly executingAssembly = Assembly.GetCallingAssembly(); List<string> resourceNames = new List<string>(executingAssembly.GetManifestResourceNames()); return resourceNames.Contains(resourceId); } } }
45.40625
197
0.650608
[ "Apache-2.0" ]
cjayswal/selenium
dotnet/src/webdriver/Internal/ResourceUtilities.cs
4,361
C#
using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace Catalog.API.Entitites { public class Product { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } [BsonElement("Name")] public string Name { get; set; } public string Category { get; set; } public string Summary { get; set; } public string Description { get; set; } public string ImageFile { get; set; } public decimal Price { get; set; } } }
25.809524
47
0.607011
[ "MIT" ]
SergeyIlyinFirst/Microservices
AspNetMicroservices/Services/Catalog/Catalog.API/Entitites/Product.cs
544
C#
///* // link: https://www.geeksforgeeks.org/vertex-cover-problem-set-1-introduction-approximate-algorithm-2/ // Given an undirected graph, the vertex cover problem is to find minimum size vertex cover // means min. no. of vertices which cover every edges // note from GFG: We will soon be discussing exact algorithms for vertex cover. // as this code doesn't give exact minimal solution //*/ //// ----------------------------------------------------------------------------------------------------------------------- // ///* // TC: O(V + E) // this code is just for ref. (it's not exact code) //*/ //// Program to print Vertex Cover of a given undirected graph //#include<iostream> //#include <list> //using namespace std; //// This class represents a undirected graph using adjacency list //class Graph //{ // int V; // No. of vertices // list<int>* adj; // Pointer to an array containing adjacency lists //public: // Graph(int V); // Constructor // void addEdge(int v, int w); // function to add an edge to graph // void printVertexCover(); // prints vertex cover //}; //Graph::Graph(int V) //{ // this->V = V; // adj = new list<int>[V]; //} //void Graph::addEdge(int v, int w) //{ // adj[v].push_back(w); // Add w to v’s list. // adj[w].push_back(v); // Since the graph is undirected //} //// The function to print vertex cover //void Graph::printVertexCover() //{ // // Initialize all vertices as not visited. // bool visited[V]; // for (int i = 0; i < V; i++) // visited[i] = false; // list<int>::iterator i; // // Consider all edges one by one // for (int u = 0; u < V; u++) // { // // An edge is only picked when both visited[u] and visited[v] // // are false // if (visited[u] == false) // { // // Go through all adjacents of u and pick the first not // // yet visited vertex (We are basically picking an edge // // (u, v) from remaining edges. // for (i = adj[u].begin(); i != adj[u].end(); ++i) // { // int v = *i; // if (visited[v] == false) // { // // Add the vertices (u, v) to the result set. // // We make the vertex u and v visited so that // // all edges from/to them would be ignored // visited[v] = true; // visited[u] = true; // break; // } // } // } // } // // Print the vertex cover // for (int i = 0; i < V; i++) // if (visited[i]) // cout << i << " "; //} //// Driver program to test methods of graph class //int main() //{ // // Create a graph given in the above diagram // Graph g(7); // g.addEdge(0, 1); // g.addEdge(0, 2); // g.addEdge(1, 3); // g.addEdge(3, 4); // g.addEdge(4, 5); // g.addEdge(5, 6); // g.printVertexCover(); // return 0; //}
28.283019
127
0.506004
[ "MIT" ]
harshanu11/Love-Babbar-450-In-CSharp
Love-Babbar-450-In-CSharp/12_graph/40_vertex_cover_problem.cs
3,000
C#
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace WInterop.Memory { [Flags] public enum GlobalMemoryFlags { /// <summary> /// [GMEM_FIXED] /// </summary> Fixed = 0x0000, /// <summary> /// [GMEM_MOVEABLE] /// </summary> Moveable = 0x0002, /// <summary> /// [GMEM_NOCOMPACT] /// </summary> NoCompact = 0x0010, /// <summary> /// [GMEM_NODISCARD] /// </summary> NoDiscard = 0x0020, /// <summary> /// [GMEM_ZEROINIT] /// </summary> ZeroInit = 0x0040, /// <summary> /// [GMEM_MODIFY] /// </summary> Modify = 0x0080, /// <summary> /// [GMEM_DISCARDABLE] /// </summary> Discardable = 0x0100, /// <summary> /// [GMEM_NOT_BANKED] /// </summary> NotBanked = 0x1000, /// <summary> /// [GMEM_SHARE] /// </summary> Share = 0x2000, /// <summary> /// [GMEM_DDESHARE] /// </summary> DdeShare = 0x2000, /// <summary> /// [GMEM_NOTIFY] /// </summary> Notify = 0x4000, /// <summary> /// [GMEM_LOWER] /// </summary> Lower = NotBanked, /// <summary> /// [GMEM_INVALID_HANDLE] /// </summary> InvalidHandle = 0x8000, /// <summary> /// [GHND] /// </summary> Handle = Moveable | ZeroInit, /// <summary> /// [GPTR] /// </summary> Pointer = Fixed | ZeroInit, } }
20.848837
101
0.445064
[ "MIT" ]
JeremyKuhne/WInterop
src/WInterop.Desktop/Memory/GlobalMemoryFlags.cs
1,795
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006-2020, All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 13 Swallows Close, // Mornington, Vic 3931, Australia and are supplied subject to license terms. // // Modifications by Peter Wagner(aka Wagnerp) & Simon Coghlan(aka Smurf-IV) 2017 - 2020. All rights reserved. (https://github.com/Wagnerp/Krypton-Toolkit-Suite-NET-Core) // Version 5.500.0.0 www.ComponentFactory.com // ***************************************************************************** using System; using System.Drawing; using System.Windows.Forms; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections.Generic; namespace ComponentFactory.Krypton.Toolkit { internal class KryptonBreadCrumbItemsEditor : CollectionEditor { #region Classes /// <summary> /// Form used for editing the KryptonBreadCrumbItems. /// </summary> protected partial class KryptonBreadCrumbItemsForm : CollectionForm { #region Types /// <summary> /// Simple class to reduce the length of declarations! /// </summary> protected class DictItemBase : Dictionary<KryptonBreadCrumbItem, KryptonBreadCrumbItem> { }; /// <summary> /// Act as proxy for a crumb item to control the exposed properties to the property grid. /// </summary> protected class CrumbProxy { #region Instance Fields private readonly KryptonBreadCrumbItem _item; #endregion #region Identity /// <summary> /// Initialize a new instance of the KryptonBreadCrumbItem class. /// </summary> /// <param name="item">Item to act as proxy for.</param> public CrumbProxy(KryptonBreadCrumbItem item) { _item = item; } #endregion #region ShortText /// <summary> /// Gets and sets the short text. /// </summary> [Category("Appearance")] public string ShortText { get => _item.ShortText; set => _item.ShortText = value; } #endregion #region LongText /// <summary> /// Gets and sets the long text. /// </summary> [Category("Appearance")] public string LongText { get => _item.LongText; set => _item.LongText = value; } #endregion #region Image /// <summary> /// Gets and sets the image. /// </summary> [Category("Appearance")] [DefaultValue(null)] public Image Image { get => _item.Image; set => _item.Image = value; } #endregion #region ImageTransparentColor /// <summary> /// Gets and sets the image transparent color. /// </summary> [Category("Appearance")] [DefaultValue(typeof(Color), "")] public Color ImageTransparentColor { get => _item.ImageTransparentColor; set => _item.ImageTransparentColor = value; } #endregion #region Tag /// <summary> /// Gets and sets user-defined data associated with the object. /// </summary> [Category("Data")] [TypeConverter(typeof(StringConverter))] [DefaultValue(null)] public object Tag { get => _item.Tag; set => _item.Tag = value; } #endregion } /// <summary> /// Tree node that is attached to a context menu item. /// </summary> protected class MenuTreeNode : TreeNode { #region Instance Fields #endregion #region Identity /// <summary> /// Initialize a new instance of the MenuTreeNode class. /// </summary> /// <param name="item">Menu item to represent.</param> public MenuTreeNode(KryptonBreadCrumbItem item) { Item = item; PropertyObject = item; Text = Item.ToString(); // Hook into property changes Item.PropertyChanged += OnPropertyChanged; } #endregion #region Public /// <summary> /// Gets access to the associated item. /// </summary> public KryptonBreadCrumbItem Item { get; } /// <summary> /// Gets access to object wrapper for use in the property grid. /// </summary> public object PropertyObject { get; } #endregion #region Implementation private void OnPropertyChanged(object sender, PropertyChangedEventArgs e) { // Update with correct string for new state Text = Item.ToString(); } #endregion } /// <summary> /// Site that allows the property grid to discover Visual Studio services. /// </summary> protected class PropertyGridSite : ISite, IServiceProvider { #region Instance Fields private readonly IServiceProvider _serviceProvider; private bool _inGetService; #endregion #region Identity /// <summary> /// Initialize a new instance of the PropertyGridSite. /// </summary> /// <param name="servicePovider">Reference to service container.</param> /// <param name="component">Reference to component.</param> public PropertyGridSite(IServiceProvider servicePovider, IComponent component) { _serviceProvider = servicePovider; Component = component; } #endregion #region Public /// <summary> /// Gets the service object of the specified type. /// </summary> /// <param name="t">An object that specifies the type of service object to get. </param> /// <returns>A service object of type serviceType; or null reference if there is no service object of type serviceType.</returns> public object GetService(Type t) { if (!_inGetService && (_serviceProvider != null)) { try { _inGetService = true; return _serviceProvider.GetService(t); } finally { _inGetService = false; } } return null; } /// <summary> /// Gets the component associated with the ISite when implemented by a class. /// </summary> public IComponent Component { get; } /// <summary> /// Gets the IContainer associated with the ISite when implemented by a class. /// </summary> public IContainer Container => null; /// <summary> /// Determines whether the component is in design mode when implemented by a class. /// </summary> public bool DesignMode => false; /// <summary> /// Gets or sets the name of the component associated with the ISite when implemented by a class. /// </summary> public string Name { get { return null; } set { } } #endregion } #endregion #region Instance Fields private KryptonBreadCrumbItemsEditor _editor; private DictItemBase _beforeItems; private readonly Button buttonOK; private readonly TreeView treeView1; private readonly Button buttonMoveUp; private readonly Button buttonMoveDown; private readonly Button buttonAddItem; private readonly Button buttonDelete; private readonly PropertyGrid propertyGrid1; private readonly Label label1; private readonly Label label2; private readonly Button buttonAddChild; #endregion #region Identity /// <summary> /// Initialize a new instance of the KryptonBreadCrumbItemsForm class. /// </summary> public KryptonBreadCrumbItemsForm(KryptonBreadCrumbItemsEditor editor) : base(editor) { _editor = editor; buttonOK = new Button(); treeView1 = new TreeView(); buttonMoveUp = new Button(); buttonMoveDown = new Button(); buttonAddItem = new Button(); buttonDelete = new Button(); propertyGrid1 = new PropertyGrid(); label1 = new Label(); label2 = new Label(); buttonAddChild = new Button(); SuspendLayout(); // // buttonOK // buttonOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonOK.DialogResult = DialogResult.OK; buttonOK.Location = new Point(547, 382); buttonOK.Name = "buttonOK"; buttonOK.Size = new Size(75, 23); buttonOK.TabIndex = 8; buttonOK.Text = "OK"; buttonOK.UseVisualStyleBackColor = true; buttonOK.Click += buttonOK_Click; // // treeView1 // treeView1.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; treeView1.Location = new Point(12, 32); treeView1.Name = "treeView1"; treeView1.Size = new Size(254, 339); treeView1.TabIndex = 1; treeView1.HideSelection = false; treeView1.AfterSelect += treeView1_AfterSelect; // // buttonMoveUp // buttonMoveUp.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonMoveUp.Image = Properties.Resources.arrow_up_blue; buttonMoveUp.ImageAlign = ContentAlignment.MiddleLeft; buttonMoveUp.Location = new Point(272, 32); buttonMoveUp.Name = "buttonMoveUp"; buttonMoveUp.Size = new Size(95, 28); buttonMoveUp.TabIndex = 2; buttonMoveUp.Text = "Move Up"; buttonMoveUp.TextAlign = ContentAlignment.MiddleLeft; buttonMoveUp.TextImageRelation = TextImageRelation.ImageBeforeText; buttonMoveUp.UseVisualStyleBackColor = true; buttonMoveUp.Click += buttonMoveUp_Click; // // buttonMoveDown // buttonMoveDown.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonMoveDown.Image = Properties.Resources.arrow_down_blue; buttonMoveDown.ImageAlign = ContentAlignment.MiddleLeft; buttonMoveDown.Location = new Point(272, 66); buttonMoveDown.Name = "buttonMoveDown"; buttonMoveDown.Size = new Size(95, 28); buttonMoveDown.TabIndex = 3; buttonMoveDown.Text = "Move Down"; buttonMoveDown.TextAlign = ContentAlignment.MiddleLeft; buttonMoveDown.TextImageRelation = TextImageRelation.ImageBeforeText; buttonMoveDown.UseVisualStyleBackColor = true; buttonMoveDown.Click += buttonMoveDown_Click; // // buttonAddItem // buttonAddItem.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonAddItem.Image = Properties.Resources.add; buttonAddItem.ImageAlign = ContentAlignment.MiddleLeft; buttonAddItem.Location = new Point(272, 112); buttonAddItem.Name = "buttonAddItem"; buttonAddItem.Size = new Size(95, 28); buttonAddItem.TabIndex = 4; buttonAddItem.Text = "Add Sibling"; buttonAddItem.TextAlign = ContentAlignment.MiddleLeft; buttonAddItem.TextImageRelation = TextImageRelation.ImageBeforeText; buttonAddItem.UseVisualStyleBackColor = true; buttonAddItem.Click += buttonAddSibling_Click; // // buttonDelete // buttonDelete.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonDelete.Image = Properties.Resources.delete2; buttonDelete.ImageAlign = ContentAlignment.MiddleLeft; buttonDelete.Location = new Point(272, 190); buttonDelete.Name = "buttonDelete"; buttonDelete.Size = new Size(95, 28); buttonDelete.TabIndex = 5; buttonDelete.Text = "Delete Item"; buttonDelete.TextAlign = ContentAlignment.MiddleLeft; buttonDelete.TextImageRelation = TextImageRelation.ImageBeforeText; buttonDelete.UseVisualStyleBackColor = true; buttonDelete.Click += buttonDelete_Click; // // propertyGrid1 // propertyGrid1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Right; propertyGrid1.HelpVisible = false; propertyGrid1.Location = new Point(373, 32); propertyGrid1.Name = "propertyGrid1"; propertyGrid1.Size = new Size(249, 339); propertyGrid1.TabIndex = 7; propertyGrid1.ToolbarVisible = false; // // label1 // label1.Anchor = AnchorStyles.Top | AnchorStyles.Right; label1.AutoSize = true; label1.Location = new Point(370, 13); label1.Name = "label1"; label1.Size = new Size(81, 13); label1.TabIndex = 6; label1.Text = "Item Properties"; // // label2 // label2.AutoSize = true; label2.Location = new Point(12, 13); label2.Name = "label2"; label2.Size = new Size(142, 13); label2.TabIndex = 0; label2.Text = "BreadCrumbItems Collection"; // // buttonAddChild // buttonAddChild.Anchor = AnchorStyles.Top | AnchorStyles.Right; buttonAddChild.Image = Properties.Resources.add; buttonAddChild.ImageAlign = ContentAlignment.MiddleLeft; buttonAddChild.Location = new Point(272, 146); buttonAddChild.Name = "buttonAddChild"; buttonAddChild.Size = new Size(95, 28); buttonAddChild.TabIndex = 9; buttonAddChild.Text = "Add Child"; buttonAddChild.TextAlign = ContentAlignment.MiddleLeft; buttonAddChild.TextImageRelation = TextImageRelation.ImageBeforeText; buttonAddChild.UseVisualStyleBackColor = true; buttonAddChild.Click += buttonAddChild_Click; // // KryptonBreadCrumbCollectionForm // AcceptButton = buttonOK; AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(634, 414); ControlBox = false; Controls.Add(buttonAddChild); Controls.Add(label2); Controls.Add(label1); Controls.Add(propertyGrid1); Controls.Add(buttonDelete); Controls.Add(buttonAddItem); Controls.Add(buttonMoveDown); Controls.Add(buttonMoveUp); Controls.Add(treeView1); Controls.Add(buttonOK); Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0); MinimumSize = new Size(501, 296); Name = "KryptonBreadCrumbCollectionForm"; StartPosition = FormStartPosition.CenterScreen; Text = "BreadCrumbItem Collection Editor"; ResumeLayout(false); PerformLayout(); } #endregion #region Protected Overrides /// <summary> /// Provides an opportunity to perform processing when a collection value has changed. /// </summary> protected override void OnEditValueChanged() { if (EditValue != null) { // Cache a lookup of all items before changes are made _beforeItems = CreateItemsDictionary(Items); // Need to link the property browser to a site otherwise Image properties cannot be // edited because it cannot navigate to the owning project for its resources propertyGrid1.Site = new PropertyGridSite(Context, propertyGrid1); // Add all the top level clones treeView1.Nodes.Clear(); foreach (KryptonBreadCrumbItem item in Items) { AddMenuTreeNode(item, null); } // Expand to show all entries treeView1.ExpandAll(); // Select the first node if (treeView1.Nodes.Count > 0) { treeView1.SelectedNode = treeView1.Nodes[0]; } UpdateButtons(); UpdatePropertyGrid(); } } #endregion #region Implementation private void buttonOK_Click(object sender, EventArgs e) { // Create an array with all the root items object[] rootItems = new object[treeView1.Nodes.Count]; for (int i = 0; i < rootItems.Length; i++) { rootItems[i] = ((MenuTreeNode)treeView1.Nodes[i]).Item; } // Cache a lookup of all items after changes are made DictItemBase afterItems = CreateItemsDictionary(rootItems); // Update collection with new set of items Items = rootItems; // Clear down contents of tree as this form can be reused treeView1.Nodes.Clear(); // Inform designer of changes in component items SynchronizeCollections(_beforeItems, afterItems, Context); // Notify container that the value has been changed Context.OnComponentChanged(); } private bool ContainsNode(TreeNode node, TreeNode find) { if (node.Nodes.Contains(find)) { return true; } else { foreach (TreeNode child in node.Nodes) { if (ContainsNode(child, find)) { return true; } } } return false; } private TreeNode NextNode(TreeNode currentNode) { if (currentNode == null) { return null; } bool found = false; return RecursiveFind(treeView1.Nodes, currentNode, ref found, true); } private TreeNode PreviousNode(TreeNode currentNode) { if (currentNode == null) { return null; } bool found = false; return RecursiveFind(treeView1.Nodes, currentNode, ref found, false); } private TreeNode RecursiveFind(TreeNodeCollection nodes, TreeNode target, ref bool found, bool forward) { for (int i = 0; i < nodes.Count; i++) { TreeNode node = nodes[forward ? i : nodes.Count - 1 - i]; // Searching forward we check the node before any child collection if (forward) { if (!found) { found |= (node == target); } else { return node; } } // Do not recurse into the children if looking forwards and at the target if (!(found && forward)) { // Searching the child collection of nodes TreeNode findNode = RecursiveFind(node.Nodes, target, ref found, forward); // If we found a node to return then return it now if (findNode != null) { return findNode; } else if (found && (target != node)) { return node; } // Searching backwards we check the child collection after checking the node if (!forward) { if (!found) { found |= (node == target); } else { return node; } } } } return null; } private void buttonMoveUp_Click(object sender, EventArgs e) { // If we have a selected node MenuTreeNode node = (MenuTreeNode)treeView1.SelectedNode; if (node != null) { // Find the previous node using the currently selected node MenuTreeNode previousNode = (MenuTreeNode)PreviousNode(node); if (previousNode != null) { // Is the current node contained inside the next node bool contained = ContainsNode(previousNode, node); // Remove cell from parent collection MenuTreeNode parentNode = (MenuTreeNode)node.Parent; TreeNodeCollection parentCollection = (node.Parent == null ? treeView1.Nodes : node.Parent.Nodes); parentNode?.Item.Items.Remove(node.Item); parentCollection.Remove(node); if (contained) { // Add cell to the parent of target node MenuTreeNode previousParent = (MenuTreeNode)previousNode.Parent; parentCollection = (previousNode.Parent == null ? treeView1.Nodes : previousNode.Parent.Nodes); int pageIndex = parentCollection.IndexOf(previousNode); // If the current and previous nodes are inside the same common node if (!contained && ((previousParent != null) && (previousParent != parentNode))) { // If the page is the last one in the collection then we need to insert afterwards if (pageIndex == (previousParent.Nodes.Count - 1)) { pageIndex++; } } previousParent?.Item.Items.Insert(pageIndex, node.Item); parentCollection.Insert(pageIndex, node); } else { parentNode = previousNode; parentNode.Item.Items.Insert(parentNode.Nodes.Count, node.Item); parentNode.Nodes.Insert(parentNode.Nodes.Count, node); } } } // Ensure the target node is still selected treeView1.SelectedNode = node; UpdateButtons(); UpdatePropertyGrid(); } private void buttonMoveDown_Click(object sender, EventArgs e) { // If we have a selected node MenuTreeNode node = (MenuTreeNode)treeView1.SelectedNode; if (node != null) { // Find the next node using the currently selected node MenuTreeNode nextNode = (MenuTreeNode)NextNode(node); if (nextNode != null) { // Is the current node contained inside the next node bool contained = ContainsNode(nextNode, node); // Remove cell from parent collection MenuTreeNode parentNode = (MenuTreeNode)node.Parent; TreeNodeCollection parentCollection = (node.Parent == null ? treeView1.Nodes : node.Parent.Nodes); parentNode?.Item.Items.Remove(node.Item); parentCollection.Remove(node); if (contained) { // Add cell to the parent sequence of target cell MenuTreeNode previousParent = (MenuTreeNode)nextNode.Parent; parentCollection = (nextNode.Parent == null ? treeView1.Nodes : nextNode.Parent.Nodes); int pageIndex = parentCollection.IndexOf(nextNode); previousParent?.Item.Items.Insert(pageIndex + 1, node.Item); parentCollection.Insert(pageIndex + 1, node); } else { parentNode = nextNode; parentNode.Item.Items.Insert(0, node.Item); parentNode.Nodes.Insert(0, node); } } } // Ensure the target node is still selected treeView1.SelectedNode = node; UpdateButtons(); UpdatePropertyGrid(); } private void buttonAddSibling_Click(object sender, EventArgs e) { KryptonBreadCrumbItem item = (KryptonBreadCrumbItem)CreateInstance(typeof(KryptonBreadCrumbItem)); TreeNode newNode = new MenuTreeNode(item); TreeNode selectedNode = treeView1.SelectedNode; // If there is no selection then append to root if (selectedNode == null) { treeView1.Nodes.Add(newNode); } else { // If current selection is at the root TreeNode parentNode = selectedNode.Parent; if (parentNode == null) { treeView1.Nodes.Insert(treeView1.Nodes.IndexOf(selectedNode) + 1, newNode); } else { MenuTreeNode parentMenu = (MenuTreeNode)parentNode; parentMenu.Item.Items.Insert(parentNode.Nodes.IndexOf(selectedNode) + 1, item); parentNode.Nodes.Insert(parentNode.Nodes.IndexOf(selectedNode) + 1, newNode); } } // Select the newly added node if (newNode != null) { treeView1.SelectedNode = newNode; treeView1.Focus(); } UpdateButtons(); UpdatePropertyGrid(); } private void buttonAddChild_Click(object sender, EventArgs e) { KryptonBreadCrumbItem item = (KryptonBreadCrumbItem)CreateInstance(typeof(KryptonBreadCrumbItem)); TreeNode newNode = new MenuTreeNode(item); TreeNode selectedNode = treeView1.SelectedNode; // If there is no selection then append to root if (selectedNode == null) { treeView1.Nodes.Add(newNode); } else { MenuTreeNode selectedMenu = (MenuTreeNode)selectedNode; selectedMenu.Item.Items.Add(item); selectedNode.Nodes.Add(newNode); } // Select the newly added node if (newNode != null) { treeView1.SelectedNode = newNode; treeView1.Focus(); } UpdateButtons(); UpdatePropertyGrid(); } private void buttonDelete_Click(object sender, EventArgs e) { TreeNode node = treeView1.SelectedNode; // We should have a selected node! if (node != null) { MenuTreeNode treeNode = node as MenuTreeNode; // If at root level then remove from root, otherwise from the parent collection if (node.Parent == null) { treeView1.Nodes.Remove(node); } else { TreeNode parentNode = node.Parent; MenuTreeNode treeParentNode = parentNode as MenuTreeNode; treeParentNode.Item.Items.Remove(treeNode.Item); node.Parent.Nodes.Remove(node); } treeView1.Focus(); } UpdateButtons(); UpdatePropertyGrid(); } private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { UpdateButtons(); UpdatePropertyGrid(); } private void UpdateButtons() { MenuTreeNode node = treeView1.SelectedNode as MenuTreeNode; buttonMoveUp.Enabled = (node != null) && (PreviousNode(node) != null); buttonMoveDown.Enabled = (node != null) && (NextNode(node) != null); buttonDelete.Enabled = (node != null); } private void UpdatePropertyGrid() { TreeNode node = treeView1.SelectedNode; propertyGrid1.SelectedObject = node == null ? null : new CrumbProxy((KryptonBreadCrumbItem)((MenuTreeNode)node).PropertyObject); } private DictItemBase CreateItemsDictionary(object[] items) { DictItemBase dictItems = new DictItemBase(); foreach (KryptonBreadCrumbItem item in items) { AddItemsToDictionary(dictItems, item); } return dictItems; } private void AddItemsToDictionary(DictItemBase dictItems, KryptonBreadCrumbItem baseItem) { // Add item to the dictionary dictItems.Add(baseItem, baseItem); // Add children of an items collection foreach (KryptonBreadCrumbItem item in baseItem.Items) { AddItemsToDictionary(dictItems, item); } } private void AddMenuTreeNode(KryptonBreadCrumbItem item, MenuTreeNode parent) { // Create a node to match the item MenuTreeNode node = new MenuTreeNode(item); // Add to either root or parent node if (parent != null) { parent.Nodes.Add(node); } else { treeView1.Nodes.Add(node); } // Add children of an items collection foreach (KryptonBreadCrumbItem child in item.Items) { AddMenuTreeNode(child, node); } } private void SynchronizeCollections(DictItemBase before, DictItemBase after, ITypeDescriptorContext context) { // Add all new components (in the 'after' but not the 'before' foreach (KryptonBreadCrumbItem item in after.Values) { if (!before.ContainsKey(item)) { context.Container?.Add(item as IComponent); } } // Delete all old components (in the 'before' but not the 'after' foreach (KryptonBreadCrumbItem item in before.Values) { if (!after.ContainsKey(item)) { DestroyInstance(item); context.Container?.Remove(item as IComponent); } } IComponentChangeService changeService = (IComponentChangeService)GetService(typeof(IComponentChangeService)); if (changeService != null) { // Mark components as changed when not added or removed foreach (KryptonBreadCrumbItem item in after.Values) { if (before.ContainsKey(item)) { changeService.OnComponentChanging(item, null); changeService.OnComponentChanged(item, null, null, null); } } } } #endregion } #endregion #region Identity /// <summary> /// Initialize a new instance of the KryptonBreadCrumbItemsEditor class. /// </summary> public KryptonBreadCrumbItemsEditor() : base(typeof(KryptonBreadCrumbItem.BreadCrumbItems)) { } #endregion #region Protected Overrides /// <summary> /// Creates a new form to display and edit the current collection. /// </summary> /// <returns>A CollectionForm to provide as the user interface for editing the collection.</returns> protected override CollectionForm CreateCollectionForm() { return new KryptonBreadCrumbItemsForm(this); } #endregion } }
40.606291
170
0.474452
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-Toolkit-Suite-NET-Core
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Toolkit/KryptonBreadCrumbItemsEditor.cs
37,442
C#
using OnlineCinema.DB.DataModels; using OnlineCinema.DB.DTOs; namespace OnlineCinema.DB.Extensions { public static class ScheduleConversions { public static Schedule ToSqlModel(this ScheduleDto scheduleDto) { if (scheduleDto == null) { return null; } return new Schedule { Id = scheduleDto.Id, Date = scheduleDto.Date, MovieId = scheduleDto.MovieId, SessionId = scheduleDto.SessionId, Movie = scheduleDto.Movie.ToSqlModel(), Session = scheduleDto.Session.ToSqlModel(), IsDeleted = false }; } public static ScheduleDto ToDto(this Schedule schedule) { if (schedule == null) { return null; } return new ScheduleDto { Id = schedule.Id, Date = schedule.Date, MovieId = schedule.MovieId, SessionId = schedule.SessionId, Movie = schedule.Movie.ToDto(), Session = schedule.Session.ToDto() }; } } }
26.934783
71
0.489911
[ "MIT" ]
DimkaGlamazda/OnlineCinema
OnlineCinema.DB/Extensions/ScheduleConversions.cs
1,241
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SecondHand.Services.Notifications")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SecondHand.Services.Notifications")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("2cc78d8a-af00-4aa8-8218-4bdbb29a3e94")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.756757
84
0.752441
[ "MIT" ]
vixataaa/asp-project
src/SecondHand/SecondHand.Services.Notifications/Properties/AssemblyInfo.cs
1,437
C#
namespace JexusManager.Features.Rewrite.Inbound { using System.ComponentModel; using System.Windows.Forms; partial class AddMapsDialog { /// <summary> /// Required designer variable. /// </summary> private IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (this.components != null)) { this.components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.txtName = new System.Windows.Forms.TextBox(); this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(110, 13); this.label1.TabIndex = 0; this.label1.Text = "Server variable name:"; // // txtName // this.txtName.Location = new System.Drawing.Point(16, 39); this.txtName.Name = "txtName"; this.txtName.Size = new System.Drawing.Size(351, 20); this.txtName.TabIndex = 1; // // btnOK // this.btnOK.Enabled = false; this.btnOK.Location = new System.Drawing.Point(176, 81); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(90, 23); this.btnOK.TabIndex = 2; this.btnOK.Text = "OK"; this.btnOK.UseVisualStyleBackColor = true; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(272, 81); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(95, 23); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // // AddVariableDialog // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(379, 116); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOK); this.Controls.Add(this.txtName); this.Controls.Add(this.label1); this.Name = "AddVariableDialog"; this.Text = "Add Server Variable"; this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.AddVariableDialogHelpButtonClicked); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Label label1; private TextBox txtName; private Button btnOK; private Button btnCancel; } }
36.834951
124
0.556932
[ "MIT" ]
68681395/JexusManager
JexusManager.Features.Rewrite/Inbound/AddMapsDialog.Designer.cs
3,796
C#
using System.Diagnostics.CodeAnalysis; using SapCo2.Abstraction.Attributes; namespace SapCo2.Models { [ExcludeFromCodeCoverage] internal sealed class TableOption { #region Properties [RfcEntityProperty("TEXT")] public string Text { get; set; } #endregion } }
18.235294
40
0.670968
[ "MIT" ]
metalsimyaci/SapCo2
src/SapCo2/SapCo2/Models/TableOption.cs
310
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Arebis.CodeAnalysis.Static { /// <summary> /// A model of the analyzed code. /// </summary> [Serializable] public class CodeModel { public CodeModel() { this.Assemblies = new List<ModelAssembly>(); this.Types = new List<ModelType>(); this.Methods = new List<ModelMethod>(); } public CodeModel( IEnumerable<ModelAssembly> assemblies, IEnumerable<ModelType> types, IEnumerable<ModelMethod> methods) { this.Assemblies = new List<ModelAssembly>(assemblies); this.Types = new List<ModelType>(types); this.Methods = new List<ModelMethod>(methods); } public IList<ModelAssembly> Assemblies { get; private set; } public IList<ModelType> Types { get; private set; } public IList<ModelMethod> Methods { get; private set; } } }
28.421053
69
0.569444
[ "MIT" ]
FingersCrossed/Arebis.Common
Arebis.CodeAnalysis.Static/CodeModel.cs
1,082
C#
namespace RomVaultCore { public class EmulatorInfo { public string TreeDir; public string ExeName; public string CommandLine; public string WorkingDirectory; public string ExtraPath; } }
18.666667
37
0.6875
[ "Apache-2.0" ]
RomVault/RVWorld
RomVaultCore/EmulatorInfo.cs
226
C#
using System; using System.Globalization; namespace System.Maui.Platform.WPF { public sealed class ViewToRendererConverter : System.Windows.Data.IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var visualElement = value as VisualElement; if (visualElement == null) { return null; } var frameworkElement = Platform.GetOrCreateRenderer(visualElement)?.GetNativeElement(); return frameworkElement; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }
24.769231
97
0.757764
[ "MIT" ]
AswinPG/maui
System.Maui.Platform.WPF/Converters/ViewToRendererConverter.cs
644
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.AwsNative.WAFv2.Outputs { [OutputType] public sealed class RuleGroupAndStatement { public readonly ImmutableArray<Outputs.RuleGroupStatement> Statements; [OutputConstructor] private RuleGroupAndStatement(ImmutableArray<Outputs.RuleGroupStatement> statements) { Statements = statements; } } }
27.12
92
0.716814
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/WAFv2/Outputs/RuleGroupAndStatement.cs
678
C#
 using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using TestableClass; namespace CodeStuff.Tests { [TestClass] public class MyTestableClassTests { private List<School> _schools; private List<Student> _students; [TestInitialize] public void InitializeTest() { _students = new List<Student> { new Student { FirstName = "John", LastName = "Smith", StudentId = "1", Age = 21 }, new Student { FirstName = "Sally", LastName = "Smith", StudentId = "2", Age = 18 }, new Student { FirstName = "John", LastName = "Snow", StudentId = "3", Age = 12 }, new Student { FirstName = "Eddard", LastName = "Stark", StudentId = "4", Age = 5 }, }; _schools = new List<School> { new School { Name = "Elementary", MinAge = 4, MaxAge = 14 }, new School { Name = "Middle", MinAge = 9, MaxAge = 18 }, new School { Name = "High", MinAge = 14, MaxAge = 21 } }; } [TestMethod] public void AssignStudentToSchool_StudentNotFound() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } [TestMethod] public void AssignStudentToSchool_SchoolNotFound() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } [TestMethod] public void AssignStudentToSchool_StudentTooYoung() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } [TestMethod] public void AssignStudentToSchool_StudentTooOld() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } [TestMethod] public void AssignStudentToSchool_StudentUpperAge() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } [TestMethod] public void AssignStudentToSchool_StudentLowerAge() { var dependence = new Mock<MyDependency>(); var target = new MyTestableClass(); } } }
27.852174
60
0.406182
[ "CC0-1.0" ]
JCPSKy/CodeStuff
CodeStuffTestingDemo/CodeStuff.Tests/TestClassesTests.cs
3,205
C#
using Microsoft.SharePoint.Client; using System; namespace SP.Client.Linq.Attributes { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)] public class ContentTypeAttribute : Attribute { public ContentTypeAttribute() { } public virtual string Id { get; set; } public virtual string Name { get; set; } public virtual string Group { get; set; } public virtual string ParentId { get; set; } } }
24.045455
114
0.657845
[ "Apache-2.0" ]
rlocus/SPAccess
LinqToSP/LinqToSP/Attributes/ContentTypeAttribute.cs
531
C#
using Lidgren.Network; using LunaCommon; using LunaCommon.Message.Data.MasterServer; using LunaCommon.Message.Interface; using LunaCommon.Message.MasterServer; using LunaCommon.Time; using Server.Client; using Server.Context; using Server.Log; using Server.Server; using Server.Settings; using Server.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Server.Lidgren { public class LidgrenServer { private static List<IPEndPoint> MasterServerEndpoints { get; } = new List<IPEndPoint>(); private static NetServer Server { get; set; } public static MessageReceiver ClientMessageReceiver { get; set; } = new MessageReceiver(); private static int MasterServerRegistrationMsInterval => GeneralSettings.SettingsStore.MasterServerRegistrationMsInterval < 5000 ? 5000 : GeneralSettings.SettingsStore.MasterServerRegistrationMsInterval; public void SetupLidgrenServer() { if (Common.PortIsInUse(ServerContext.Config.Port)) { throw new HandledException($"Port {ServerContext.Config.Port} is already in use"); } ServerContext.Config.EnableMessageType(NetIncomingMessageType.ConnectionApproval); ServerContext.Config.EnableMessageType(NetIncomingMessageType.NatIntroductionSuccess); #if DEBUG ServerContext.Config.EnableMessageType(NetIncomingMessageType.DebugMessage); //ServerContext.Config.EnableMessageType(NetIncomingMessageType.VerboseDebugMessage); if (DebugSettings.SettingsStore?.SimulatedLossChance < 100 && DebugSettings.SettingsStore?.SimulatedLossChance > 0) { ServerContext.Config.SimulatedLoss = DebugSettings.SettingsStore.SimulatedLossChance / 100f; } if (DebugSettings.SettingsStore?.SimulatedDuplicatesChance < 100 && DebugSettings.SettingsStore?.SimulatedLossChance > 0) { ServerContext.Config.SimulatedDuplicatesChance = DebugSettings.SettingsStore.SimulatedDuplicatesChance / 100f; } ServerContext.Config.SimulatedRandomLatency = (float)TimeSpan.FromMilliseconds(DebugSettings.SettingsStore?.MaxSimulatedRandomLatencyMs ?? 0).TotalSeconds; ServerContext.Config.SimulatedMinimumLatency = (float)TimeSpan.FromMilliseconds(DebugSettings.SettingsStore?.MinSimulatedLatencyMs ?? 0).TotalSeconds; #endif Server = new NetServer(ServerContext.Config); Server.Start(); ServerContext.ServerStarting = false; } public async void StartReceiveingMessages() { try { while (ServerContext.ServerRunning) { var msg = Server.ReadMessage(); if (msg != null) { var client = TryGetClient(msg); switch (msg.MessageType) { case NetIncomingMessageType.ConnectionApproval: msg.SenderConnection.Approve(); break; case NetIncomingMessageType.Data: ClientMessageReceiver.ReceiveCallback(client, msg); break; case NetIncomingMessageType.WarningMessage: LunaLog.Warning(msg.ReadString()); break; case NetIncomingMessageType.ConnectionLatencyUpdated: case NetIncomingMessageType.DebugMessage: case NetIncomingMessageType.VerboseDebugMessage: LunaLog.NetworkDebug(msg.ReadString()); break; case NetIncomingMessageType.Error: LunaLog.Error(msg.ReadString()); break; case NetIncomingMessageType.StatusChanged: switch ((NetConnectionStatus)msg.ReadByte()) { case NetConnectionStatus.Connected: var endpoint = msg.SenderConnection.RemoteEndPoint; LunaLog.Normal($"New client Connection from {endpoint.Address}:{endpoint.Port}"); ClientConnectionHandler.ConnectClient(msg.SenderConnection); break; case NetConnectionStatus.Disconnected: var reason = msg.ReadString(); if (client != null) ClientConnectionHandler.DisconnectClient(client, reason); break; } break; default: var details = msg.PeekString(); LunaLog.Debug($"Lidgren: {msg.MessageType.ToString().ToUpper()} -- {details}"); break; } } else { await Task.Delay(GeneralSettings.SettingsStore.SendReceiveThreadTickMs); } } } catch (Exception e) { LunaLog.Fatal($"ERROR in thread receive! Details: {e}"); } } private static ClientStructure TryGetClient(NetIncomingMessage msg) { if (msg.SenderConnection != null) { ServerContext.Clients.TryGetValue(msg.SenderConnection.RemoteEndPoint, out var client); return client; } return null; } public void SendMessageToClient(ClientStructure client, IServerMessageBase message) { var outmsg = Server.CreateMessage(message.GetMessageSize()); message.Data.SentTime = LunaTime.UtcNow.Ticks; message.Serialize(outmsg); client.LastSendTime = ServerContext.ServerClock.ElapsedMilliseconds; client.BytesSent += outmsg.LengthBytes; var sendResult = Server.SendMessage(outmsg, client.Connection, message.NetDeliveryMethod, message.Channel); Server.FlushSendQueue(); //Manually force to send the msg } public void ShutdownLidgrenServer() { Server.Shutdown("Goodbye and thanks for all the fish"); } public async void RefreshMasterServersList() { if (!GeneralSettings.SettingsStore.RegisterWithMasterServer) return; while (ServerContext.ServerRunning) { lock (MasterServerEndpoints) { MasterServerEndpoints.Clear(); MasterServerEndpoints.AddRange(MasterServerRetriever.RetrieveWorkingMasterServersEndpoints() .Select(Common.CreateEndpointFromString)); } await Task.Delay((int)TimeSpan.FromMinutes(10).TotalMilliseconds); } } public async void RegisterWithMasterServer() { if (!GeneralSettings.SettingsStore.RegisterWithMasterServer) return; LunaLog.Normal("Registering with master servers..."); var adr = LunaNetUtils.GetMyAddress(); if (adr == null) return; var endpoint = new IPEndPoint(adr, ServerContext.Config.Port); while (ServerContext.ServerRunning) { var msgData = ServerContext.ServerMessageFactory.CreateNewMessageData<MsRegisterServerMsgData>(); msgData.Id = Server.UniqueIdentifier; msgData.Cheats = GeneralSettings.SettingsStore.Cheats; msgData.ShowVesselsInThePast = GeneralSettings.SettingsStore.ShowVesselsInThePast; msgData.Description = GeneralSettings.SettingsStore.Description; msgData.DropControlOnExit = GeneralSettings.SettingsStore.Cheats; msgData.DropControlOnExitFlight = GeneralSettings.SettingsStore.Cheats; msgData.DropControlOnVesselSwitching = GeneralSettings.SettingsStore.Cheats; msgData.GameMode = (int)GeneralSettings.SettingsStore.GameMode; msgData.InternalEndpoint = $"{endpoint.Address}:{endpoint.Port}"; msgData.MaxPlayers = GeneralSettings.SettingsStore.MaxPlayers; msgData.ModControl = (int)GeneralSettings.SettingsStore.ModControl; msgData.PlayerCount = ServerContext.Clients.Count; msgData.ServerName = GeneralSettings.SettingsStore.ServerName; msgData.ServerVersion = LmpVersioning.CurrentVersion; msgData.VesselUpdatesSendMsInterval = GeneralSettings.SettingsStore.VesselUpdatesSendMsInterval; msgData.SecondaryVesselUpdatesSendMsInterval = GeneralSettings.SettingsStore.SecondaryVesselUpdatesSendMsInterval; msgData.WarpMode = (int)GeneralSettings.SettingsStore.WarpMode; msgData.TerrainQuality = (int)GeneralSettings.SettingsStore.TerrainQuality; msgData.Description = msgData.Description.Length > 200 ? msgData.Description.Substring(0, 200) : msgData.Description; msgData.ServerName = msgData.ServerName.Length > 30 ? msgData.ServerName.Substring(0, 30) : msgData.ServerName; lock (MasterServerEndpoints) { foreach (var masterServer in MasterServerEndpoints) { RegisterWithMasterServer(msgData, masterServer); } } await Task.Delay(MasterServerRegistrationMsInterval); } } private static void RegisterWithMasterServer(MsRegisterServerMsgData msgData, IPEndPoint masterServer) { Task.Run(() => { var msg = ServerContext.MasterServerMessageFactory.CreateNew<MainMstSrvMsg>(msgData); msg.Data.SentTime = LunaTime.UtcNow.Ticks; try { var outMsg = Server.CreateMessage(msg.GetMessageSize()); msg.Serialize(outMsg); Server.SendUnconnectedMessage(outMsg, masterServer); Server.FlushSendQueue(); } catch (Exception) { // ignored } }); } } }
45.743802
167
0.570912
[ "MIT" ]
Badca52/LunaMultiplayer
Server/Lidgren/LidgrenServer.cs
11,072
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using System; using System.IO; namespace StonksApplication.Server { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.ConfigureAppConfiguration((configBuilder) => { string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; string configPath = Path.Combine(baseDirectory, "Configuration", "appsettings.hackathon.json"); configBuilder.AddJsonFile(configPath, optional: false, reloadOnChange: true); }); webBuilder.UseStartup<Startup>(); }); } }
27.096774
101
0.733333
[ "MIT" ]
kndb-star/StonksApplication
Server/Program.cs
840
C#
// <auto-generated /> using System; using DotNetCoreSqlDb.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace DotNetCoreSqlDb.Migrations { [DbContext(typeof(MyDatabaseContext))] [Migration("20191024121459_UpdateEntityKey")] partial class UpdateEntityKey { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.2.6-servicing-10079"); modelBuilder.Entity("DotNetCoreSqlDb.Models.RotoNews", b => { b.Property<string>("NewsKey") .ValueGeneratedOnAdd(); b.Property<DateTime>("DateTime"); b.Property<string>("Detail"); b.Property<string>("JsonString"); b.Property<string>("Player"); b.Property<string>("Title"); b.HasKey("NewsKey"); b.ToTable("ROTO_NEWS"); }); modelBuilder.Entity("DotNetCoreSqlDb.Models.RotoPlayer", b => { b.Property<string>("PlayerKey") .ValueGeneratedOnAdd(); b.Property<string>("JsonString"); b.Property<string>("Name"); b.HasKey("PlayerKey"); b.ToTable("ROTO_PLAYER"); }); modelBuilder.Entity("DotNetCoreSqlDb.Models.Todo", b => { b.Property<int>("ID") .ValueGeneratedOnAdd(); b.Property<DateTime>("CreatedDate"); b.Property<string>("Description"); b.HasKey("ID"); b.ToTable("Todo"); }); #pragma warning restore 612, 618 } } }
28.638889
75
0.526188
[ "MIT" ]
VincentWyin/dotnetcore-sqldb-tutorial
Migrations/20191024121459_UpdateEntityKey.Designer.cs
2,064
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //#define PBRS_PAINT_DEBUG using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Globalization; using System.Runtime.InteropServices; using System.Windows.Forms.Design; using System.Windows.Forms.Internal; using System.Windows.Forms.VisualStyles; namespace System.Windows.Forms.PropertyGridInternal { /// <summary> /// Base Entry for properties to be displayed in properties window. /// </summary> internal abstract class GridEntry : GridItem, ITypeDescriptorContext { protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); private static readonly BooleanSwitch PbrsAssertPropsSwitch = new BooleanSwitch("PbrsAssertProps", "PropertyBrowser : Assert on broken properties"); internal static AttributeTypeSorter AttributeTypeSorter = new AttributeTypeSorter(); // Type flags internal const int FLAG_TEXT_EDITABLE = 0x0001; internal const int FLAG_ENUMERABLE = 0x0002; internal const int FLAG_CUSTOM_PAINT = 0x0004; internal const int FLAG_IMMEDIATELY_EDITABLE = 0x0008; internal const int FLAG_CUSTOM_EDITABLE = 0x0010; internal const int FLAG_DROPDOWN_EDITABLE = 0x0020; internal const int FLAG_LABEL_BOLD = 0x0040; internal const int FLAG_READONLY_EDITABLE = 0x0080; internal const int FLAG_RENDER_READONLY = 0x0100; internal const int FLAG_IMMUTABLE = 0x0200; internal const int FLAG_FORCE_READONLY = 0x0400; internal const int FLAG_RENDER_PASSWORD = 0x1000; internal const int FLAG_DISPOSED = 0x2000; internal const int FL_EXPAND = 0x00010000; internal const int FL_EXPANDABLE = 0x00020000; //protected const int FL_EXPANDABLE_VALID = 0x00040000; internal const int FL_EXPANDABLE_FAILED = 0x00080000; internal const int FL_NO_CUSTOM_PAINT = 0x00100000; internal const int FL_CATEGORIES = 0x00200000; internal const int FL_CHECKED = unchecked((int)0x80000000); // rest are GridEntry constants. protected const int NOTIFY_RESET = 1; protected const int NOTIFY_CAN_RESET = 2; protected const int NOTIFY_DBL_CLICK = 3; protected const int NOTIFY_SHOULD_PERSIST = 4; protected const int NOTIFY_RETURN = 5; protected const int OUTLINE_ICON_PADDING = 5; protected static IComparer DisplayNameComparer = new DisplayNameSortComparer(); private static char passwordReplaceChar; //Maximum number of characters we'll show in the property grid. Too many characters leads //to bad performance. private const int maximumLengthOfPropertyString = 1000; [Flags] internal enum PaintValueFlags { None = 0, DrawSelected = 0x1, FetchValue = 0x2, CheckShouldSerialize = 0x4, PaintInPlace = 0x8 } private class CacheItems { public string lastLabel; public Font lastLabelFont; public int lastLabelWidth; public string lastValueString; public Font lastValueFont; public int lastValueTextWidth; public object lastValue; public bool useValueString; public bool lastShouldSerialize; public bool useShouldSerialize; public bool useCompatTextRendering; } private CacheItems cacheItems; // instance variables. protected TypeConverter converter = null; protected UITypeEditor editor = null; internal GridEntry parentPE = null; private GridEntryCollection childCollection = null; internal int flags = 0; private int propertyDepth = 0; protected bool hasFocus = false; private Rectangle outlineRect = Rectangle.Empty; protected PropertySort PropertySort; protected Point labelTipPoint = InvalidPoint; protected Point valueTipPoint = InvalidPoint; protected PropertyGrid ownerGrid; private static readonly object EVENT_VALUE_CLICK = new object(); private static readonly object EVENT_LABEL_CLICK = new object(); private static readonly object EVENT_OUTLINE_CLICK = new object(); private static readonly object EVENT_VALUE_DBLCLICK = new object(); private static readonly object EVENT_LABEL_DBLCLICK = new object(); private static readonly object EVENT_OUTLINE_DBLCLICK = new object(); private static readonly object EVENT_RECREATE_CHILDREN = new object(); private GridEntryAccessibleObject accessibleObject = null; private bool lastPaintWithExplorerStyle = false; private static Color InvertColor(Color color) { return Color.FromArgb(color.A, (byte)~color.R, (byte)~color.G, (byte)~color.B); } protected GridEntry(PropertyGrid owner, GridEntry peParent) { parentPE = peParent; ownerGrid = owner; Debug.Assert(ownerGrid != null, "GridEntry w/o PropertyGrid owner, text rendering will fail."); if (peParent != null) { propertyDepth = peParent.PropertyDepth + 1; PropertySort = peParent.PropertySort; if (peParent.ForceReadOnly) { flags |= FLAG_FORCE_READONLY; } } else { propertyDepth = -1; } } /// <summary> /// Outline Icon padding /// </summary> private int OutlineIconPadding { get { if (DpiHelper.IsScalingRequirementMet) { if (GridEntryHost != null) { return GridEntryHost.LogicalToDeviceUnits(OUTLINE_ICON_PADDING); } } return OUTLINE_ICON_PADDING; } } private bool colorInversionNeededInHC { get { return SystemInformation.HighContrast && !OwnerGrid.developerOverride; } } public AccessibleObject AccessibilityObject { get { if (accessibleObject == null) { accessibleObject = GetAccessibilityObject(); } return accessibleObject; } } protected virtual GridEntryAccessibleObject GetAccessibilityObject() { return new GridEntryAccessibleObject(this); } /// <summary> /// specify that this grid entry should be allowed to be merged for. /// multi-select. /// </summary> public virtual bool AllowMerge { get { return true; } } internal virtual bool AlwaysAllowExpand { get { return false; } } internal virtual AttributeCollection Attributes { get { return TypeDescriptor.GetAttributes(PropertyType); } } /// <summary> /// Gets the value of the background brush to use. Override /// this member to cause the entry to paint it's background in a different color. /// The base implementation returns null. /// </summary> protected virtual Brush GetBackgroundBrush(Graphics g) { return GridEntryHost.GetBackgroundBrush(g); } protected virtual Color LabelTextColor { get { if (ShouldRenderReadOnly) { return GridEntryHost.GrayTextColor; } else { return GridEntryHost.GetTextColor(); } } } /// <summary> /// The set of attributes that will be used for browse filtering /// </summary> public virtual AttributeCollection BrowsableAttributes { get { if (parentPE != null) { return parentPE.BrowsableAttributes; } return null; } set { parentPE.BrowsableAttributes = value; } } /// <summary> /// Retrieves the component that is invoking the /// method on the formatter object. This may /// return null if there is no component /// responsible for the call. /// </summary> public virtual IComponent Component { get { object owner = GetValueOwner(); if (owner is IComponent) { return (IComponent)owner; } if (parentPE != null) { return parentPE.Component; } return null; } } protected virtual IComponentChangeService ComponentChangeService { get { return parentPE.ComponentChangeService; } } /// <summary> /// Retrieves the container that contains the /// set of objects this formatter may work /// with. It may return null if there is no /// container, or of the formatter should not /// use any outside objects. /// </summary> public virtual IContainer Container { get { IComponent component = Component; if (component != null) { ISite site = component.Site; if (site != null) { return site.Container; } } return null; } } protected GridEntryCollection ChildCollection { get { if (childCollection == null) { childCollection = new GridEntryCollection(this, null); } return childCollection; } set { Debug.Assert(value == null || !Disposed, "Why are we putting new children in after we are disposed?"); if (childCollection != value) { if (childCollection != null) { childCollection.Dispose(); childCollection = null; } childCollection = value; } } } public int ChildCount { get { if (Children != null) { return Children.Count; } return 0; } } public virtual GridEntryCollection Children { get { if (childCollection == null && !Disposed) { CreateChildren(); } return childCollection; } } public virtual PropertyTab CurrentTab { get { if (parentPE != null) { return parentPE.CurrentTab; } return null; } set { if (parentPE != null) { parentPE.CurrentTab = value; } } } /// <summary> /// Returns the default child GridEntry of this item. Usually the default property /// of the target object. /// </summary> internal virtual GridEntry DefaultChild { get { return null; } set { } } internal virtual IDesignerHost DesignerHost { get { if (parentPE != null) { return parentPE.DesignerHost; } return null; } set { if (parentPE != null) { parentPE.DesignerHost = value; } } } internal bool Disposed { get { return GetFlagSet(FLAG_DISPOSED); } } internal virtual bool Enumerable { get { return (Flags & GridEntry.FLAG_ENUMERABLE) != 0; } } public override bool Expandable { get { bool fExpandable = GetFlagSet(FL_EXPANDABLE); if (fExpandable && childCollection != null && childCollection.Count > 0) { return true; } if (GetFlagSet(FL_EXPANDABLE_FAILED)) { return false; } if (fExpandable && (cacheItems == null || cacheItems.lastValue == null) && PropertyValue == null) { fExpandable = false; } return fExpandable; } } public override bool Expanded { get { return InternalExpanded; } set { GridEntryHost.SetExpand(this, value); } } internal virtual bool ForceReadOnly { get { return (flags & FLAG_FORCE_READONLY) != 0; } } internal virtual bool InternalExpanded { get { // short circuit if we don't have children if (childCollection == null || childCollection.Count == 0) { return false; } return GetFlagSet(FL_EXPAND); } set { if (!Expandable || value == InternalExpanded) { return; } if (childCollection != null && childCollection.Count > 0) { SetFlag(FL_EXPAND, value); } else { SetFlag(FL_EXPAND, false); if (value) { bool fMakeSure = CreateChildren(); SetFlag(FL_EXPAND, fMakeSure); } } // Notify accessibility clients of expanded state change // StateChange requires NameChange, too - accessible clients won't see this, unless both events are raised // Root item is hidden and should not raise events if (GridItemType != GridItemType.Root) { int id = ((PropertyGridView)GridEntryHost).AccessibilityGetGridEntryChildID(this); if (id >= 0) { PropertyGridView.PropertyGridViewAccessibleObject gridAccObj = (PropertyGridView.PropertyGridViewAccessibleObject)((PropertyGridView)GridEntryHost).AccessibilityObject; gridAccObj.NotifyClients(AccessibleEvents.StateChange, id); gridAccObj.NotifyClients(AccessibleEvents.NameChange, id); } } } } internal virtual int Flags { get { if ((flags & FL_CHECKED) != 0) { return flags; } flags |= FL_CHECKED; TypeConverter converter = TypeConverter; UITypeEditor uiEditor = UITypeEditor; object value = Instance; bool forceReadOnly = ForceReadOnly; if (value != null) { forceReadOnly |= TypeDescriptor.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly); } if (converter.GetStandardValuesSupported(this)) { flags |= GridEntry.FLAG_ENUMERABLE; } if (!forceReadOnly && converter.CanConvertFrom(this, typeof(string)) && !converter.GetStandardValuesExclusive(this)) { flags |= GridEntry.FLAG_TEXT_EDITABLE; } bool isImmutableReadOnly = TypeDescriptor.GetAttributes(PropertyType)[typeof(ImmutableObjectAttribute)].Equals(ImmutableObjectAttribute.Yes); bool isImmutable = isImmutableReadOnly || converter.GetCreateInstanceSupported(this); if (isImmutable) { flags |= GridEntry.FLAG_IMMUTABLE; } if (converter.GetPropertiesSupported(this)) { flags |= GridEntry.FL_EXPANDABLE; // If we're exapndable, but we don't support editing, // make us read only editable so we don't paint grey. // if (!forceReadOnly && (flags & GridEntry.FLAG_TEXT_EDITABLE) == 0 && !isImmutableReadOnly) { flags |= GridEntry.FLAG_READONLY_EDITABLE; } } if (Attributes.Contains(PasswordPropertyTextAttribute.Yes)) { flags |= GridEntry.FLAG_RENDER_PASSWORD; } if (uiEditor != null) { if (uiEditor.GetPaintValueSupported(this)) { flags |= GridEntry.FLAG_CUSTOM_PAINT; } // We only allow drop-downs if the object is NOT being inherited // I would really rather this not be here, but we have other places where // we make read-only properties editable if they have drop downs. Not // sure this is the right thing...is it? bool allowButtons = !forceReadOnly; if (allowButtons) { switch (uiEditor.GetEditStyle(this)) { case UITypeEditorEditStyle.Modal: flags |= GridEntry.FLAG_CUSTOM_EDITABLE; if (!isImmutable && !PropertyType.IsValueType) { flags |= GridEntry.FLAG_READONLY_EDITABLE; } break; case UITypeEditorEditStyle.DropDown: flags |= GridEntry.FLAG_DROPDOWN_EDITABLE; break; } } } return flags; } set { flags = value; } } /// <summary> /// Checks if the entry is currently expanded /// </summary> public bool Focus { get { return hasFocus; } set { if (Disposed) { return; } if (cacheItems != null) { cacheItems.lastValueString = null; cacheItems.useValueString = false; cacheItems.useShouldSerialize = false; } if (hasFocus != value) { hasFocus = value; // Notify accessibility applications that keyboard focus has changed. // if (value == true) { int id = ((PropertyGridView)GridEntryHost).AccessibilityGetGridEntryChildID(this); if (id >= 0) { PropertyGridView.PropertyGridViewAccessibleObject gridAccObj = (PropertyGridView.PropertyGridViewAccessibleObject)((PropertyGridView)GridEntryHost).AccessibilityObject; gridAccObj.NotifyClients(AccessibleEvents.Focus, id); gridAccObj.NotifyClients(AccessibleEvents.Selection, id); AccessibilityObject.SetFocus(); } } } } } /// <summary> /// Returns the label including the object name, and properties. For example, the value /// of the Font size property on a Button called Button1 would be "Button1.Font.Size" /// </summary> public string FullLabel { get { string str = null; if (parentPE != null) { str = parentPE.FullLabel; } if (str != null) { str += "."; } else { str = string.Empty; } str += PropertyLabel; return str; } } public override GridItemCollection GridItems { get { if (Disposed) { throw new ObjectDisposedException(SR.GridItemDisposed); } if (IsExpandable && childCollection != null && childCollection.Count == 0) { CreateChildren(); } return Children; } } internal virtual PropertyGridView GridEntryHost { get { // ACCESSOR: virtual was missing from this get if (parentPE != null) { return parentPE.GridEntryHost; } return null; } set { throw new NotSupportedException(); } } public override GridItemType GridItemType { get { return GridItemType.Property; } } /// <summary> /// Returns true if this GridEntry has a value field in the right hand column. /// </summary> internal virtual bool HasValue { get { return true; } } /// <summary> /// Retrieves the keyword that the VS help dynamic help window will /// use when this IPE is selected. /// </summary> public virtual string HelpKeyword { get { string keyWord = null; if (parentPE != null) { keyWord = parentPE.HelpKeyword; } if (keyWord == null) { keyWord = string.Empty; } return keyWord; } } internal virtual string HelpKeywordInternal { get { return HelpKeyword; } } public virtual bool IsCustomPaint { get { // prevent full flag population if possible. if ((flags & FL_CHECKED) == 0) { UITypeEditor typeEd = UITypeEditor; if (typeEd != null) { if ((flags & GridEntry.FLAG_CUSTOM_PAINT) != 0 || (flags & GridEntry.FL_NO_CUSTOM_PAINT) != 0) { return (flags & GridEntry.FLAG_CUSTOM_PAINT) != 0; } if (typeEd.GetPaintValueSupported(this)) { flags |= GridEntry.FLAG_CUSTOM_PAINT; return true; } else { flags |= GridEntry.FL_NO_CUSTOM_PAINT; return false; } } } return (Flags & GridEntry.FLAG_CUSTOM_PAINT) != 0; } } public virtual bool IsExpandable { get { return Expandable; } set { if (value != GetFlagSet(FL_EXPANDABLE)) { SetFlag(FL_EXPANDABLE_FAILED, false); SetFlag(FL_EXPANDABLE, value); } } } public virtual bool IsTextEditable { get { return IsValueEditable && (Flags & GridEntry.FLAG_TEXT_EDITABLE) != 0; } } public virtual bool IsValueEditable { get { return !ForceReadOnly && 0 != (Flags & (GridEntry.FLAG_DROPDOWN_EDITABLE | GridEntry.FLAG_TEXT_EDITABLE | GridEntry.FLAG_CUSTOM_EDITABLE | GridEntry.FLAG_ENUMERABLE)); } } /// <summary> /// Retrieves the component that is invoking the /// method on the formatter object. This may /// return null if there is no component /// responsible for the call. /// </summary> public virtual object Instance { get { object owner = GetValueOwner(); if (parentPE != null && owner == null) { return parentPE.Instance; } return owner; } } public override string Label { get { return PropertyLabel; } } /// <summary> /// Retrieves the PropertyDescriptor that is surfacing the given object/ /// </summary> public override PropertyDescriptor PropertyDescriptor { get { return null; } } /// <summary> /// Returns the pixel indent of the current GridEntry's label. /// </summary> internal virtual int PropertyLabelIndent { get { int borderWidth = GridEntryHost.GetOutlineIconSize() + OUTLINE_ICON_PADDING; return ((propertyDepth + 1) * borderWidth) + 1; } } internal virtual Point GetLabelToolTipLocation(int mouseX, int mouseY) { return labelTipPoint; } internal virtual string LabelToolTipText { get { return PropertyLabel; } } public virtual bool NeedsDropDownButton { get { return (Flags & GridEntry.FLAG_DROPDOWN_EDITABLE) != 0; } } public virtual bool NeedsCustomEditorButton { get { return (Flags & GridEntry.FLAG_CUSTOM_EDITABLE) != 0 && (IsValueEditable || (Flags & GridEntry.FLAG_READONLY_EDITABLE) != 0); } } public PropertyGrid OwnerGrid { get { return ownerGrid; } } /// <summary> /// Returns rect that the outline icon (+ or - or arrow) will be drawn into, relative /// to the upper left corner of the GridEntry. /// </summary> public Rectangle OutlineRect { get { if (!outlineRect.IsEmpty) { return outlineRect; } PropertyGridView gridHost = GridEntryHost; Debug.Assert(gridHost != null, "No propEntryHost!"); int outlineSize = gridHost.GetOutlineIconSize(); int borderWidth = outlineSize + OutlineIconPadding; int left = (propertyDepth * borderWidth) + (OutlineIconPadding) / 2; int top = (gridHost.GetGridEntryHeight() - outlineSize) / 2; outlineRect = new Rectangle(left, top, outlineSize, outlineSize); return outlineRect; } set { // set property is required to reset cached value when dpi changed. if (value != outlineRect) { outlineRect = value; } } } public virtual GridEntry ParentGridEntry { get { return parentPE; } set { Debug.Assert(value != this, "how can we be our own parent?"); parentPE = value; if (value != null) { propertyDepth = value.PropertyDepth + 1; // Microsoft, why do we do this? if (childCollection != null) { for (int i = 0; i < childCollection.Count; i++) { childCollection.GetEntry(i).ParentGridEntry = this; } } } } } public override GridItem Parent { get { if (Disposed) { throw new ObjectDisposedException(SR.GridItemDisposed); } GridItem parent = ParentGridEntry; // don't allow walking all the way up to the parent. // //if (parent is IRootGridEntry) { // return null; //} return parent; } } /// <summary> /// Returns category name of the current property /// </summary> public virtual string PropertyCategory { get { return CategoryAttribute.Default.Category; } } /// <summary> /// Returns "depth" of this property. That is, how many parent's between /// this property and the root property. The root property has a depth of -1. /// </summary> public virtual int PropertyDepth { get { return propertyDepth; } } /// <summary> /// Returns the description helpstring for this GridEntry. /// </summary> public virtual string PropertyDescription { get { return null; } } /// <summary> /// Returns the label of this property. Usually /// this is the property name. /// </summary> public virtual string PropertyLabel { get { return null; } } /// <summary> /// Returns non-localized name of this property. /// </summary> public virtual string PropertyName { get { return PropertyLabel; } } /// <summary> /// Returns the Type of the value of this GridEntry, or null if the value is null. /// </summary> public virtual Type PropertyType { get { object obj = PropertyValue; if (obj != null) { return obj.GetType(); } else { return null; } } } /// <summary> /// Gets or sets the value for the property that is represented /// by this GridEntry. /// </summary> public virtual object PropertyValue { get { if (cacheItems != null) { return cacheItems.lastValue; } return null; } set { } } public virtual bool ShouldRenderPassword { get { return (Flags & GridEntry.FLAG_RENDER_PASSWORD) != 0; } } public virtual bool ShouldRenderReadOnly { get { return ForceReadOnly || (0 != (Flags & GridEntry.FLAG_RENDER_READONLY) || (!IsValueEditable && (0 == (Flags & GridEntry.FLAG_READONLY_EDITABLE)))); } } /// <summary> /// Returns the type converter for this entry. /// </summary> internal virtual TypeConverter TypeConverter { get { if (converter == null) { object value = PropertyValue; if (value == null) { converter = TypeDescriptor.GetConverter(PropertyType); } else { converter = TypeDescriptor.GetConverter(value); } } return converter; } } /// <summary> /// Returns the type editor for this entry. This may return null if there /// is no type editor. /// </summary> internal virtual UITypeEditor UITypeEditor { get { if (editor == null && PropertyType != null) { editor = (UITypeEditor)TypeDescriptor.GetEditor(PropertyType, typeof(UITypeEditor)); } return editor; } } public override object Value { get { return PropertyValue; } // note: we don't do set because of the value class semantics, etc. } internal Point ValueToolTipLocation { get { return ShouldRenderPassword ? InvalidPoint : valueTipPoint; } set { valueTipPoint = value; } } internal int VisibleChildCount { get { if (!Expanded) { return 0; } int count = ChildCount; int totalCount = count; for (int i = 0; i < count; i++) { totalCount += ChildCollection.GetEntry(i).VisibleChildCount; } return totalCount; } } /// <summary> /// Add an event handler to be invoked when the label portion of /// the prop entry is clicked /// </summary> public virtual void AddOnLabelClick(EventHandler h) { AddEventHandler(EVENT_LABEL_CLICK, h); } /// <summary> /// Add an event handler to be invoked when the label portion of /// the prop entry is double /// </summary> public virtual void AddOnLabelDoubleClick(EventHandler h) { AddEventHandler(EVENT_LABEL_DBLCLICK, h); } /// <summary> /// Add an event handler to be invoked when the value portion of /// the prop entry is clicked /// </summary> public virtual void AddOnValueClick(EventHandler h) { AddEventHandler(EVENT_VALUE_CLICK, h); } /// <summary> /// Add an event handler to be invoked when the value portion of /// the prop entry is double-clicked /// </summary> public virtual void AddOnValueDoubleClick(EventHandler h) { AddEventHandler(EVENT_VALUE_DBLCLICK, h); } /// <summary> /// Add an event handler to be invoked when the outline icone portion of /// the prop entry is clicked /// </summary> public virtual void AddOnOutlineClick(EventHandler h) { AddEventHandler(EVENT_OUTLINE_CLICK, h); } /// <summary> /// Add an event handler to be invoked when the outline icone portion of /// the prop entry is double clicked /// </summary> public virtual void AddOnOutlineDoubleClick(EventHandler h) { AddEventHandler(EVENT_OUTLINE_DBLCLICK, h); } /// <summary> /// Add an event handler to be invoked when the children grid entries are re-created. /// </summary> public virtual void AddOnRecreateChildren(GridEntryRecreateChildrenEventHandler h) { AddEventHandler(EVENT_RECREATE_CHILDREN, h); } internal void ClearCachedValues() { ClearCachedValues(true); } internal void ClearCachedValues(bool clearChildren) { if (cacheItems != null) { cacheItems.useValueString = false; cacheItems.lastValue = null; cacheItems.useShouldSerialize = false; } if (clearChildren) { for (int i = 0; i < ChildCollection.Count; i++) { ChildCollection.GetEntry(i).ClearCachedValues(); } } } /// <summary> /// Converts the given string of text to a value. /// </summary> public object ConvertTextToValue(string text) { if (TypeConverter.CanConvertFrom(this, typeof(string))) { return TypeConverter.ConvertFromString(this, text); } return text; } /// <summary> /// Create the base prop entries given an object or set of objects /// </summary> internal static IRootGridEntry Create(PropertyGridView view, object[] rgobjs, IServiceProvider baseProvider, IDesignerHost currentHost, PropertyTab tab, PropertySort initialSortType) { IRootGridEntry pe = null; if (rgobjs == null || rgobjs.Length == 0) { return null; } try { if (rgobjs.Length == 1) { pe = new SingleSelectRootGridEntry(view, rgobjs[0], baseProvider, currentHost, tab, initialSortType); } else { pe = new MultiSelectRootGridEntry(view, rgobjs, baseProvider, currentHost, tab, initialSortType); } } catch (Exception e) { //Debug.fail("Couldn't create a top-level GridEntry"); Debug.Fail(e.ToString()); throw; } return pe; } /// <summary> /// Populates the children of this grid entry /// </summary> protected virtual bool CreateChildren() { return CreateChildren(false); } /// <summary> /// Populates the children of this grid entry /// </summary> protected virtual bool CreateChildren(bool diffOldChildren) { Debug.Assert(!Disposed, "Why are we creating children after we are disposed?"); if (!GetFlagSet(FL_EXPANDABLE)) { if (childCollection != null) { childCollection.Clear(); } else { childCollection = new GridEntryCollection(this, Array.Empty<GridEntry>()); } return false; } if (!diffOldChildren && childCollection != null && childCollection.Count > 0) { return true; } GridEntry[] childProps = GetPropEntries(this, PropertyValue, PropertyType); bool fExpandable = (childProps != null && childProps.Length > 0); if (diffOldChildren && childCollection != null && childCollection.Count > 0) { bool same = true; if (childProps.Length == childCollection.Count) { for (int i = 0; i < childProps.Length; i++) { if (!childProps[i].NonParentEquals(childCollection[i])) { same = false; break; } } } else { same = false; } if (same) { return true; } } if (!fExpandable) { SetFlag(FL_EXPANDABLE_FAILED, true); if (childCollection != null) { childCollection.Clear(); } else { childCollection = new GridEntryCollection(this, Array.Empty<GridEntry>()); } if (InternalExpanded) { InternalExpanded = false; } } else { if (childCollection != null) { childCollection.Clear(); childCollection.AddRange(childProps); } else { childCollection = new GridEntryCollection(this, childProps); } } return fExpandable; } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { // make sure we don't accidentally // check flags in this state... flags |= FL_CHECKED; SetFlag(FLAG_DISPOSED, true); cacheItems = null; converter = null; editor = null; accessibleObject = null; if (disposing) { DisposeChildren(); } } /// <summary> /// Disposes the array of children /// </summary> public virtual void DisposeChildren() { if (childCollection != null) { childCollection.Dispose(); childCollection = null; } } ~GridEntry() { Dispose(false); } /// <summary> /// Invokes the type editor for editing this item. /// </summary> internal virtual void EditPropertyValue(PropertyGridView iva) { if (UITypeEditor != null) { try { // Since edit value can push a modal loop // there is a chance that this gridentry will be zombied before // it returns. Make sure we're not disposed. // object originalValue = PropertyValue; object value = UITypeEditor.EditValue(this, (IServiceProvider)(ITypeDescriptorContext)this, originalValue); if (Disposed) { return; } // Push the new value back into the property if (value != originalValue && IsValueEditable) { iva.CommitValue(this, value); } if (InternalExpanded) { // QFE#3299: If edited property is expanded to show sub-properties, then we want to // preserve the expanded states of it and all of its descendants. RecreateChildren() // has logic that is supposed to do this, but which is fundamentally flawed. PropertyGridView.GridPositionData positionData = GridEntryHost.CaptureGridPositionData(); InternalExpanded = false; RecreateChildren(); positionData.Restore(GridEntryHost); } else { // If edited property has no children or is collapsed, don't need to preserve expanded states. // This limits the scope of the above QFE fix to just those cases where it is actually required. RecreateChildren(); } } catch (Exception e) { IUIService uiSvc = (IUIService)GetService(typeof(IUIService)); if (uiSvc != null) { uiSvc.ShowError(e); } else { RTLAwareMessageBox.Show(GridEntryHost, e.Message, SR.PBRSErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0); } } } } /// <summary> /// Tests two GridEntries for equality /// </summary> public override bool Equals(object obj) { if (NonParentEquals(obj)) { return ((GridEntry)obj).ParentGridEntry == ParentGridEntry; } return false; } /// <summary> /// Searches for a value of a given property for a value editor user /// </summary> public virtual object FindPropertyValue(string propertyName, Type propertyType) { object owner = GetValueOwner(); PropertyDescriptor property = TypeDescriptor.GetProperties(owner)[propertyName]; if (property != null && property.PropertyType == propertyType) { return property.GetValue(owner); } if (parentPE != null) { return parentPE.FindPropertyValue(propertyName, propertyType); } return null; } /// <summary> /// Returns the index of a child GridEntry /// </summary> internal virtual int GetChildIndex(GridEntry pe) { return Children.GetEntry(pe); } /// <summary> /// Gets the components that own the current value. This is usually the value of the /// root entry, which is the object being browsed. Walks up the GridEntry tree /// looking for an owner that is an IComponent /// </summary> public virtual IComponent[] GetComponents() { IComponent component = Component; if (component != null) { return new IComponent[] { component }; } return null; } protected int GetLabelTextWidth(string labelText, Graphics g, Font f) { if (cacheItems == null) { cacheItems = new CacheItems(); } else if (cacheItems.useCompatTextRendering == ownerGrid.UseCompatibleTextRendering && cacheItems.lastLabel == labelText && f.Equals(cacheItems.lastLabelFont)) { return cacheItems.lastLabelWidth; } SizeF textSize = PropertyGrid.MeasureTextHelper.MeasureText(ownerGrid, g, labelText, f); cacheItems.lastLabelWidth = (int)textSize.Width; cacheItems.lastLabel = labelText; cacheItems.lastLabelFont = f; cacheItems.useCompatTextRendering = ownerGrid.UseCompatibleTextRendering; return cacheItems.lastLabelWidth; } internal int GetValueTextWidth(string valueString, Graphics g, Font f) { if (cacheItems == null) { cacheItems = new CacheItems(); } else if (cacheItems.lastValueTextWidth != -1 && cacheItems.lastValueString == valueString && f.Equals(cacheItems.lastValueFont)) { return cacheItems.lastValueTextWidth; } // Value text is rendered using GDI directly (No TextRenderer) but measured/adjusted using GDI+ (since previous releases), so don't use MeasureTextHelper. cacheItems.lastValueTextWidth = (int)g.MeasureString(valueString, f).Width; cacheItems.lastValueString = valueString; cacheItems.lastValueFont = f; return cacheItems.lastValueTextWidth; } // To check if text contains multiple lines // internal bool GetMultipleLines(string valueString) { if (valueString.IndexOf('\n') > 0 || valueString.IndexOf('\r') > 0) { return true; } else { return false; } } /// <summary> /// Gets the owner of the current value. This is usually the value of the /// root entry, which is the object being browsed /// </summary> public virtual object GetValueOwner() { if (parentPE == null) { return PropertyValue; } return parentPE.GetChildValueOwner(this); } /// <summary> /// Gets the owners of the current value. This is usually the value of the /// root entry, which is the objects being browsed for a multiselect item /// </summary> public virtual object[] GetValueOwners() { object owner = GetValueOwner(); if (owner != null) { return new object[] { owner }; } return null; } /// <summary> /// Gets the owner of the current value. This is usually the value of the /// root entry, which is the object being browsed /// </summary> public virtual object GetChildValueOwner(GridEntry childEntry) { /*// make sure this is one of our children int index = GetChildIndex(childEntry); if (index != -1){ return this.PropertyValue; } Debug.Fail(childEntry.PropertyLabel + " is not a child of " + this.PropertyLabel); return null;*/ return PropertyValue; } /// <summary> /// Returns a string with info about the currently selected GridEntry /// </summary> public virtual string GetTestingInfo() { string str = "object = ("; string textVal = GetPropertyTextValue(); if (textVal == null) { textVal = "(null)"; } else { // make sure we clear any embedded nulls textVal = textVal.Replace((char)0, ' '); } Type type = PropertyType; if (type == null) { type = typeof(object); } str += FullLabel; str += "), property = (" + PropertyLabel + "," + type.AssemblyQualifiedName + "), value = " + "[" + textVal + "], expandable = " + Expandable.ToString() + ", readOnly = " + ShouldRenderReadOnly; ; return str; } /// <summary> /// Retrieves the type of the value for this GridEntry /// </summary> public virtual Type GetValueType() { return PropertyType; } /// <summary> /// Returns the child GridEntries for this item. /// </summary> protected virtual GridEntry[] GetPropEntries(GridEntry peParent, object obj, Type objType) { // we don't want to create subprops for null objects. if (obj == null) { return null; } GridEntry[] entries = null; Attribute[] attributes = new Attribute[BrowsableAttributes.Count]; BrowsableAttributes.CopyTo(attributes, 0); PropertyTab tab = CurrentTab; Debug.Assert(tab != null, "No current tab!"); try { bool forceReadOnly = ForceReadOnly; if (!forceReadOnly) { ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.GetAttributes(obj)[typeof(ReadOnlyAttribute)]; forceReadOnly = (readOnlyAttr != null && !readOnlyAttr.IsDefaultAttribute()); } // do we want to expose sub properties? // if (TypeConverter.GetPropertiesSupported(this) || AlwaysAllowExpand) { // ask the tab if we have one. // PropertyDescriptorCollection props = null; PropertyDescriptor defProp = null; if (tab != null) { props = tab.GetProperties(this, obj, attributes); defProp = tab.GetDefaultProperty(obj); } else { props = TypeConverter.GetProperties(this, obj, attributes); defProp = TypeDescriptor.GetDefaultProperty(obj); } if (props == null) { return null; } if ((PropertySort & PropertySort.Alphabetical) != 0) { if (objType == null || !objType.IsArray) { props = props.Sort(GridEntry.DisplayNameComparer); } PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[props.Count]; props.CopyTo(propertyDescriptors, 0); props = new PropertyDescriptorCollection(SortParenProperties(propertyDescriptors)); } if (defProp == null && props.Count > 0) { defProp = props[0]; } // if the target object is an array and nothing else has provided a set of // properties to use, then expand the array. // if ((props == null || props.Count == 0) && objType != null && objType.IsArray && obj != null) { Array objArray = (Array)obj; entries = new GridEntry[objArray.Length]; for (int i = 0; i < entries.Length; i++) { entries[i] = new ArrayElementGridEntry(ownerGrid, peParent, i); } } else { // otherwise, create the proper GridEntries. // bool createInstanceSupported = TypeConverter.GetCreateInstanceSupported(this); entries = new GridEntry[props.Count]; int index = 0; // loop through all the props we got and create property descriptors. // foreach (PropertyDescriptor pd in props) { GridEntry newEntry; // make sure we've got a valid property, otherwise hide it // bool hide = false; try { object owner = obj; if (obj is ICustomTypeDescriptor) { owner = ((ICustomTypeDescriptor)obj).GetPropertyOwner(pd); } pd.GetValue(owner); } catch (Exception w) { if (PbrsAssertPropsSwitch.Enabled) { Debug.Fail("Bad property '" + peParent.PropertyLabel + "." + pd.Name + "': " + w.ToString()); } hide = true; } if (createInstanceSupported) { newEntry = new ImmutablePropertyDescriptorGridEntry(ownerGrid, peParent, pd, hide); } else { newEntry = new PropertyDescriptorGridEntry(ownerGrid, peParent, pd, hide); } if (forceReadOnly) { newEntry.flags |= FLAG_FORCE_READONLY; } // check to see if we've come across the default item. // if (pd.Equals(defProp)) { DefaultChild = newEntry; } // add it to the array. // entries[index++] = newEntry; } } } } catch (Exception e) { #if DEBUG if (PbrsAssertPropsSwitch.Enabled) { // Checked builds are not giving us enough information here. So, output as much stuff as // we can. Text.StringBuilder b = new Text.StringBuilder(); b.Append(string.Format(CultureInfo.CurrentCulture, "********* Debug log written on {0} ************\r\n", DateTime.Now)); b.Append(string.Format(CultureInfo.CurrentCulture, "Exception '{0}' reading properties for object {1}.\r\n", e.GetType().Name, obj)); b.Append(string.Format(CultureInfo.CurrentCulture, "Exception Text: \r\n{0}", e.ToString())); b.Append(string.Format(CultureInfo.CurrentCulture, "Exception stack: \r\n{0}", e.StackTrace)); string path = string.Format(CultureInfo.CurrentCulture, "{0}\\PropertyGrid.log", Environment.GetEnvironmentVariable("SYSTEMDRIVE")); IO.FileStream s = new IO.FileStream(path, System.IO.FileMode.Append, System.IO.FileAccess.Write, System.IO.FileShare.None); IO.StreamWriter w = new IO.StreamWriter(s); w.Write(b.ToString()); w.Close(); s.Close(); RTLAwareMessageBox.Show(null, b.ToString(), string.Format(SR.PropertyGridInternalNoProp, path), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0); } #endif Debug.Fail("Failed to get properties: " + e.GetType().Name + "," + e.Message + "\n" + e.StackTrace); } return entries; } /// <summary> /// Resets the current item /// </summary> public virtual void ResetPropertyValue() { NotifyValue(NOTIFY_RESET); Refresh(); } /* /// <summary> /// Checks if the value of the current item can be modified by the user. /// </summary> /// <returns> /// True if the value can be modified /// </returns> public virtual bool CanSetPropertyValue() { return 0 != (Flags & (GridEntry.FLAG_DROPDOWN_EDITABLE | GridEntry.FLAG_TEXT_EDITABLE | GridEntry.FLAG_CUSTOM_EDITABLE | GridEntry.FLAG_ENUMERABLE)); } */ /* /// <summary> /// Returns if it's an editable item. An example of a readonly /// editable item is a collection property -- the property itself /// can not be modified, but it's value (e.g. it's children) can, so /// we don't want to draw it as readonly. /// </summary> /// <returns> /// True if the value associated with this property (e.g. it's children) can be modified even if it's readonly. /// </returns> public virtual bool CanSetReadOnlyPropertyValue() { return GetFlagSet(GridEntry.FLAG_READONLY_EDITABLE); } */ /// <summary> /// Returns if the property can be reset /// </summary> public virtual bool CanResetPropertyValue() { return NotifyValue(NOTIFY_CAN_RESET); } /// <summary> /// Called when the item is double clicked. /// </summary> public virtual bool DoubleClickPropertyValue() { return NotifyValue(NOTIFY_DBL_CLICK); } /// <summary> /// Returns the text value of this property. /// </summary> public virtual string GetPropertyTextValue() { return GetPropertyTextValue(PropertyValue); } /// <summary> /// Returns the text value of this property. /// </summary> public virtual string GetPropertyTextValue(object value) { string str = null; TypeConverter converter = TypeConverter; try { str = converter.ConvertToString(this, value); } catch (Exception t) { Debug.Fail("Bad Type Converter! " + t.GetType().Name + ", " + t.Message + "," + converter.ToString(), t.ToString()); } if (str == null) { str = string.Empty; } return str; } /// <summary> /// Returns the text values of this property. /// </summary> public virtual object[] GetPropertyValueList() { ICollection values = TypeConverter.GetStandardValues(this); if (values != null) { object[] valueArray = new object[values.Count]; values.CopyTo(valueArray, 0); return valueArray; } return Array.Empty<object>(); } public override int GetHashCode() => HashCode.Combine(PropertyLabel, PropertyType, GetType()); /// <summary> /// Checks if a given flag is set /// </summary> protected virtual bool GetFlagSet(int flag) { return ((flag & Flags) != 0); } protected Font GetFont(bool boldFont) { if (boldFont) { return GridEntryHost.GetBoldFont(); } else { return GridEntryHost.GetBaseFont(); } } protected IntPtr GetHfont(bool boldFont) { if (boldFont) { return GridEntryHost.GetBoldHfont(); } else { return GridEntryHost.GetBaseHfont(); } } /// <summary> /// Retrieves the requested service. This may /// return null if the requested service is not /// available. /// </summary> public virtual object GetService(Type serviceType) { if (serviceType == typeof(GridItem)) { return (GridItem)this; } if (parentPE != null) { return parentPE.GetService(serviceType); } return null; } internal virtual bool NonParentEquals(object obj) { if (obj == this) { return true; } if (obj == null) { return false; } if (!(obj is GridEntry)) { return false; } GridEntry pe = (GridEntry)obj; return pe.PropertyLabel.Equals(PropertyLabel) && pe.PropertyType.Equals(PropertyType) && pe.PropertyDepth == PropertyDepth; } /// <summary> /// Paints the label portion of this GridEntry into the given Graphics object. This /// is called by the GridEntry host (the PropertyGridView) when this GridEntry is /// to be painted. /// </summary> public virtual void PaintLabel(Graphics g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) { PropertyGridView gridHost = GridEntryHost; Debug.Assert(gridHost != null, "No propEntryHost"); string strLabel = PropertyLabel; int borderWidth = gridHost.GetOutlineIconSize() + OUTLINE_ICON_PADDING; // fill the background if necessary Brush bkBrush = selected ? gridHost.GetSelectedItemWithFocusBackBrush(g) : GetBackgroundBrush(g); // if we don't have focus, paint with the line color if (selected && !hasFocus) { bkBrush = gridHost.GetLineBrush(g); } bool fBold = ((Flags & GridEntry.FLAG_LABEL_BOLD) != 0); Font font = GetFont(fBold); int labelWidth = GetLabelTextWidth(strLabel, g, font); int neededWidth = paintFullLabel ? labelWidth : 0; int stringX = rect.X + PropertyLabelIndent; Brush blank = bkBrush; if (paintFullLabel && (neededWidth >= (rect.Width - (stringX + 2)))) { int totalWidth = stringX + neededWidth + PropertyGridView.GDIPLUS_SPACE; // 5 = extra needed to ensure text draws completely and isn't clipped. #if PBRS_PAINT_DEBUG blank = Brushes.Green; #endif // blank out the space we're going to use g.FillRectangle(blank, borderWidth - 1, rect.Y, totalWidth - borderWidth + 3, rect.Height); // draw an end line Pen linePen = new Pen(gridHost.GetLineColor()); g.DrawLine(linePen, totalWidth, rect.Y, totalWidth, rect.Height); linePen.Dispose(); // set the new width that we can draw into rect.Width = totalWidth - rect.X; } else { // Normal case -- no pseudo-tooltip for the label #if PBRS_PAINT_DEBUG blank = Brushes.Red; #endif // Debug.WriteLine(rect.X.ToString() +" "+ rect.Y.ToString() +" "+ rect.Width.ToString() +" "+ rect.Height.ToString()); g.FillRectangle(blank, rect.X, rect.Y, rect.Width, rect.Height); } // draw the border stripe on the left Brush stripeBrush = gridHost.GetLineBrush(g); g.FillRectangle(stripeBrush, rect.X, rect.Y, borderWidth, rect.Height); if (selected && hasFocus) { g.FillRectangle(gridHost.GetSelectedItemWithFocusBackBrush(g), stringX, rect.Y, rect.Width - stringX - 1, rect.Height); } int maxSpace = Math.Min(rect.Width - stringX - 1, labelWidth + PropertyGridView.GDIPLUS_SPACE); Rectangle textRect = new Rectangle(stringX, rect.Y + 1, maxSpace, rect.Height - 1); if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) { Region oldClip = g.Clip; g.SetClip(textRect); //We need to Invert color only if in Highcontrast mode, targeting 4.7.1 and above, Gridcategory and not a developer override. This is required to achieve required contrast ratio. var shouldInvertForHC = colorInversionNeededInHC && (fBold || (selected && !hasFocus)); // Do actual drawing // A brush is needed if using GDI+ only (UseCompatibleTextRendering); if using GDI, only the color is needed. Color textColor = selected && hasFocus ? gridHost.GetSelectedItemWithFocusForeColor() : shouldInvertForHC ? InvertColor(ownerGrid.LineColor) : g.GetNearestColor(LabelTextColor); if (ownerGrid.UseCompatibleTextRendering) { using (Brush textBrush = new SolidBrush(textColor)) { StringFormat stringFormat = new StringFormat(StringFormatFlags.NoWrap) { Trimming = StringTrimming.None }; g.DrawString(strLabel, font, textBrush, textRect, stringFormat); } } else { TextRenderer.DrawText(g, strLabel, font, textRect, textColor, PropertyGrid.MeasureTextHelper.GetTextRendererFlags()); } #if PBRS_PAINT_DEBUG textRect.Width --; textRect.Height--; g.DrawRectangle(new Pen(Color.Blue), textRect); #endif g.SetClip(oldClip, CombineMode.Replace); oldClip.Dispose(); // clip is actually copied out. if (maxSpace <= labelWidth) { labelTipPoint = new Point(stringX + 2, rect.Y + 1); } else { labelTipPoint = InvalidPoint; } } rect.Y -= 1; rect.Height += 2; PaintOutline(g, rect); } /// <summary> /// Paints the outline portion of this GridEntry into the given Graphics object. This /// is called by the GridEntry host (the PropertyGridView) when this GridEntry is /// to be painted. /// </summary> public virtual void PaintOutline(Graphics g, Rectangle r) { // draw tree-view glyphs as triangles on Vista and Windows afterword // when Vistual style is enabled if (GridEntryHost.IsExplorerTreeSupported) { // size of Explorer Tree style glyph (triangle) is different from +/- glyph, // so when we change the visual style (such as changing Windows theme), // we need to recaculate outlineRect if (!lastPaintWithExplorerStyle) { outlineRect = Rectangle.Empty; lastPaintWithExplorerStyle = true; } PaintOutlineWithExplorerTreeStyle(g, r, (GridEntryHost != null) ? GridEntryHost.HandleInternal : IntPtr.Zero); } // draw tree-view glyphs as +/- else { // size of Explorer Tree style glyph (triangle) is different from +/- glyph, // so when we change the visual style (such as changing Windows theme), // we need to recaculate outlineRect if (lastPaintWithExplorerStyle) { outlineRect = Rectangle.Empty; lastPaintWithExplorerStyle = false; } PaintOutlineWithClassicStyle(g, r); } } private void PaintOutlineWithExplorerTreeStyle(Graphics g, Rectangle r, IntPtr handle) { if (Expandable) { bool fExpanded = InternalExpanded; Rectangle outline = OutlineRect; // make sure we're in our bounds outline = Rectangle.Intersect(r, outline); if (outline.IsEmpty) { return; } VisualStyleElement element = null; if (fExpanded) { element = VisualStyleElement.ExplorerTreeView.Glyph.Opened; } else { element = VisualStyleElement.ExplorerTreeView.Glyph.Closed; } // Invert color if it is not overriden by developer. if (colorInversionNeededInHC) { Color textColor = InvertColor(ownerGrid.LineColor); if (g != null) { Brush b = new SolidBrush(textColor); g.FillRectangle(b, outline); b.Dispose(); } } VisualStyleRenderer explorerTreeRenderer = new VisualStyleRenderer(element); explorerTreeRenderer.DrawBackground(g, outline, handle); } } private void PaintOutlineWithClassicStyle(Graphics g, Rectangle r) { // draw outline box. if (Expandable) { bool fExpanded = InternalExpanded; Rectangle outline = OutlineRect; // make sure we're in our bounds outline = Rectangle.Intersect(r, outline); if (outline.IsEmpty) { return; } // draw border area box Brush b = GetBackgroundBrush(g); Pen p; Color penColor = GridEntryHost.GetTextColor(); // inverting text color to back ground to get required contrast ratio if (colorInversionNeededInHC) { penColor = InvertColor(ownerGrid.LineColor); } else { // Filling rectangle as it was in all cases where we do not invert colors. g.FillRectangle(b, outline); } if (penColor.IsSystemColor) { p = SystemPens.FromSystemColor(penColor); } else { p = new Pen(penColor); } g.DrawRectangle(p, outline.X, outline.Y, outline.Width - 1, outline.Height - 1); // draw horizontal line for +/- int indent = 2; g.DrawLine(p, outline.X + indent, outline.Y + outline.Height / 2, outline.X + outline.Width - indent - 1, outline.Y + outline.Height / 2); // draw vertical line to make a + if (!fExpanded) { g.DrawLine(p, outline.X + outline.Width / 2, outline.Y + indent, outline.X + outline.Width / 2, outline.Y + outline.Height - indent - 1); } if (!penColor.IsSystemColor) { p.Dispose(); } } } /// <summary> /// Paints the value portion of this GridEntry into the given Graphics object. This /// is called by the GridEntry host (the PropertyGridView) when this GridEntry is /// to be painted. /// </summary> public virtual void PaintValue(object val, Graphics g, Rectangle rect, Rectangle clipRect, PaintValueFlags paintFlags) { PropertyGridView gridHost = GridEntryHost; Debug.Assert(gridHost != null, "No propEntryHost"); int cPaint = 0; Color textColor = gridHost.GetTextColor(); if (ShouldRenderReadOnly) { textColor = GridEntryHost.GrayTextColor; } string strValue; if ((paintFlags & PaintValueFlags.FetchValue) != PaintValueFlags.None) { if (cacheItems != null && cacheItems.useValueString) { strValue = cacheItems.lastValueString; val = cacheItems.lastValue; } else { val = PropertyValue; strValue = GetPropertyTextValue(val); if (cacheItems == null) { cacheItems = new CacheItems(); } cacheItems.lastValueString = strValue; cacheItems.useValueString = true; cacheItems.lastValueTextWidth = -1; cacheItems.lastValueFont = null; cacheItems.lastValue = val; } } else { strValue = GetPropertyTextValue(val); } // paint out the main rect using the appropriate brush Brush bkBrush = GetBackgroundBrush(g); Debug.Assert(bkBrush != null, "We didn't find a good background brush for PaintValue"); if ((paintFlags & PaintValueFlags.DrawSelected) != PaintValueFlags.None) { bkBrush = gridHost.GetSelectedItemWithFocusBackBrush(g); textColor = gridHost.GetSelectedItemWithFocusForeColor(); } Brush blank = bkBrush; #if PBRS_PAINT_DEBUG blank = Brushes.Yellow; #endif //g.FillRectangle(blank, rect.X-1, rect.Y, rect.Width+1, rect.Height); g.FillRectangle(blank, clipRect); if (IsCustomPaint) { cPaint = gridHost.GetValuePaintIndent(); Rectangle rectPaint = new Rectangle(rect.X + 1, rect.Y + 1, gridHost.GetValuePaintWidth(), gridHost.GetGridEntryHeight() - 2); if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) { UITypeEditor uie = UITypeEditor; if (uie != null) { uie.PaintValue(new PaintValueEventArgs(this, val, g, rectPaint)); } // paint a border around the area rectPaint.Width--; rectPaint.Height--; g.DrawRectangle(SystemPens.WindowText, rectPaint); } } rect.X += cPaint + gridHost.GetValueStringIndent(); rect.Width -= cPaint + 2 * gridHost.GetValueStringIndent(); // bold the property if we need to persist it (e.g. it's not the default value) bool valueModified = ((paintFlags & PaintValueFlags.CheckShouldSerialize) != PaintValueFlags.None) && ShouldSerializePropertyValue(); // If we have text to paint, paint it if (strValue != null && strValue.Length > 0) { Font f = GetFont(valueModified); if (strValue.Length > maximumLengthOfPropertyString) { strValue = strValue.Substring(0, maximumLengthOfPropertyString); } int textWidth = GetValueTextWidth(strValue, g, f); bool doToolTip = false; // To check if text contains multiple lines // if (textWidth >= rect.Width || GetMultipleLines(strValue)) { doToolTip = true; } if (Rectangle.Intersect(rect, clipRect).IsEmpty) { return; } // Do actual drawing //strValue = ReplaceCRLF(strValue); // bump the text down 2 pixels and over 1 pixel. if ((paintFlags & PaintValueFlags.PaintInPlace) != PaintValueFlags.None) { rect.Offset(1, 2); } else { // only go down one pixel when we're painting in the listbox rect.Offset(1, 1); } Matrix m = g.Transform; IntPtr hdc = g.GetHdc(); IntNativeMethods.RECT lpRect = IntNativeMethods.RECT.FromXYWH(rect.X + (int)m.OffsetX + 2, rect.Y + (int)m.OffsetY - 1, rect.Width - 4, rect.Height); IntPtr hfont = GetHfont(valueModified); int oldTextColor = 0; int oldBkColor = 0; Color bkColor = ((paintFlags & PaintValueFlags.DrawSelected) != PaintValueFlags.None) ? GridEntryHost.GetSelectedItemWithFocusBackColor() : GridEntryHost.BackColor; try { oldTextColor = SafeNativeMethods.SetTextColor(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(textColor.ToArgb())); oldBkColor = SafeNativeMethods.SetBkColor(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(bkColor.ToArgb())); hfont = Interop.Gdi32.SelectObject(hdc, hfont); int format = IntNativeMethods.DT_EDITCONTROL | IntNativeMethods.DT_EXPANDTABS | IntNativeMethods.DT_NOCLIP | IntNativeMethods.DT_SINGLELINE | IntNativeMethods.DT_NOPREFIX; if (gridHost.DrawValuesRightToLeft) { format |= IntNativeMethods.DT_RIGHT | IntNativeMethods.DT_RTLREADING; } // For password mode, replace the string value with a bullet. if (ShouldRenderPassword) { if (passwordReplaceChar == '\0') { // Bullet is 2022, but edit box uses round circle 25CF passwordReplaceChar = '\u25CF'; } strValue = new string(passwordReplaceChar, strValue.Length); } IntUnsafeNativeMethods.DrawText(new HandleRef(g, hdc), strValue, ref lpRect, format); } finally { SafeNativeMethods.SetTextColor(new HandleRef(g, hdc), oldTextColor); SafeNativeMethods.SetBkColor(new HandleRef(g, hdc), oldBkColor); hfont = Interop.Gdi32.SelectObject(hdc, hfont); g.ReleaseHdcInternal(hdc); } #if PBRS_PAINT_DEBUG rect.Width --; rect.Height--; g.DrawRectangle(new Pen(Color.Purple), rect); #endif if (doToolTip) { ValueToolTipLocation = new Point(rect.X + 2, rect.Y - 1); } else { ValueToolTipLocation = InvalidPoint; } } return; } public virtual bool OnComponentChanging() { if (ComponentChangeService != null) { try { ComponentChangeService.OnComponentChanging(GetValueOwner(), PropertyDescriptor); } catch (CheckoutException coEx) { if (coEx == CheckoutException.Canceled) { return false; } throw coEx; } } return true; } public virtual void OnComponentChanged() { if (ComponentChangeService != null) { ComponentChangeService.OnComponentChanged(GetValueOwner(), PropertyDescriptor, null, null); } } /// <summary> /// Called when the label portion of this GridEntry is clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnLabelClick(e) if this is overrideen. /// </summary> protected virtual void OnLabelClick(EventArgs e) { RaiseEvent(EVENT_LABEL_CLICK, e); } /// <summary> /// Called when the label portion of this GridEntry is double-clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnLabelDoubleClick(e) if this is overrideen. /// </summary> protected virtual void OnLabelDoubleClick(EventArgs e) { RaiseEvent(EVENT_LABEL_DBLCLICK, e); } /// <summary> /// Called when the GridEntry is clicked. /// </summary> public virtual bool OnMouseClick(int x, int y, int count, MouseButtons button) { // where are we at? PropertyGridView gridHost = GridEntryHost; Debug.Assert(gridHost != null, "No prop entry host!"); // make sure it's the left button if ((button & MouseButtons.Left) != MouseButtons.Left) { return false; } int labelWidth = gridHost.GetLabelWidth(); // are we in the label? if (x >= 0 && x <= labelWidth) { // are we on the outline? if (Expandable) { Rectangle outlineRect = OutlineRect; if (outlineRect.Contains(x, y)) { if (count % 2 == 0) { OnOutlineDoubleClick(EventArgs.Empty); } else { OnOutlineClick(EventArgs.Empty); } return true; } } if (count % 2 == 0) { OnLabelDoubleClick(EventArgs.Empty); } else { OnLabelClick(EventArgs.Empty); } return true; } // are we in the value? labelWidth += gridHost.GetSplitterWidth(); if (x >= labelWidth && x <= labelWidth + gridHost.GetValueWidth()) { if (count % 2 == 0) { OnValueDoubleClick(EventArgs.Empty); } else { OnValueClick(EventArgs.Empty); } return true; } return false; } /// <summary> /// Called when the outline icon portion of this GridEntry is clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnOutlineClick(e) if this is overrideen. /// </summary> protected virtual void OnOutlineClick(EventArgs e) { RaiseEvent(EVENT_OUTLINE_CLICK, e); } /// <summary> /// Called when the outline icon portion of this GridEntry is double-clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnOutlineDoubleClick(e) if this is overrideen. /// </summary> protected virtual void OnOutlineDoubleClick(EventArgs e) { RaiseEvent(EVENT_OUTLINE_DBLCLICK, e); } /// <summary> /// Called when RecreateChildren is called. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnOutlineDoubleClick(e) if this is overrideen. /// </summary> protected virtual void OnRecreateChildren(GridEntryRecreateChildrenEventArgs e) { Delegate handler = GetEventHandler(EVENT_RECREATE_CHILDREN); if (handler != null) { ((GridEntryRecreateChildrenEventHandler)handler)(this, e); } } /// <summary> /// Called when the value portion of this GridEntry is clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnValueClick(e) if this is overrideen. /// </summary> protected virtual void OnValueClick(EventArgs e) { RaiseEvent(EVENT_VALUE_CLICK, e); } /// <summary> /// Called when the value portion of this GridEntry is clicked. /// Default implmentation fired the event to any listeners, so be sure /// to call base.OnValueDoubleClick(e) if this is overrideen. /// </summary> protected virtual void OnValueDoubleClick(EventArgs e) { RaiseEvent(EVENT_VALUE_DBLCLICK, e); } internal bool OnValueReturnKey() { return NotifyValue(NOTIFY_RETURN); } /// <summary> /// Sets the specified flag /// </summary> protected virtual void SetFlag(int flag, bool fVal) { SetFlag(flag, (fVal ? flag : 0)); } /// <summary> /// Sets the default child of this entry, given a valid value mask. /// </summary> protected virtual void SetFlag(int flag_valid, int flag, bool fVal) { SetFlag(flag_valid | flag, flag_valid | (fVal ? flag : 0)); } /// <summary> /// Sets the value of a flag /// </summary> protected virtual void SetFlag(int flag, int val) { Flags = (Flags & ~(flag)) | val; } public override bool Select() { if (Disposed) { return false; } try { GridEntryHost.SelectedGridEntry = this; return true; } catch { } return false; } /// <summary> /// Checks if this value should be persisited. /// </summary> internal virtual bool ShouldSerializePropertyValue() { if (cacheItems != null) { if (cacheItems.useShouldSerialize) { return cacheItems.lastShouldSerialize; } else { cacheItems.lastShouldSerialize = NotifyValue(NOTIFY_SHOULD_PERSIST); cacheItems.useShouldSerialize = true; } } else { cacheItems = new CacheItems { lastShouldSerialize = NotifyValue(NOTIFY_SHOULD_PERSIST), useShouldSerialize = true }; } return cacheItems.lastShouldSerialize; } private PropertyDescriptor[] SortParenProperties(PropertyDescriptor[] props) { PropertyDescriptor[] newProps = null; int newPos = 0; // first scan the list and move any parentesized properties to the front. for (int i = 0; i < props.Length; i++) { if (((ParenthesizePropertyNameAttribute)props[i].Attributes[typeof(ParenthesizePropertyNameAttribute)]).NeedParenthesis) { if (newProps == null) { newProps = new PropertyDescriptor[props.Length]; } newProps[newPos++] = props[i]; props[i] = null; } } // second pass, copy any that didn't have the parens. if (newPos > 0) { for (int i = 0; i < props.Length; i++) { if (props[i] != null) { newProps[newPos++] = props[i]; } } props = newProps; } return props; } /// <summary> /// Sends a notify message to this GridEntry, and returns the success result /// </summary> internal virtual bool NotifyValueGivenParent(object obj, int type) { return false; } /// <summary> /// Sends a notify message to the child GridEntry, and returns the success result /// </summary> internal virtual bool NotifyChildValue(GridEntry pe, int type) { return pe.NotifyValueGivenParent(pe.GetValueOwner(), type); } internal virtual bool NotifyValue(int type) { if (parentPE == null) { return true; } else { return parentPE.NotifyChildValue(this, type); } } internal void RecreateChildren() { RecreateChildren(-1); } internal void RecreateChildren(int oldCount) { // cause the flags to be rebuilt as well... bool wasExpanded = InternalExpanded || oldCount > 0; if (oldCount == -1) { oldCount = VisibleChildCount; } ResetState(); if (oldCount == 0) { return; } foreach (GridEntry child in ChildCollection) { child.RecreateChildren(); } DisposeChildren(); InternalExpanded = wasExpanded; OnRecreateChildren(new GridEntryRecreateChildrenEventArgs(oldCount, VisibleChildCount)); } /// <summary> /// Refresh the current GridEntry's value and it's children /// </summary> public virtual void Refresh() { Type type = PropertyType; if (type != null && type.IsArray) { CreateChildren(true); } if (childCollection != null) { // check to see if the value has changed. // if (InternalExpanded && cacheItems != null && cacheItems.lastValue != null && cacheItems.lastValue != PropertyValue) { ClearCachedValues(); RecreateChildren(); return; } else if (InternalExpanded) { // otherwise just do a refresh. IEnumerator childEnum = childCollection.GetEnumerator(); while (childEnum.MoveNext()) { object o = childEnum.Current; Debug.Assert(o != null, "Collection contains a null element. But how? Garbage collector hole? GDI+ corrupting memory?"); GridEntry e = (GridEntry)o; e.Refresh(); } } else { DisposeChildren(); } } ClearCachedValues(); } public virtual void RemoveOnLabelClick(EventHandler h) { RemoveEventHandler(EVENT_LABEL_CLICK, h); } public virtual void RemoveOnLabelDoubleClick(EventHandler h) { RemoveEventHandler(EVENT_LABEL_DBLCLICK, h); } public virtual void RemoveOnValueClick(EventHandler h) { RemoveEventHandler(EVENT_VALUE_CLICK, h); } public virtual void RemoveOnValueDoubleClick(EventHandler h) { RemoveEventHandler(EVENT_VALUE_DBLCLICK, h); } public virtual void RemoveOnOutlineClick(EventHandler h) { RemoveEventHandler(EVENT_OUTLINE_CLICK, h); } public virtual void RemoveOnOutlineDoubleClick(EventHandler h) { RemoveEventHandler(EVENT_OUTLINE_DBLCLICK, h); } public virtual void RemoveOnRecreateChildren(GridEntryRecreateChildrenEventHandler h) { RemoveEventHandler(EVENT_RECREATE_CHILDREN, h); } /* private string ReplaceCRLF(string str) { str = str.Replace('\r', (char)1); str = str.Replace('\n', (char)1); return str; } */ protected void ResetState() { Flags = 0; ClearCachedValues(); } /// <summary> /// Sets the value of this GridEntry from text /// </summary> public virtual bool SetPropertyTextValue(string str) { bool fChildrenPrior = (childCollection != null && childCollection.Count > 0); PropertyValue = ConvertTextToValue(str); CreateChildren(); bool fChildrenAfter = (childCollection != null && childCollection.Count > 0); return (fChildrenPrior != fChildrenAfter); } public override string ToString() { return GetType().FullName + " " + PropertyLabel; } #if !DONT_SUPPORT_ADD_EVENT_HANDLER private EventEntry eventList; protected virtual void AddEventHandler(object key, Delegate handler) { // Locking 'this' here is ok since this is an internal class. lock (this) { if (handler == null) { return; } for (EventEntry e = eventList; e != null; e = e.next) { if (e.key == key) { e.handler = Delegate.Combine(e.handler, handler); return; } } eventList = new EventEntry(eventList, key, handler); } } protected virtual void RaiseEvent(object key, EventArgs e) { Delegate handler = GetEventHandler(key); if (handler != null) { ((EventHandler)handler)(this, e); } } protected virtual Delegate GetEventHandler(object key) { // Locking 'this' here is ok since this is an internal class. lock (this) { for (EventEntry e = eventList; e != null; e = e.next) { if (e.key == key) { return e.handler; } } return null; } } protected virtual void RemoveEventHandler(object key, Delegate handler) { // Locking this here is ok since this is an internal class. lock (this) { if (handler == null) { return; } for (EventEntry e = eventList, prev = null; e != null; prev = e, e = e.next) { if (e.key == key) { e.handler = Delegate.Remove(e.handler, handler); if (e.handler == null) { if (prev == null) { eventList = e.next; } else { prev.next = e.next; } } return; } } } } protected virtual void RemoveEventHandlers() { eventList = null; } private sealed class EventEntry { internal EventEntry next; internal object key; internal Delegate handler; internal EventEntry(EventEntry next, object key, Delegate handler) { this.next = next; this.key = key; this.handler = handler; } } #endif [ComVisible(true)] public class GridEntryAccessibleObject : AccessibleObject { protected GridEntry owner = null; private delegate void SelectDelegate(AccessibleSelection flags); private int[] runtimeId = null; // Used by UIAutomation public GridEntryAccessibleObject(GridEntry owner) : base() { Debug.Assert(owner != null, "GridEntryAccessibleObject must have a valid owner GridEntry"); this.owner = owner; } public override Rectangle Bounds { get { return PropertyGridView.AccessibilityGetGridEntryBounds(owner); } } public override string DefaultAction { get { if (!owner.Expandable) { return base.DefaultAction; } else if (owner.Expanded) { return SR.AccessibleActionCollapse; } else { return SR.AccessibleActionExpand; } } } public override string Description { get { return owner.PropertyDescription; } } public override string Help { get { return owner.PropertyDescription; } } /// <summary> /// Request to return the element in the specified direction. /// </summary> /// <param name="direction">Indicates the direction in which to navigate.</param> /// <returns>Returns the element in the specified direction.</returns> internal override UnsafeNativeMethods.IRawElementProviderFragment FragmentNavigate(UnsafeNativeMethods.NavigateDirection direction) { switch (direction) { case UnsafeNativeMethods.NavigateDirection.Parent: GridEntry parentGridEntry = owner.ParentGridEntry; if (parentGridEntry != null) { if (parentGridEntry is SingleSelectRootGridEntry) { return owner.OwnerGrid.GridViewAccessibleObject; } else { return parentGridEntry.AccessibilityObject; } } return Parent; case UnsafeNativeMethods.NavigateDirection.PreviousSibling: return Navigate(AccessibleNavigation.Previous); case UnsafeNativeMethods.NavigateDirection.NextSibling: return Navigate(AccessibleNavigation.Next); } return base.FragmentNavigate(direction); } /// <summary> /// Return the element that is the root node of this fragment of UI. /// </summary> internal override UnsafeNativeMethods.IRawElementProviderFragmentRoot FragmentRoot { get { return (PropertyGridView.PropertyGridViewAccessibleObject)Parent; } } #region IAccessibleEx - patterns and properties internal override bool IsIAccessibleExSupported() { if (owner.Expandable) { return true; } else { return false; } } internal override int[] RuntimeId { get { if (runtimeId == null) { // we need to provide a unique ID // others are implementing this in the same manner // first item is static - 0x2a // second item can be anything, but it's good to supply HWND // third and others are optional, but in case of GridItem we need it, to make it unique // grid items are not controls, they don't have hwnd - we use hwnd of PropertyGridView runtimeId = new int[3]; runtimeId[0] = 0x2a; runtimeId[1] = (int)(long)owner.GridEntryHost.Handle; runtimeId[2] = GetHashCode(); } return runtimeId; } } internal override object GetPropertyValue(int propertyID) { switch (propertyID) { case NativeMethods.UIA_NamePropertyId: return Name; case NativeMethods.UIA_ControlTypePropertyId: // The accessible hierarchy is changed so we cannot use Button type // for the grid items to not break automation logic that searches for the first // button in the PropertyGridView to show dialog/drop-down. In Level < 3 action // button is one of the first children of PropertyGridView. return NativeMethods.UIA_DataItemControlTypeId; case NativeMethods.UIA_IsExpandCollapsePatternAvailablePropertyId: return (Object)IsPatternSupported(NativeMethods.UIA_ExpandCollapsePatternId); } switch (propertyID) { case NativeMethods.UIA_AccessKeyPropertyId: return string.Empty; case NativeMethods.UIA_HasKeyboardFocusPropertyId: return owner.hasFocus; case NativeMethods.UIA_IsKeyboardFocusablePropertyId: return (State & AccessibleStates.Focusable) == AccessibleStates.Focusable; case NativeMethods.UIA_IsEnabledPropertyId: return true; case NativeMethods.UIA_AutomationIdPropertyId: return GetHashCode().ToString(); case NativeMethods.UIA_HelpTextPropertyId: return Help ?? string.Empty; case NativeMethods.UIA_IsPasswordPropertyId: return false; case NativeMethods.UIA_IsOffscreenPropertyId: return (State & AccessibleStates.Offscreen) == AccessibleStates.Offscreen; case NativeMethods.UIA_LegacyIAccessibleRolePropertyId: return Role; case NativeMethods.UIA_LegacyIAccessibleDefaultActionPropertyId: return DefaultAction; default: return base.GetPropertyValue(propertyID); } } internal override bool IsPatternSupported(int patternId) { if (owner.Expandable && patternId == NativeMethods.UIA_ExpandCollapsePatternId) { return true; } if (patternId == NativeMethods.UIA_InvokePatternId || patternId == NativeMethods.UIA_LegacyIAccessiblePatternId) { return true; } return false; } internal override void Expand() { if (owner.Expandable && owner.Expanded == false) { owner.Expanded = true; } } internal override void Collapse() { if (owner.Expandable && owner.Expanded == true) { owner.Expanded = false; } } internal override UnsafeNativeMethods.ExpandCollapseState ExpandCollapseState { get { if (owner.Expandable) { return owner.Expanded ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed; } else { return UnsafeNativeMethods.ExpandCollapseState.LeafNode; } } } #endregion public override void DoDefaultAction() { owner.OnOutlineClick(EventArgs.Empty); } public override string Name { get { return owner.PropertyLabel; } } public override AccessibleObject Parent { get { return ((Control)owner.GridEntryHost).AccessibilityObject; } } private PropertyGridView PropertyGridView { get { return (PropertyGridView)((PropertyGridView.PropertyGridViewAccessibleObject)Parent).Owner; } } public override AccessibleRole Role { get { return AccessibleRole.Cell; } } public override AccessibleStates State { get { AccessibleStates state = AccessibleStates.Selectable | AccessibleStates.Focusable; // Determine focus // if (owner.Focus) { state |= AccessibleStates.Focused; } // Determine selected // Debug.Assert(Parent != null, "GridEntry AO does not have a parent AO"); PropertyGridView.PropertyGridViewAccessibleObject parent = (PropertyGridView.PropertyGridViewAccessibleObject)Parent; if (parent.GetSelected() == this) { state |= AccessibleStates.Selected; } // Determine expanded/collapsed state // if (owner.Expandable) { if (owner.Expanded) { state |= AccessibleStates.Expanded; } else { state |= AccessibleStates.Collapsed; } } // Determine readonly/editable state // if (owner.ShouldRenderReadOnly) { state |= AccessibleStates.ReadOnly; } // Determine password state // if (owner.ShouldRenderPassword) { state |= AccessibleStates.Protected; } Rectangle entryBounds = this.BoundingRectangle; Rectangle propertyGridViewBounds = this.PropertyGridView.GetToolNativeScreenRectangle(); if (!entryBounds.IntersectsWith(propertyGridViewBounds)) { state |= AccessibleStates.Offscreen; } return state; } } public override string Value { get { return owner.GetPropertyTextValue(); } set { owner.SetPropertyTextValue(value); } } /// <summary> /// Returns the currently focused child, if any. /// Returns this if the object itself is focused. /// </summary> public override AccessibleObject GetFocused() { if (owner.Focus) { return this; } else { return null; } } /// <summary> /// Navigate to the next or previous grid entry. /// </summary> public override AccessibleObject Navigate(AccessibleNavigation navdir) { PropertyGridView.PropertyGridViewAccessibleObject parent = (PropertyGridView.PropertyGridViewAccessibleObject)Parent; switch (navdir) { case AccessibleNavigation.Down: case AccessibleNavigation.Right: case AccessibleNavigation.Next: return parent.Next(owner); case AccessibleNavigation.Up: case AccessibleNavigation.Left: case AccessibleNavigation.Previous: return parent.Previous(owner); case AccessibleNavigation.FirstChild: case AccessibleNavigation.LastChild: // Fall through and return null, // as this object has no children. break; } return null; } public override void Select(AccessibleSelection flags) { // make sure we're on the right thread. // if (PropertyGridView.InvokeRequired) { PropertyGridView.Invoke(new SelectDelegate(Select), new object[] { flags }); return; } // Focus the PropertyGridView window // if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) { bool focused = PropertyGridView.Focus(); } // Select the grid entry // if ((flags & AccessibleSelection.TakeSelection) == AccessibleSelection.TakeSelection) { PropertyGridView.AccessibilitySelect(owner); } } internal override void SetFocus() { base.SetFocus(); RaiseAutomationEvent(NativeMethods.UIA_AutomationFocusChangedEventId); } } public class DisplayNameSortComparer : IComparer { public int Compare(object left, object right) { // review: (Microsoft) Is CurrentCulture correct here? This was already reviewed as invariant... return string.Compare(((PropertyDescriptor)left).DisplayName, ((PropertyDescriptor)right).DisplayName, true, CultureInfo.CurrentCulture); } } } internal class AttributeTypeSorter : IComparer { private static IDictionary typeIds; private static string GetTypeIdString(Attribute a) { string result; object typeId = a.TypeId; if (typeId == null) { Debug.Fail("Attribute '" + a.GetType().FullName + "' does not have a typeid."); return ""; } if (typeIds == null) { typeIds = new Hashtable(); result = null; } else { result = typeIds[typeId] as string; } if (result == null) { result = typeId.ToString(); typeIds[typeId] = result; } return result; } public int Compare(object obj1, object obj2) { Attribute a1 = obj1 as Attribute; Attribute a2 = obj2 as Attribute; if (a1 == null && a2 == null) { return 0; } else if (a1 == null) { return -1; } else if (a2 == null) { return 1; } return string.Compare(AttributeTypeSorter.GetTypeIdString(a1), AttributeTypeSorter.GetTypeIdString(a2), false, CultureInfo.InvariantCulture); } } internal delegate void GridEntryRecreateChildrenEventHandler(object sender, GridEntryRecreateChildrenEventArgs rce); internal class GridEntryRecreateChildrenEventArgs : EventArgs { public readonly int OldChildCount; public readonly int NewChildCount; public GridEntryRecreateChildrenEventArgs(int oldCount, int newCount) { OldChildCount = oldCount; NewChildCount = newCount; } } }
33.25961
206
0.472848
[ "MIT" ]
SeppPenner/winforms
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/GridEntry.cs
119,404
C#
using System; using Castle.DynamicProxy; using Microsoft.Extensions.DependencyInjection; namespace CastleDynamicProxy.DependencyInjection { public class TypeInterceptorProvider : IInterceptorProvider { private readonly Type _interceptorType; public TypeInterceptorProvider(Type interceptor) { _interceptorType = interceptor; } public IInterceptor Get(IServiceProvider sp) { return (IInterceptor)ActivatorUtilities.GetServiceOrCreateInstance(sp, _interceptorType); } } }
23.666667
101
0.707746
[ "Apache-2.0" ]
zhurongbo111/Castle.Core.DependencyInjection
src/CastleDynamicProxy.DependencyInjection/InterceptorProvider/TypeInterceptorProvider.cs
570
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Rocket.API; using System.Xml.Serialization; namespace AdminWarnings { public class WarningsConfig : IRocketPluginConfiguration { public bool Enabled; public bool AnnouceWarningKicksAndBansServerWide; public bool AnnouceWarningsServerWide; public string MessageColor; public int DaysWarningsExpire; [XmlArrayItem(ElementName = "WarningPoint")] public List<WarningPoint> WarningPoints; [XmlArrayItem(ElementName = "PlayerWarning")] public List<PlayerWarning> PlayerWarnings; public void LoadDefaults() { Enabled = true; MessageColor = "Green"; DaysWarningsExpire = 7; AnnouceWarningKicksAndBansServerWide = true; AnnouceWarningsServerWide = false; WarningPoints = new List<WarningPoint> { new WarningPoint{ WarningsToTrigger = 3, KickPlayer = true, BanPlayer = false, BanLengthSeconds = 0, ConsoleCommand = "" }, new WarningPoint{ WarningsToTrigger = 4, KickPlayer = false, BanPlayer = true, BanLengthSeconds = 600, ConsoleCommand = "" }, new WarningPoint{ WarningsToTrigger = 5, KickPlayer = false, BanPlayer = true, BanLengthSeconds = 1800, ConsoleCommand = "" }, new WarningPoint{ WarningsToTrigger = 6, KickPlayer = false, BanPlayer = true, BanLengthSeconds = 86400, ConsoleCommand = "" }, new WarningPoint{ WarningsToTrigger = 7, KickPlayer = false, BanPlayer = true, BanLengthSeconds = 432000, ConsoleCommand = "" } }; PlayerWarnings = new List<PlayerWarning>(); } } public class WarningPoint { public int WarningsToTrigger; public bool KickPlayer; public bool BanPlayer; public uint BanLengthSeconds; public string ConsoleCommand; } public class PlayerWarning { [XmlAttribute] public string CSteamID; [XmlAttribute] public int Warnings; [XmlAttribute] public DateTime DateAdded; } }
36.366667
143
0.648488
[ "CC0-1.0" ]
nuage00/AdminWarnings2
WarningsConfig.cs
2,184
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Collections.ObjectModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommandLine; using static Microsoft.CodeAnalysis.CommandLine.CompilerServerLogger; namespace Microsoft.CodeAnalysis.CompilerServer { internal readonly struct RunRequest { public string Language { get; } public string? WorkingDirectory { get; } public string? TempDirectory { get; } public string? LibDirectory { get; } public string[] Arguments { get; } public RunRequest(string language, string? workingDirectory, string? tempDirectory, string? libDirectory, string[] arguments) { Language = language; WorkingDirectory = workingDirectory; TempDirectory = tempDirectory; LibDirectory = libDirectory; Arguments = arguments; } } internal sealed class CompilerServerHost : ICompilerServerHost { public IAnalyzerAssemblyLoader AnalyzerAssemblyLoader { get; } = new ShadowCopyAnalyzerAssemblyLoader(Path.Combine(Path.GetTempPath(), "VBCSCompiler", "AnalyzerAssemblyLoader")); public static Func<string, MetadataReferenceProperties, PortableExecutableReference> SharedAssemblyReferenceProvider { get; } = (path, properties) => new CachingMetadataReference(path, properties); /// <summary> /// The caching metadata provider used by the C# and VB compilers /// </summary> private Func<string, MetadataReferenceProperties, PortableExecutableReference> AssemblyReferenceProvider { get; } = SharedAssemblyReferenceProvider; /// <summary> /// Directory that contains the compiler executables and the response files. /// </summary> private string ClientDirectory { get; } /// <summary> /// Directory that contains mscorlib. Can be null when the host is executing in a CoreCLR context. /// </summary> private string SdkDirectory { get; } public ICompilerServerLogger Logger { get; } internal CompilerServerHost(string clientDirectory, string sdkDirectory, ICompilerServerLogger logger) { ClientDirectory = clientDirectory; SdkDirectory = sdkDirectory; Logger = logger; } private bool CheckAnalyzers(string baseDirectory, ImmutableArray<CommandLineAnalyzerReference> analyzers, [NotNullWhen(false)] out List<string>? errorMessages) { return AnalyzerConsistencyChecker.Check(baseDirectory, analyzers, AnalyzerAssemblyLoader, Logger, out errorMessages); } public bool TryCreateCompiler(RunRequest request, BuildPaths buildPaths, [NotNullWhen(true)] out CommonCompiler? compiler) { switch (request.Language) { case LanguageNames.CSharp: compiler = new CSharpCompilerServer( AssemblyReferenceProvider, args: request.Arguments, buildPaths: buildPaths, libDirectory: request.LibDirectory, analyzerLoader: AnalyzerAssemblyLoader); return true; case LanguageNames.VisualBasic: compiler = new VisualBasicCompilerServer( AssemblyReferenceProvider, args: request.Arguments, buildPaths: buildPaths, libDirectory: request.LibDirectory, analyzerLoader: AnalyzerAssemblyLoader); return true; default: compiler = null; return false; } } public BuildResponse RunCompilation(RunRequest request, CancellationToken cancellationToken) { Logger.Log($@" Run Compilation CurrentDirectory = '{request.WorkingDirectory} LIB = '{request.LibDirectory}'"); // Compiler server must be provided with a valid current directory in order to correctly // resolve files in the compilation if (string.IsNullOrEmpty(request.WorkingDirectory)) { return new RejectedBuildResponse("Missing temp directory"); } // Compiler server must be provided with a valid temporary directory in order to correctly // isolate signing between compilations. if (string.IsNullOrEmpty(request.TempDirectory)) { return new RejectedBuildResponse("Missing temp directory"); } var buildPaths = new BuildPaths(ClientDirectory, request.WorkingDirectory, SdkDirectory, request.TempDirectory); CommonCompiler? compiler; if (!TryCreateCompiler(request, buildPaths, out compiler)) { return new RejectedBuildResponse($"Cannot create compiler for language id {request.Language}"); } bool utf8output = compiler.Arguments.Utf8Output; if (!CheckAnalyzers(request.WorkingDirectory, compiler.Arguments.AnalyzerReferences, out List<string>? errorMessages)) { return new AnalyzerInconsistencyBuildResponse(new ReadOnlyCollection<string>(errorMessages)); } Logger.Log($"Begin {request.Language} compiler run"); TextWriter output = new StringWriter(CultureInfo.InvariantCulture); int returnCode = compiler.Run(output, cancellationToken); var outputString = output.ToString(); Logger.Log(@$" End {request.Language} Compilation complete. Return code: {returnCode} Output: {outputString}"); return new CompletedBuildResponse(returnCode, utf8output, outputString); } } }
42.47973
205
0.65039
[ "MIT" ]
AraHaan/roslyn
src/Compilers/Server/VBCSCompiler/CompilerRequestHandler.cs
6,289
C#
namespace ASPNETCoreReactJS_Example.Models { public class LoginModel { public string UserName { get; set; } public string Password { get; set; } } }
19.777778
44
0.634831
[ "MIT" ]
SaiYaduvanshi/APNETCOREAND-REACT
ASPNETCoreReactJS-Example/ASPNETCoreReactJS-Example/Models/LoginModel.cs
180
C#
using Super.Model.Commands; namespace Super.Model.Selection.Stores { class RemoveCommand<TIn, TOut> : ICommand<TIn> { readonly ITable<TIn, TOut> _table; public RemoveCommand(ITable<TIn, TOut> table) => _table = table; public void Execute(TIn parameter) { _table.Remove(parameter); } } }
19.125
66
0.712418
[ "MIT" ]
SuperDotNet/Super.NET
Super/Model/Selection/Stores/RemoveCommand.cs
308
C#
using System; using System.Buffers; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; namespace Tests.Kerberos.NET.Pac.Interop { internal class SafeMarshalledHandle<T> : SafeHandle { public T Value { get; } private readonly Action free; public SafeMarshalledHandle(T t, Action p) : base(IntPtr.Zero, true) { Value = t; free = p; } public override bool IsInvalid => false; protected override bool ReleaseHandle() { free(); return true; } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate IntPtr PfnAllocate(int s); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void PfnFree(IntPtr f); [StructLayout(LayoutKind.Sequential)] internal unsafe struct MIDL_TYPE_PICKLING_INFO { public uint Version; public uint Flags; public fixed uint Reserved[3]; } [StructLayout(LayoutKind.Sequential)] internal struct RPC_VERSION { public ushort MajorVersion; public ushort MinorVersion; } [StructLayout(LayoutKind.Sequential)] internal struct RPC_SYNTAX_IDENTIFIER { public Guid SyntaxGUID; public RPC_VERSION SyntaxVersion; } [StructLayout(LayoutKind.Sequential)] internal struct RPC_CLIENT_INTERFACE { public uint Length; public RPC_SYNTAX_IDENTIFIER InterfaceId; public RPC_SYNTAX_IDENTIFIER TransferSyntax; public IntPtr DispatchTable; public uint RpcProtseqEndpointCount; public IntPtr RpcProtseqEndpoint; public uint Reserved; public IntPtr InterpreterInfo; public uint Flags; } [StructLayout(LayoutKind.Sequential)] internal struct MIDL_STUB_DESC { public IntPtr RpcInterfaceInformation; public IntPtr pfnAllocate; public IntPtr pfnFree; public IntPtr pHandle; public IntPtr apfnNdrRundownRoutines; public IntPtr aGenericBindingRoutinePairs; public IntPtr apfnExprEval; public IntPtr aXmitQuintuple; public IntPtr pFormatTypes; public int fCheckBounds; public uint Version; public IntPtr pMallocFreeStruct; public int MIDLVersion; public IntPtr CommFaultOffsets; public IntPtr aUserMarshalQuadruple; public IntPtr NotifyRoutineTable; public uint mFlags; public IntPtr CsRoutineTables; public IntPtr ProxyServerInfo; public IntPtr pExprInfo; } internal unsafe sealed class PickleMarshaller : IDisposable { private const int RPC_S_OK = 0; private static readonly PfnAllocate fnAllocator = new PfnAllocate(MIDL_user_allocate); private static readonly PfnFree fnFree = new PfnFree(MIDL_user_free); private static readonly MIDL_TYPE_PICKLING_INFO __MIDL_TypePicklingInfo = new MIDL_TYPE_PICKLING_INFO { Version = 0x33205054, Flags = 0x3 }; private static readonly RPC_CLIENT_INTERFACE _RPC_CLIENT_INTERFACE = new RPC_CLIENT_INTERFACE { Length = (uint)sizeof(RPC_CLIENT_INTERFACE), InterfaceId = new RPC_SYNTAX_IDENTIFIER() { SyntaxGUID = new Guid(0x906B0CE0, 0xC70B, 0x1067, 0xB3, 0x17, 0x00, 0xDD, 0x01, 0x06, 0x62, 0xDA), SyntaxVersion = new RPC_VERSION { MajorVersion = 1, MinorVersion = 0 } }, TransferSyntax = new RPC_SYNTAX_IDENTIFIER { SyntaxGUID = new Guid(0x8A885D04, 0x1CEB, 0x11C9, 0x9F, 0xE8, 0x08, 0x00, 0x2B, 0x10, 0x48, 0x60), SyntaxVersion = new RPC_VERSION() { MajorVersion = 2, MinorVersion = 0 } } }; private bool disposed; private MIDL_STUB_DESC stubDesc; private readonly int formatOffset; private readonly MemoryHandle pTypeFormatString; private readonly GCHandle pRpcInterface; public unsafe PickleMarshaller(ReadOnlyMemory<byte> typeFormatString, int formatOffset) { pTypeFormatString = typeFormatString.Pin(); pRpcInterface = GCHandle.Alloc(_RPC_CLIENT_INTERFACE, GCHandleType.Pinned); this.formatOffset = formatOffset; stubDesc = new MIDL_STUB_DESC { RpcInterfaceInformation = pRpcInterface.AddrOfPinnedObject(), pfnAllocate = Marshal.GetFunctionPointerForDelegate(fnAllocator), pfnFree = Marshal.GetFunctionPointerForDelegate(fnFree), pFormatTypes = (IntPtr)pTypeFormatString.Pointer, fCheckBounds = 1, Version = 0x60000, MIDLVersion = 0x8000000, mFlags = 0x1 }; } public unsafe SafeMarshalledHandle<T> Decode<T>(ReadOnlySpan<byte> buffer, Func<IntPtr, T> converter) { // // WARNING: THIS IS DANGEROUS // // THIS CAN BE INCREDIBLY LEAKY BECAUSE IT DOESN'T FREE BUFFERS // DO NOT FORGET TO FREE THE HANDLE AFTER YOU"VE USED IT if (disposed) { throw new ObjectDisposedException(nameof(PickleMarshaller)); } IntPtr pObj = IntPtr.Zero; fixed (void* pBuf = &MemoryMarshal.GetReference(buffer)) { var ret = MesDecodeBufferHandleCreate( pBuf, buffer.Length, out IntPtr ndrHandle ); if (ret != RPC_S_OK) { throw new Win32Exception(ret); } fixed (MIDL_TYPE_PICKLING_INFO* pPicklingInfo = &__MIDL_TypePicklingInfo) { NdrMesTypeDecode2( ndrHandle, pPicklingInfo, ref stubDesc, stubDesc.pFormatTypes + formatOffset, ref pObj ); } if (pObj == IntPtr.Zero) { throw new Win32Exception(Marshal.GetLastWin32Error()); } return new SafeMarshalledHandle<T>(converter(pObj), () => FreeNdr(ref ndrHandle, ref pObj)); } } private unsafe void FreeNdr(ref IntPtr ndrHandle, ref IntPtr pObj) { fixed (MIDL_TYPE_PICKLING_INFO* pPicklingInfo = &__MIDL_TypePicklingInfo) { NdrMesTypeFree2( ndrHandle, pPicklingInfo, ref stubDesc, stubDesc.pFormatTypes + formatOffset, ref pObj ); } var ret = MesHandleFree(ndrHandle); if (ret != RPC_S_OK) { throw new Win32Exception(Marshal.GetLastWin32Error()); } } [DllImport("rpcrt4.dll")] private unsafe extern static int MesDecodeBufferHandleCreate( void* pBuffer, int BufferSize, out IntPtr pHandle ); [DllImport("rpcrt4.dll")] private unsafe extern static void NdrMesTypeDecode2( IntPtr Handle, MIDL_TYPE_PICKLING_INFO* pPicklingInfo, ref MIDL_STUB_DESC pStubDesc, IntPtr pFormatString, ref IntPtr pObject ); [DllImport("rpcrt4.dll")] private unsafe extern static void NdrMesTypeEncode2( IntPtr Handle, MIDL_TYPE_PICKLING_INFO* pPicklingInfo, ref MIDL_STUB_DESC pStubDesc, IntPtr pFormatString, ref void* pObject ); [DllImport("rpcrt4.dll")] private unsafe extern static void NdrMesTypeFree2( IntPtr Handle, MIDL_TYPE_PICKLING_INFO* pPickingInfo, ref MIDL_STUB_DESC pStubDesc, IntPtr pFormatString, ref IntPtr pObject ); [DllImport("rpcrt4.dll")] private extern static int MesHandleFree(IntPtr Handle); private static readonly ConcurrentDictionary<IntPtr, int> allocations = new ConcurrentDictionary<IntPtr, int>(); private static IntPtr MIDL_user_allocate(int size) { var sizePlusPotentialOffset = size + 15; var pAllocated = Marshal.AllocHGlobal(sizePlusPotentialOffset); GC.AddMemoryPressure(size); var pAligned = Align(pAllocated, 8); if (pAligned == pAllocated) { pAligned = IntPtr.Add(pAllocated, 8); } var offset = (byte)CalculateOffset(pAligned, pAllocated); Marshal.WriteByte(pAligned, -1, offset); allocations[pAllocated] = size; return pAligned; } private static void MIDL_user_free(IntPtr f) { var offset = Marshal.ReadByte(IntPtr.Add(f, -1)); var pAllocated = IntPtr.Add(f, -offset); Marshal.FreeHGlobal(pAllocated); if (allocations.TryRemove(pAllocated, out int allocSize)) { GC.RemoveMemoryPressure(allocSize); } } private static IntPtr CalculateOffset(IntPtr ptr1, IntPtr ptr2) { if (IntPtr.Size == sizeof(int)) { return new IntPtr(ptr1.ToInt32() - ptr2.ToInt32()); } if (IntPtr.Size == sizeof(long)) { return new IntPtr(ptr1.ToInt64() - ptr2.ToInt64()); } throw new NotSupportedException($"Unknown platform pointer size {IntPtr.Size}"); } private static IntPtr Align(IntPtr ptr, int align) { align--; if (IntPtr.Size == sizeof(int)) { return new IntPtr((ptr.ToInt32() + align) & ~align); } if (IntPtr.Size == sizeof(long)) { return new IntPtr((ptr.ToInt64() + align) & ~align); } throw new NotSupportedException($"Unknown platform pointer {IntPtr.Size}"); } void Dispose(bool disposing) { if (!disposed) { if (disposing) { pTypeFormatString.Dispose(); pRpcInterface.Free(); } disposed = true; } } ~PickleMarshaller() { Dispose(false); } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } } internal static class RpcFormatter { private static byte[] NdrFcShort(int s) { return new byte[] { (byte)(s & 0xff), (byte)(s >> 8) }; } private static byte[] NdrFcLong(uint s) { return new byte[] { (byte)(s & 0xff), (byte)((s & 0x0000ff00) >> 8), (byte)((s & 0x00ff0000) >> 16), (byte)(s >> 24) }; } internal static byte[] Pac = Translate(new object[] { NdrFcShort( 0x0 ), /* 0 */ /* 2 */ 0x12, 0x0, /* FC_UP */ /* 4 */ NdrFcShort( 0xda ), /* Offset= 218 (222) */ /* 6 */ 0x15, /* FC_STRUCT */ 0x3, /* 3 */ /* 8 */ NdrFcShort( 0x8 ), /* 8 */ /* 10 */ 0x8, /* FC_LONG */ 0x8, /* FC_LONG */ /* 12 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 14 */ 0x1c, /* FC_CVARRAY */ 0x1, /* 1 */ /* 16 */ NdrFcShort( 0x2 ), /* 2 */ /* 18 */ 0x17, /* Corr desc: field pointer, FC_USHORT */ 0x55, /* FC_DIV_2 */ /* 20 */ NdrFcShort( 0x2 ), /* 2 */ /* 22 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 24 */ 0x17, /* Corr desc: field pointer, FC_USHORT */ 0x55, /* FC_DIV_2 */ /* 26 */ NdrFcShort( 0x0 ), /* 0 */ /* 28 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 30 */ 0x5, /* FC_WCHAR */ 0x5b, /* FC_END */ /* 32 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 34 */ NdrFcShort( 0x10 ), /* 16 */ /* 36 */ NdrFcShort( 0x0 ), /* 0 */ /* 38 */ NdrFcShort( 0x8 ), /* Offset= 8 (46) */ /* 40 */ 0x6, /* FC_SHORT */ 0x6, /* FC_SHORT */ /* 42 */ 0x40, /* FC_STRUCTPAD4 */ 0x36, /* FC_POINTER */ /* 44 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 46 */ 0x12, 0x0, /* FC_UP */ /* 48 */ NdrFcShort( 0xffde ), /* Offset= -34 (14) */ /* 50 */ 0x1d, /* FC_SMFARRAY */ 0x0, /* 0 */ /* 52 */ NdrFcShort( 0x8 ), /* 8 */ /* 54 */ 0x2, /* FC_CHAR */ 0x5b, /* FC_END */ /* 56 */ 0x15, /* FC_STRUCT */ 0x0, /* 0 */ /* 58 */ NdrFcShort( 0x8 ), /* 8 */ /* 60 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 62 */ NdrFcShort( 0xfff4 ), /* Offset= -12 (50) */ /* 64 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 66 */ 0x1d, /* FC_SMFARRAY */ 0x0, /* 0 */ /* 68 */ NdrFcShort( 0x10 ), /* 16 */ /* 70 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 72 */ NdrFcShort( 0xfff0 ), /* Offset= -16 (56) */ /* 74 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 76 */ 0x15, /* FC_STRUCT */ 0x0, /* 0 */ /* 78 */ NdrFcShort( 0x10 ), /* 16 */ /* 80 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 82 */ NdrFcShort( 0xfff0 ), /* Offset= -16 (66) */ /* 84 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 86 */ 0x1d, /* FC_SMFARRAY */ 0x3, /* 3 */ /* 88 */ NdrFcShort( 0x8 ), /* 8 */ /* 90 */ 0x8, /* FC_LONG */ 0x5b, /* FC_END */ /* 92 */ 0x1d, /* FC_SMFARRAY */ 0x3, /* 3 */ /* 94 */ NdrFcShort( 0x1c ), /* 28 */ /* 96 */ 0x8, /* FC_LONG */ 0x5b, /* FC_END */ /* 98 */ 0x21, /* FC_BOGUS_ARRAY */ 0x3, /* 3 */ /* 100 */ NdrFcShort( 0x0 ), /* 0 */ /* 102 */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* */ /* 104 */ NdrFcShort( 0x9c ), /* 156 */ /* 106 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 108 */ NdrFcLong( 0xffffffff ), /* -1 */ /* 112 */ NdrFcShort( 0x0 ), /* Corr flags: */ /* 114 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 116 */ NdrFcShort( 0xff92 ), /* Offset= -110 (6) */ /* 118 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 120 */ 0x1d, /* FC_SMFARRAY */ 0x0, /* 0 */ /* 122 */ NdrFcShort( 0x6 ), /* 6 */ /* 124 */ 0x1, /* FC_BYTE */ 0x5b, /* FC_END */ /* 126 */ 0x15, /* FC_STRUCT */ 0x0, /* 0 */ /* 128 */ NdrFcShort( 0x6 ), /* 6 */ /* 130 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 132 */ NdrFcShort( 0xfff4 ), /* Offset= -12 (120) */ /* 134 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 136 */ 0x1b, /* FC_CARRAY */ 0x3, /* 3 */ /* 138 */ NdrFcShort( 0x4 ), /* 4 */ /* 140 */ 0x4, /* Corr desc: FC_USMALL */ 0x0, /* */ /* 142 */ NdrFcShort( 0xfff9 ), /* -7 */ /* 144 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 146 */ 0x8, /* FC_LONG */ 0x5b, /* FC_END */ /* 148 */ 0x17, /* FC_CSTRUCT */ 0x3, /* 3 */ /* 150 */ NdrFcShort( 0x8 ), /* 8 */ /* 152 */ NdrFcShort( 0xfff0 ), /* Offset= -16 (136) */ /* 154 */ 0x2, /* FC_CHAR */ 0x2, /* FC_CHAR */ /* 156 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 158 */ NdrFcShort( 0xffe0 ), /* Offset= -32 (126) */ /* 160 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 162 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 164 */ NdrFcShort( 0x10 ), /* 16 */ /* 166 */ NdrFcShort( 0x0 ), /* 0 */ /* 168 */ NdrFcShort( 0x6 ), /* Offset= 6 (174) */ /* 170 */ 0x36, /* FC_POINTER */ 0x8, /* FC_LONG */ /* 172 */ 0x40, /* FC_STRUCTPAD4 */ 0x5b, /* FC_END */ /* 174 */ 0x12, 0x0, /* FC_UP */ /* 176 */ NdrFcShort( 0xffe4 ), /* Offset= -28 (148) */ /* 178 */ 0x21, /* FC_BOGUS_ARRAY */ 0x3, /* 3 */ /* 180 */ NdrFcShort( 0x0 ), /* 0 */ /* 182 */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* */ /* 184 */ NdrFcShort( 0x110 ), /* 272 */ /* 186 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 188 */ NdrFcLong( 0xffffffff ), /* -1 */ /* 192 */ NdrFcShort( 0x0 ), /* Corr flags: */ /* 194 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 196 */ NdrFcShort( 0xffde ), /* Offset= -34 (162) */ /* 198 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 200 */ 0x21, /* FC_BOGUS_ARRAY */ 0x3, /* 3 */ /* 202 */ NdrFcShort( 0x0 ), /* 0 */ /* 204 */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* */ /* 206 */ NdrFcShort( 0x128 ), /* 296 */ /* 208 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 210 */ NdrFcLong( 0xffffffff ), /* -1 */ /* 214 */ NdrFcShort( 0x0 ), /* Corr flags: */ /* 216 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 218 */ NdrFcShort( 0xff2c ), /* Offset= -212 (6) */ /* 220 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 222 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 224 */ NdrFcShort( 0x138 ), /* 312 */ /* 226 */ NdrFcShort( 0x0 ), /* 0 */ /* 228 */ NdrFcShort( 0x58 ), /* Offset= 88 (316) */ /* 230 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 232 */ NdrFcShort( 0xff1e ), /* Offset= -226 (6) */ /* 234 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 236 */ NdrFcShort( 0xff1a ), /* Offset= -230 (6) */ /* 238 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 240 */ NdrFcShort( 0xff16 ), /* Offset= -234 (6) */ /* 242 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 244 */ NdrFcShort( 0xff12 ), /* Offset= -238 (6) */ /* 246 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 248 */ NdrFcShort( 0xff0e ), /* Offset= -242 (6) */ /* 250 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 252 */ NdrFcShort( 0xff0a ), /* Offset= -246 (6) */ /* 254 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 256 */ NdrFcShort( 0xff20 ), /* Offset= -224 (32) */ /* 258 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 260 */ NdrFcShort( 0xff1c ), /* Offset= -228 (32) */ /* 262 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 264 */ NdrFcShort( 0xff18 ), /* Offset= -232 (32) */ /* 266 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 268 */ NdrFcShort( 0xff14 ), /* Offset= -236 (32) */ /* 270 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 272 */ NdrFcShort( 0xff10 ), /* Offset= -240 (32) */ /* 274 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 276 */ NdrFcShort( 0xff0c ), /* Offset= -244 (32) */ /* 278 */ 0x6, /* FC_SHORT */ 0x6, /* FC_SHORT */ /* 280 */ 0x8, /* FC_LONG */ 0x8, /* FC_LONG */ /* 282 */ 0x8, /* FC_LONG */ 0x36, /* FC_POINTER */ /* 284 */ 0x8, /* FC_LONG */ 0x4c, /* FC_EMBEDDED_COMPLEX */ /* 286 */ 0x0, /* 0 */ NdrFcShort( 0xff2d ), /* Offset= -211 (76) */ 0x40, /* FC_STRUCTPAD4 */ /* 290 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 292 */ NdrFcShort( 0xfefc ), /* Offset= -260 (32) */ /* 294 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 296 */ NdrFcShort( 0xfef8 ), /* Offset= -264 (32) */ /* 298 */ 0x36, /* FC_POINTER */ 0x4c, /* FC_EMBEDDED_COMPLEX */ /* 300 */ 0x0, /* 0 */ NdrFcShort( 0xff29 ), /* Offset= -215 (86) */ 0x8, /* FC_LONG */ /* 304 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* 0 */ /* 306 */ NdrFcShort( 0xff2a ), /* Offset= -214 (92) */ /* 308 */ 0x8, /* FC_LONG */ 0x40, /* FC_STRUCTPAD4 */ /* 310 */ 0x36, /* FC_POINTER */ 0x36, /* FC_POINTER */ /* 312 */ 0x8, /* FC_LONG */ 0x40, /* FC_STRUCTPAD4 */ /* 314 */ 0x36, /* FC_POINTER */ 0x5b, /* FC_END */ /* 316 */ 0x12, 0x0, /* FC_UP */ /* 318 */ NdrFcShort( 0xff24 ), /* Offset= -220 (98) */ /* 320 */ 0x12, 0x0, /* FC_UP */ /* 322 */ NdrFcShort( 0xff52 ), /* Offset= -174 (148) */ /* 324 */ 0x12, 0x0, /* FC_UP */ /* 326 */ NdrFcShort( 0xff6c ), /* Offset= -148 (178) */ /* 328 */ 0x12, 0x0, /* FC_UP */ /* 330 */ NdrFcShort( 0xff4a ), /* Offset= -182 (148) */ /* 332 */ 0x12, 0x0, /* FC_UP */ /* 334 */ NdrFcShort( 0xff7a ), /* Offset= -134 (200) */ /* 336 */ 0x12, 0x0, /* FC_UP */ /* 338 */ NdrFcShort( 0x34 ), /* Offset= 52 (390) */ /* 340 */ 0x1b, /* FC_CARRAY */ 0x0, /* 0 */ /* 342 */ NdrFcShort( 0x1 ), /* 1 */ /* 344 */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* */ /* 346 */ NdrFcShort( 0x0 ), /* 0 */ /* 348 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 350 */ 0x2, /* FC_CHAR */ 0x5b, /* FC_END */ /* 352 */ 0x1b, /* FC_CARRAY */ 0x0, /* 0 */ /* 354 */ NdrFcShort( 0x1 ), /* 1 */ /* 356 */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* */ /* 358 */ NdrFcShort( 0x1c ), /* 28 */ /* 360 */ NdrFcShort( 0x1 ), /* Corr flags: early, */ /* 362 */ 0x2, /* FC_CHAR */ 0x5b, /* FC_END */ /* 364 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 366 */ NdrFcShort( 0x28 ), /* 40 */ /* 368 */ NdrFcShort( 0x0 ), /* 0 */ /* 370 */ NdrFcShort( 0xc ), /* Offset= 12 (382) */ /* 372 */ 0x8, /* FC_LONG */ 0x40, /* FC_STRUCTPAD4 */ /* 374 */ 0x36, /* FC_POINTER */ 0xd, /* FC_ENUM16 */ /* 376 */ 0x8, /* FC_LONG */ 0x6, /* FC_SHORT */ /* 378 */ 0x3e, /* FC_STRUCTPAD2 */ 0x8, /* FC_LONG */ /* 380 */ 0x36, /* FC_POINTER */ 0x5b, /* FC_END */ /* 382 */ 0x12, 0x0, /* FC_UP */ /* 384 */ NdrFcShort( 0xffd4 ), /* Offset= -44 (340) */ /* 386 */ 0x12, 0x0, /* FC_UP */ /* 388 */ NdrFcShort( 0xffdc ), /* Offset= -36 (352) */ /* 390 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 392 */ NdrFcShort( 0x8 ), /* 8 */ /* 394 */ NdrFcShort( 0x0 ), /* 0 */ /* 396 */ NdrFcShort( 0x4 ), /* Offset= 4 (400) */ /* 398 */ 0x36, /* FC_POINTER */ 0x5b, /* FC_END */ /* 400 */ 0x12, 0x0, /* FC_UP */ /* 402 */ NdrFcShort( 0xffda ), /* Offset= -38 (364) */ /* 404 */ 0x12, 0x0, /* FC_UP */ /* 406 */ NdrFcShort( 0x2 ), /* Offset= 2 (408) */ /* 408 */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ /* 410 */ NdrFcShort( 0x8 ), /* 8 */ /* 412 */ NdrFcShort( 0x0 ), /* 0 */ /* 414 */ NdrFcShort( 0x4 ), /* Offset= 4 (418) */ /* 416 */ 0x36, /* FC_POINTER */ 0x5b, /* FC_END */ /* 418 */ 0x12, 0x0, /* FC_UP */ /* 420 */ NdrFcShort( 0xffc8 ), /* Offset= -56 (364) */ 0x0 }); internal const int KerbValidationInfo = 2; private static byte[] Translate(object[] s) { var translated = new List<byte>(); foreach (var obj in s) { if (obj is byte[] bytes) { translated.AddRange(bytes); } else { translated.Add((byte)(int)obj); } } return translated.ToArray(); } } }
29.776197
120
0.511839
[ "MIT" ]
ericlaw1979/Kerberos.NET
Tests/Tests.Kerberos.NET/Pac/Interop/PickleMarshaller.cs
23,019
C#
using System; namespace Logic.ConclusionTypes.BehaviourContracts { public interface IConclusionType { Int32 GetIdent(); } }
14.6
50
0.691781
[ "Apache-2.0" ]
TakinosaJi/LogicalAnalysis
Logic/ConclusionTypes/BehaviourContracts/IConclusionType.cs
148
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACE.Demo.Model.Accounts { public interface IAccountService { Account Get(int id); } }
16.714286
36
0.722222
[ "Apache-2.0" ]
hotjk/ace
ACE.Demo.Model/Accounts/IAccountService.cs
236
C#
//https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/ using System; namespace Problem_66_Convert_Sorted_List_to_BST { class Program { static void Main(string[] args) { ListNode node = new ListNode(-10); node.InsertNode(-3); node.InsertNode(0); node.InsertNode(5); node.InsertNode(9); node.Print(); SortedListToBST(node).Print(); } public static TreeNode SortedListToBST(ListNode head) { Func<ListNode, ListNode, TreeNode> foo = null; foo = (ListNode head, ListNode tail)=>{ if(head == tail) return null;//we reached the end of the linkedlist ListNode fast = head; ListNode slow = head; while(fast != tail && fast.next != tail) { fast = fast.next.next; slow = slow.next; } TreeNode root = new TreeNode(slow.val); root.left = foo(head, slow); root.right = foo(slow.next, tail); return root; }; return foo(head, null); } } }
27.478261
75
0.485759
[ "CC0-1.0" ]
AlazzR/CLRS-Introduction-to-Algorithm
Algorithms_Training/Difficulty_Medium/Problem_66_Convert_Sorted_List_to_BST/Program.cs
1,266
C#
/* * @author Valentin Simonov / http://va.lent.in/ */ #if TOUCHSCRIPT_DEBUG using System; using System.Collections.Generic; using TouchScript.Debugging.Filters; using TouchScript.InputSources; using TouchScript.Pointers; using UnityEngine; namespace TouchScript.Debugging.Loggers { /// <summary> /// A logger to record pointer events. /// </summary> public interface IPointerLogger { /// <summary> /// The number of different pointers recorded by this logger. /// </summary> int PointerCount { get; } /// <summary> /// Logs the specified event. /// </summary> /// <param name="pointer">The pointer.</param> /// <param name="evt">The event.</param> void Log(Pointer pointer, PointerEvent evt); /// <summary> /// Returns a list of pointers. /// </summary> /// <param name="filter">The filter to use.</param> /// <returns>A list of <see cref="PointerData"/> objects.</returns> List<PointerData> GetFilteredPointerData(IPointerDataFilter filter = null); /// <summary> /// Returns a lost of pointer events for a pointer. /// </summary> /// <param name="id">The pointer id.</param> /// <param name="filter">The filter to use.</param> /// <returns>A list of <see cref="PointerLog"/> entries.</returns> List<PointerLog> GetFilteredLogsForPointer(int id, IPointerLogFilter filter = null); /// <summary> /// Releases resources. /// </summary> void Dispose(); } /// <summary> /// Pointer event. /// </summary> [Serializable] public struct PointerLog { public int Id; public long Tick; public int PointerId; public PointerEvent Event; public PointerState State; } /// <summary> /// Pointer state during an event. /// </summary> [Serializable] public struct PointerState { public Pointer.PointerButtonState Buttons; public Vector2 Position; public Vector2 PreviousPosition; public uint Flags; public Transform Target; public string TargetPath; } /// <summary> /// Static pointer data. /// </summary> [Serializable] public struct PointerData { public int Id; public Pointer.PointerType Type; public IInputSource InputSource; } /// <summary> /// Pointer event type. /// </summary> public enum PointerEvent { None, IdAllocated, Added, Updated, Pressed, Released, Removed, Cancelled } } #endif
25.12963
92
0.58143
[ "Apache-2.0" ]
ApuriDasuo/AssetTest-TouchScriptTest
Assets/TouchScript/Scripts/Debugging/Loggers/IPointerLogger.cs
2,714
C#
using System; using Toggl.Daneel.ViewSources.Generic.TableView; using UIKit; namespace Toggl.Daneel.Cells { public abstract class BaseTableViewCell<TModel> : UITableViewCell { private TModel item; public TModel Item { get => item; set { item = value; UpdateView(); } } protected BaseTableViewCell() { } protected BaseTableViewCell(IntPtr handle) : base(handle) { } protected abstract void UpdateView(); public static CellConfiguration<TModel> CellConfiguration(string cellIdentifier) { return (tableView, indexPath, model) => { var cell = (BaseTableViewCell<TModel>)tableView.DequeueReusableCell(cellIdentifier, indexPath); cell.Item = model; return cell; }; } } }
23.119048
111
0.533471
[ "BSD-3-Clause" ]
kelimebilgisi/mobileapp
Toggl.Daneel/Cells/BaseTableViewCell.cs
973
C#
using System; using RazzleServer.Common.Constants; using RazzleServer.Common.Exceptions; using RazzleServer.Data; namespace RazzleServer.Game.Server { public abstract class AMapleAccount { public int Id { get; set; } public string Username { get; set; } public string Password { get; set; } public string Salt { get; set; } public Gender Gender { get; set; } public bool IsMaster { get; set; } public BanReasonType BanReason { get; set; } public DateTime Birthday { get; set; } public DateTime Creation { get; set; } public bool IsOnline { get; set; } protected AMapleAccount() { } protected AMapleAccount(int accountId) => Id = accountId; public virtual void Load() { using var dbContext = new MapleDbContext(); var account = dbContext.Accounts.Find(Id); if (account == null) { throw new NoAccountException(); } Id = account.Id; Username = account.Username; Gender = (Gender)account.Gender; Password = account.Password; Salt = account.Salt; Birthday = account.Birthday; Creation = account.Creation; BanReason = (BanReasonType)account.BanReason; IsMaster = account.IsMaster; } public virtual void Save() { } public virtual void Create() { } } }
28.074074
65
0.563984
[ "MIT" ]
razfriman/RazzleServer
RazzleServer.Game/Server/AMapleAccount.cs
1,516
C#
/* * Copyright (c) 2009, DIaLOGIKa * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the names of copyright holders, nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System; using System.Collections.Generic; using System.Reflection; using DIaLOGIKa.b2xtranslator.StructuredStorage.Reader; namespace DIaLOGIKa.b2xtranslator.OfficeGraph { public abstract class OfficeGraphBiffRecord { GraphRecordNumber _id; UInt32 _length; long _offset; /// <summary> /// Ctor /// </summary> /// <param name="reader">Streamreader</param> /// <param name="id">Record ID - Recordtype</param> /// <param name="length">The recordlegth</param> public OfficeGraphBiffRecord(IStreamReader reader, GraphRecordNumber id, UInt32 length) { _reader = reader; _offset = _reader.BaseStream.Position; _id = id; _length = length; } private static Dictionary<UInt16, Type> TypeToRecordClassMapping = new Dictionary<UInt16, Type>(); static OfficeGraphBiffRecord() { UpdateTypeToRecordClassMapping( Assembly.GetExecutingAssembly(), typeof(OfficeGraphBiffRecord).Namespace); } public static void UpdateTypeToRecordClassMapping(Assembly assembly, String ns) { foreach (Type t in assembly.GetTypes()) { if (ns == null || t.Namespace == ns) { object[] attrs = t.GetCustomAttributes(typeof(OfficeGraphBiffRecordAttribute), false); OfficeGraphBiffRecordAttribute attr = null; if (attrs.Length > 0) attr = attrs[0] as OfficeGraphBiffRecordAttribute; if (attr != null) { // Add the type codes of the array foreach (UInt16 typeCode in attr.TypeCodes) { if (TypeToRecordClassMapping.ContainsKey(typeCode)) { throw new Exception(String.Format( "Tried to register TypeCode {0} to {1}, but it is already registered to {2}", typeCode, t, TypeToRecordClassMapping[typeCode])); } TypeToRecordClassMapping.Add(typeCode, t); } } } } } [Obsolete("Use OfficeGraphBiffRecordSequence.GetNextRecordNumber")] public static GraphRecordNumber GetNextRecordNumber(IStreamReader reader) { // read next id GraphRecordNumber nextRecord = (GraphRecordNumber)reader.ReadUInt16(); // seek back reader.BaseStream.Seek(-sizeof(UInt16), System.IO.SeekOrigin.Current); return nextRecord; } [Obsolete("Use OfficeGraphBiffRecordSequence.ReadRecord")] public static OfficeGraphBiffRecord ReadRecord(IStreamReader reader) { OfficeGraphBiffRecord result = null; try { UInt16 id = reader.ReadUInt16(); UInt16 size = reader.ReadUInt16(); Type cls; if (TypeToRecordClassMapping.TryGetValue(id, out cls)) { ConstructorInfo constructor = cls.GetConstructor( new Type[] { typeof(IStreamReader), typeof(GraphRecordNumber), typeof(UInt16) } ); try { result = (OfficeGraphBiffRecord)constructor.Invoke( new object[] {reader, id, size } ); } catch (TargetInvocationException e) { throw e.InnerException; } } else { result = new UnknownGraphRecord(reader, id, size); } return result; } catch (OutOfMemoryException e) { throw new Exception("Invalid record", e); } } public GraphRecordNumber Id { get { return _id; } } public UInt32 Length { get { return _length; } } public long Offset { get { return _offset; } } IStreamReader _reader; public IStreamReader Reader { get { return _reader; } set { this._reader = value; } } } }
37.453488
114
0.544241
[ "BSD-3-Clause" ]
datadiode/B2XTranslator
src/Common/OfficeGraph/OfficeGraphBiffRecord.cs
6,444
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cats.Models { public partial class AllocationByRegion { public Nullable<int> Status { get; set; } public Nullable<int> RegionID { get; set; } public string Name { get; set; } public Nullable<decimal> Amount { get; set; } public Nullable<int> BenficiaryNo { get; set; } public string Hub { get; set; } } }
25.619048
59
0.596654
[ "Apache-2.0" ]
IYoni/cats
Models/Cats.Models/AllocationByRegion.cs
540
C#
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.Azure.Devices.Edge.Hub.E2E.Test { using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.IO; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using Autofac; using DotNetty.Common.Internal.Logging; using Microsoft.Azure.Devices.Client; using Microsoft.Azure.Devices.Edge.Hub.CloudProxy; using Microsoft.Azure.Devices.Edge.Hub.Core.Config; using Microsoft.Azure.Devices.Edge.Hub.Mqtt; using Microsoft.Azure.Devices.Edge.Hub.Service; using Microsoft.Azure.Devices.Edge.Hub.Service.Modules; using Microsoft.Azure.Devices.Edge.Util; using Microsoft.Azure.Devices.Edge.Util.Logging; using Microsoft.Azure.Devices.Edge.Util.Metrics; using Microsoft.Azure.Devices.ProtocolGateway.Instrumentation; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Moq; using Newtonsoft.Json; using EdgeHubConstants = Microsoft.Azure.Devices.Edge.Hub.Service.Constants; class DependencyManager : IDependencyManager { readonly IConfigurationRoot configuration; readonly X509Certificate2 serverCertificate; readonly IList<X509Certificate2> trustBundle; readonly SslProtocols sslProtocols; readonly IList<string> inboundTemplates = new List<string>() { "devices/{deviceId}/messages/events/{params}/", "devices/{deviceId}/messages/events/", "devices/{deviceId}/modules/{moduleId}/messages/events/{params}/", "devices/{deviceId}/modules/{moduleId}/messages/events/", "$iothub/methods/res/{statusCode}/?$rid={correlationId}", "$iothub/methods/res/{statusCode}/?$rid={correlationId}&foo={bar}" }; readonly IDictionary<string, string> outboundTemplates = new Dictionary<string, string>() { { "C2D", "devices/{deviceId}/messages/devicebound" }, { "TwinEndpoint", "$iothub/twin/res/{statusCode}/?$rid={correlationId}" }, { "TwinDesiredPropertyUpdate", "$iothub/twin/PATCH/properties/desired/?$version={version}" }, { "ModuleEndpoint", "devices/{deviceId}/modules/{moduleId}/inputs/{inputName}" } }; readonly IDictionary<string, string> routes = new Dictionary<string, string>() { ["r1"] = "FROM /messages/events INTO $upstream", ["r2"] = "FROM /messages/modules/senderA INTO BrokeredEndpoint(\"/modules/receiverA/inputs/input1\")", ["r3"] = "FROM /messages/modules/senderB INTO BrokeredEndpoint(\"/modules/receiverA/inputs/input1\")", ["r4"] = "FROM /messages/modules/sender1 INTO BrokeredEndpoint(\"/modules/receiver1/inputs/input1\")", ["r5"] = "FROM /messages/modules/sender2 INTO BrokeredEndpoint(\"/modules/receiver2/inputs/input1\")", ["r6"] = "FROM /messages/modules/sender3 INTO BrokeredEndpoint(\"/modules/receiver3/inputs/input1\")", ["r7"] = "FROM /messages/modules/sender4 INTO BrokeredEndpoint(\"/modules/receiver4/inputs/input1\")", ["r8"] = "FROM /messages/modules/sender5 INTO BrokeredEndpoint(\"/modules/receiver5/inputs/input1\")", ["r9"] = "FROM /messages/modules/sender6 INTO BrokeredEndpoint(\"/modules/receiver6/inputs/input1\")", ["r10"] = "FROM /messages/modules/sender7 INTO BrokeredEndpoint(\"/modules/receiver7/inputs/input1\")", ["r11"] = "FROM /messages/modules/sender8 INTO BrokeredEndpoint(\"/modules/receiver8/inputs/input1\")", ["r12"] = "FROM /messages/modules/sender9 INTO BrokeredEndpoint(\"/modules/receiver9/inputs/input1\")", ["r13"] = "FROM /messages/modules/sender10 INTO BrokeredEndpoint(\"/modules/receiver10/inputs/input1\")", ["r14"] = "FROM /messages/modules/sender11/outputs/output1 INTO BrokeredEndpoint(\"/modules/receiver11/inputs/input1\")", ["r15"] = "FROM /messages/modules/sender11/outputs/output2 INTO BrokeredEndpoint(\"/modules/receiver11/inputs/input2\")", }; public DependencyManager(IConfigurationRoot configuration, X509Certificate2 serverCertificate, IList<X509Certificate2> trustBundle, SslProtocols sslProtocols) { this.configuration = configuration; this.serverCertificate = serverCertificate; this.trustBundle = trustBundle; this.sslProtocols = sslProtocols; } public void Register(ContainerBuilder builder) { const int ConnectionPoolSize = 10; string edgeHubConnectionString = $"{this.configuration[EdgeHubConstants.ConfigKey.IotHubConnectionString]};ModuleId=$edgeHub"; IotHubConnectionStringBuilder iotHubConnectionStringBuilder = IotHubConnectionStringBuilder.Create(edgeHubConnectionString); var topics = new MessageAddressConversionConfiguration(this.inboundTemplates, this.outboundTemplates); builder.RegisterModule(new LoggingModule()); var mqttSettingsConfiguration = new Mock<IConfiguration>(); mqttSettingsConfiguration.Setup(c => c.GetSection(It.IsAny<string>())).Returns(Mock.Of<IConfigurationSection>(s => s.Value == null)); var experimentalFeatures = new ExperimentalFeatures(true, false, false, true); builder.RegisterBuildCallback( c => { // set up loggers for dotnetty var loggerFactory = c.Resolve<ILoggerFactory>(); InternalLoggerFactory.DefaultFactory = loggerFactory; var eventListener = new LoggerEventListener(loggerFactory.CreateLogger("ProtocolGateway")); eventListener.EnableEvents(CommonEventSource.Log, EventLevel.Informational); }); var versionInfo = new VersionInfo("v1", "b1", "c1"); var metricsConfig = new MetricsConfig(true, new MetricsListenerConfig()); var backupFolder = Option.None<string>(); string storageFolder = string.Empty; StoreLimits storeLimits = null; if (!int.TryParse(this.configuration["TimeToLiveSecs"], out int timeToLiveSecs)) { timeToLiveSecs = -1; } if (long.TryParse(this.configuration["MaxStorageBytes"], out long maxStorageBytes)) { storeLimits = new StoreLimits(maxStorageBytes); } var storeAndForwardConfiguration = new StoreAndForwardConfiguration(timeToLiveSecs, storeLimits); if (bool.TryParse(this.configuration["UsePersistentStorage"], out bool usePersistentStorage) && usePersistentStorage) { storageFolder = GetOrCreateDirectoryPath(this.configuration["StorageFolder"], EdgeHubConstants.EdgeHubStorageFolder); } if (bool.TryParse(this.configuration["EnableNonPersistentStorageBackup"], out bool enableNonPersistentStorageBackup)) { backupFolder = Option.Some(this.configuration["BackupFolder"]); } var testRoutes = this.routes; string customRoutes = this.configuration["Routes"]; if (!string.IsNullOrWhiteSpace(customRoutes)) { testRoutes = JsonConvert.DeserializeObject<IDictionary<string, string>>(customRoutes); } builder.RegisterModule( new CommonModule( string.Empty, iotHubConnectionStringBuilder.HostName, iotHubConnectionStringBuilder.DeviceId, iotHubConnectionStringBuilder.ModuleId, string.Empty, Option.None<string>(), AuthenticationMode.CloudAndScope, Option.Some(edgeHubConnectionString), false, usePersistentStorage, storageFolder, Option.None<string>(), Option.None<string>(), TimeSpan.FromHours(1), false, this.trustBundle, string.Empty, metricsConfig, enableNonPersistentStorageBackup, backupFolder, Option.None<ulong>())); builder.RegisterModule( new RoutingModule( iotHubConnectionStringBuilder.HostName, iotHubConnectionStringBuilder.DeviceId, iotHubConnectionStringBuilder.ModuleId, Option.Some(edgeHubConnectionString), testRoutes, true, storeAndForwardConfiguration, ConnectionPoolSize, false, versionInfo, Option.Some(UpstreamProtocol.Amqp), TimeSpan.FromSeconds(5), 101, TimeSpan.FromSeconds(3600), true, TimeSpan.FromSeconds(20), Option.None<TimeSpan>(), Option.None<TimeSpan>(), false, 10, 10, false, TimeSpan.FromHours(1), experimentalFeatures)); builder.RegisterModule(new HttpModule()); builder.RegisterModule(new MqttModule(mqttSettingsConfiguration.Object, topics, this.serverCertificate, false, false, false, this.sslProtocols)); builder.RegisterModule(new AmqpModule("amqps", 5671, this.serverCertificate, iotHubConnectionStringBuilder.HostName, true, this.sslProtocols)); } static string GetOrCreateDirectoryPath(string baseDirectoryPath, string directoryName) { if (string.IsNullOrWhiteSpace(baseDirectoryPath) || !Directory.Exists(baseDirectoryPath)) { baseDirectoryPath = Path.GetTempPath(); } string directoryPath = Path.Combine(baseDirectoryPath, directoryName); if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } return directoryPath; } } }
48.767442
166
0.619933
[ "MIT" ]
dllb00/iotedge
edge-hub/test/Microsoft.Azure.Devices.Edge.Hub.E2E.Test/DependencyManager.cs
10,485
C#
#if !NETSTANDARD using System.Collections.Generic; using System.Reflection; using System.Runtime.Remoting.Messaging; using System.Xml.Linq; namespace Machine.Specifications.Runner.Utility { internal class RemoteRunnerDecorator : ISpecificationRunner { private readonly IMessageSink _remoteRunner; public RemoteRunnerDecorator(IMessageSink remoteRunner) { _remoteRunner = remoteRunner; } public void StartRun(AssemblyPath assembly) { var root = new XElement("runner", new XElement("startrun", assembly.ToXml())); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root)); } public void EndRun(AssemblyPath assembly) { var root = new XElement("runner", new XElement("endrun", assembly.ToXml())); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root)); } public void RunMember(AssemblyPath assembly, MemberInfo member) { var root = new XElement("runner", new XElement("runmember", assembly.ToXml())); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root, member)); } public void RunAssemblies(IEnumerable<AssemblyPath> assemblies) { var root = new XElement("runner", new XElement("runassemblies", assemblies.ToXml())); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root)); } public void RunNamespace(AssemblyPath assembly, string targetNamespace) { var root = new XElement("runner", new XElement("runnamespace", assembly.ToXml(), new XElement("namespace", targetNamespace))); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root)); } public void RunAssembly(AssemblyPath assembly) { var root = new XElement("runner", new XElement("runassembly", assembly.ToXml())); _remoteRunner.SyncProcessMessage(new RemoteRunnerMessage(root)); } } } #endif
32.951613
138
0.66324
[ "MIT" ]
eshohag/machine.specifications
src/Machine.Specifications.Runner.Utility/RemoteRunnerDecorator.cs
2,045
C#
using System.Collections.Generic; namespace Develappers.BillomatNet.Types { public class InvoiceMail { public string From { get; set; } public Recipients Recipients { get; set; } public string Subject { get; set; } public string Body { get; set; } public List<Attachment> Attachments { get; set; } } }
25.428571
57
0.632022
[ "MIT" ]
DevelappersGmbH/BillomatNet
Develappers.BillomatNet/Types/InvoiceMail.cs
358
C#
using System; namespace Calabonga.RulesValidator.Demo.Models.Base { /// <summary> /// Represent information about creation and last update /// </summary> public interface IAuditable { /// <summary> /// DateTime of creation. This value will never changed /// </summary> DateTime CreatedAt { get; set; } /// <summary> /// Author name. This value never changed /// </summary> string CreatedBy { get; set; } /// <summary> /// DateTime of last value update. Should be updated when entity data updated /// </summary> DateTime? UpdatedAt { get; set; } /// <summary> /// Author of last value update. Should be updated when entity data updated /// </summary> string UpdatedBy { get; set; } } }
26.34375
85
0.569395
[ "MIT" ]
Calabonga/Calabonga.RulesValidator
Calabonga.RulesValidator.Demo/Calabonga.RulesValidator.Demo/Calabonga.RulesValidator.Demo.Models/Base/IAuditable.cs
845
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CLK.Scheduling { public sealed class PromptlyTrigger: ITaskTrigger { // Methods public bool Approve(DateTime executeTime, DateTime lastExecuteTime) { // Return return true; } } }
19.166667
75
0.631884
[ "MIT" ]
Clark159/CLK
old/v1.0/CLK.Scheduling/Sources/CLK.Scheduling/Implementation/Triggers/PromptlyTrigger.cs
347
C#
using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Utilities; namespace VSIXAnatomy { /// <summary> /// Classification type definition export for EditorClassifier1 /// </summary> internal static class EditorClassifier1ClassificationDefinition { // This disables "The field is never used" compiler's warning. Justification: the field is used by MEF. #pragma warning disable 169 /// <summary> /// Defines the "EditorClassifier1" classification type. /// </summary> [Export(typeof(ClassificationTypeDefinition))] [Name("EditorClassifier1")] private static ClassificationTypeDefinition typeDefinition; #pragma warning restore 169 } }
31.32
111
0.719029
[ "Unlicense" ]
Rishabh-V/Visual-Studio-Extensibility-Development
Chapter 2/VSIXAnatomy/EditorClassifier1ClassificationDefinition.cs
785
C#
#pragma checksum "D:\Felix\Documents\GitHub\MS-600-Building-Applications-and-Solutions-with-Microsoft-365-Core-Services\Evidencias\Lab01\MultiOrg\Views\_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "36d7235d2a9de3eba00a39269157f6bdb3d946d1" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views__ViewImports), @"mvc.1.0.view", @"/Views/_ViewImports.cshtml")] namespace AspNetCore { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; #nullable restore #line 1 "D:\Felix\Documents\GitHub\MS-600-Building-Applications-and-Solutions-with-Microsoft-365-Core-Services\Evidencias\Lab01\MultiOrg\Views\_ViewImports.cshtml" using MultiOrg; #line default #line hidden #nullable disable #nullable restore #line 2 "D:\Felix\Documents\GitHub\MS-600-Building-Applications-and-Solutions-with-Microsoft-365-Core-Services\Evidencias\Lab01\MultiOrg\Views\_ViewImports.cshtml" using MultiOrg.Models; #line default #line hidden #nullable disable [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"36d7235d2a9de3eba00a39269157f6bdb3d946d1", @"/Views/_ViewImports.cshtml")] public class Views__ViewImports : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { } #pragma warning restore 1998 [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } } } #pragma warning restore 1591
52.96
256
0.774169
[ "MIT" ]
host4ideas/MS-600-Building-Applications-and-Solutions-with-Microsoft-365-Core-Services
Evidencias/Lab01/exercise02/MultiOrg/obj/Debug/net5.0/Razor/Views/_ViewImports.cshtml.g.cs
2,648
C#
using System; using System.Threading.Tasks; using GraphQL.Language.AST; using GraphQL.Validation.Errors; namespace GraphQL.Validation.Rules { /// <summary> /// Lone anonymous operation: /// /// A GraphQL document is only valid if when it contains an anonymous operation /// (the query short-hand) that it contains only that one operation definition. /// </summary> public class LoneAnonymousOperation : IValidationRule { [Obsolete] public Func<string> AnonOperationNotAloneMessage => () => "This anonymous operation must be the only defined operation."; /// <summary> /// Returns a static instance of this validation rule. /// </summary> public static readonly LoneAnonymousOperation Instance = new LoneAnonymousOperation(); /// <inheritdoc/> /// <exception cref="LoneAnonymousOperationError"/> public Task<INodeVisitor> ValidateAsync(ValidationContext context) { var operationCount = context.Document.Operations.Count; return new EnterLeaveListener(_ => { _.Match<Operation>(op => { if (string.IsNullOrWhiteSpace(op.Name) && operationCount > 1) { context.ReportError(new LoneAnonymousOperationError(context, op)); } }); }).ToTask(); } } }
32.977778
94
0.586927
[ "MIT" ]
IdeaHunter/graphql-dotnet
src/GraphQL/Validation/Rules/LoneAnonymousOperation.cs
1,484
C#
using System; namespace NetworkProtocols { // Token: 0x02000506 RID: 1286 public class BaseXP : BaseAwardEntry { // Token: 0x06002CB8 RID: 11448 RVA: 0x00017C23 File Offset: 0x00015E23 public BaseXP() { this.InitRefTypes(); this.UniqueClassID = 2040517672u; } // Token: 0x06002CB9 RID: 11449 RVA: 0x000FE11C File Offset: 0x000FC31C public override byte[] SerializeMessage() { byte[] newArray = ArrayManager.GetNewArray(); int num = 0; byte[] array = base.SerializeMessage(); if (array.Length + num > newArray.Length) { Array.Resize<byte>(ref newArray, array.Length + num); } Array.Copy(array, 0, newArray, num, array.Length); num += array.Length; Array.Resize<byte>(ref newArray, num); return newArray; } // Token: 0x06002CBA RID: 11450 RVA: 0x000FE16C File Offset: 0x000FC36C public override void DeserializeMessage(byte[] data) { int num = 0; byte[] array = new byte[data.Length - num]; Array.Copy(data, num, array, 0, array.Length); base.DeserializeMessage(array); } // Token: 0x06002CBB RID: 11451 RVA: 0x00006297 File Offset: 0x00004497 private void InitRefTypes() { } } }
26.434783
74
0.658717
[ "Unlicense" ]
PermaNulled/OMDUC_EMU_CSharp
OMDUC_EMU/NetworkProtocols/BaseXP.cs
1,218
C#
// // This file describes the API that the generator will produce // // Authors: // Miguel de Icaza // // Copyright 2014-2016, Xamarin Inc. // Copyright 2019 Microsoft Corporation // // using ObjCRuntime; using Foundation; using CloudKit; using CoreGraphics; using CoreLocation; using HealthKit; using HomeKit; using Intents; using PassKit; using SpriteKit; using SceneKit; using UIKit; using MapKit; using UserNotifications; using System; using System.ComponentModel; namespace WatchKit { [Unavailable (PlatformName.iOS)] [BaseType (typeof (NSObject))] [Abstract] // <quote>To use this class, subclass it</quote> [DisableDefaultCtor] // DesignatedInitializer below interface WKInterfaceController { [DesignatedInitializer] [Export ("init")] IntPtr Constructor (); [Export ("awakeWithContext:")] void Awake ([NullAllowed] NSObject context); [Export ("contentFrame")] CGRect ContentFrame { get; } // The super implementation of this method does nothing. [Export ("willActivate")] void WillActivate (); // The super implementation of this method does nothing. [Export ("didDeactivate")] void DidDeactivate (); [Export ("didAppear")] void DidAppear (); [Export ("willDisappear")] void WillDisappear (); [Export ("table:didSelectRowAtIndex:")] void DidSelectRow (WKInterfaceTable table, nint rowIndex); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:")] void HandleRemoteNotificationAction ([NullAllowed] string identifier, NSDictionary remoteNotification); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:")] void HandleLocalNotificationAction ([NullAllowed] string identifier, UILocalNotification localNotification); [NoWatch] [Export ("handleActionWithIdentifier:forNotification:")] void HandleAction ([NullAllowed] string identifier, UNNotification notification); [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'WKExtensionDelegate.HandleUserActivity' instead.")] [Export ("handleUserActivity:")] // This NSDictionary is OK, it is arbitrary and user specific void HandleUserActivity ([NullAllowed] NSDictionary userActivity); [Export ("setTitle:")] void SetTitle ([NullAllowed] string title); [ThreadSafe (false)] [Export ("pushControllerWithName:context:")] void PushController (string name, [NullAllowed] NSObject context); [ThreadSafe (false)] [Export ("popController")] void PopController (); [ThreadSafe (false)] [Export ("popToRootController")] void PopToRootController (); [ThreadSafe (false)] [Export ("becomeCurrentPage")] void BecomeCurrentPage (); [ThreadSafe (false)] [Export ("presentControllerWithName:context:")] void PresentController (string name, [NullAllowed] NSObject context); [ThreadSafe (false)] [Export ("presentControllerWithNames:contexts:")] void PresentController (string [] names, [NullAllowed] NSObject [] contexts); [ThreadSafe (false)] [Export ("dismissController")] void DismissController (); [Export ("dismissTextInputController")] void DismissTextInputController (); [return: NullAllowed] [Export ("contextForSegueWithIdentifier:")] NSObject GetContextForSegue (string segueIdentifier); [return: NullAllowed] [Export ("contextsForSegueWithIdentifier:")] NSObject [] GetContextsForSegue (string segueIdentifier); [return: NullAllowed] [Export ("contextForSegueWithIdentifier:inTable:rowIndex:")] NSObject GetContextForSegue (string segueIdentifier, WKInterfaceTable table, nint rowIndex); [return: NullAllowed] [Export ("contextsForSegueWithIdentifier:inTable:rowIndex:")] NSObject [] GetContextsForSegue (string segueIdentifier, WKInterfaceTable table, nint rowIndex); [Deprecated (PlatformName.WatchOS, 7,0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithImage:title:action:")] void AddMenuItem (UIImage image, string title, Selector action); [Deprecated (PlatformName.WatchOS, 7,0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithImageNamed:title:action:")] void AddMenuItem (string imageName, string title, Selector action); [Deprecated (PlatformName.WatchOS, 7,0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithItemIcon:title:action:")] void AddMenuItem (WKMenuItemIcon itemIcon, string title, Selector action); [Deprecated (PlatformName.WatchOS, 7,0)] [Export ("clearAllMenuItems")] void ClearAllMenuItems (); [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'UpdateUserActivity(NSUserActivity)' instead.")] [Export ("updateUserActivity:userInfo:webpageURL:")] // This NSDictionary is OK, it is arbitrary and user specific void UpdateUserActivity (string type, [NullAllowed] NSDictionary userInfo, [NullAllowed] NSUrl webpageURL); [Watch (5,0)] [Export ("updateUserActivity:")] void UpdateUserActivity (NSUserActivity userActivity); [Export ("invalidateUserActivity")] void InvalidateUserActivity (); [ThreadSafe (false)] [Export ("presentTextInputControllerWithSuggestions:allowedInputMode:completion:")] [Async] void PresentTextInputController ([NullAllowed] string [] suggestions, WKTextInputMode inputMode, Action<NSArray> completion); [Export ("presentTextInputControllerWithSuggestionsForLanguage:allowedInputMode:completion:")] [Async] void PresentTextInputController ([NullAllowed] Func<NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode, Action<NSArray> completion); [NoWatch] [Static, Export ("openParentApplication:reply:")] bool OpenParentApplication (NSDictionary userInfo, [NullAllowed] Action<NSDictionary, NSError> reply); [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReloadRootPageControllers' instead.")] [Static, Export ("reloadRootControllersWithNames:contexts:")] void ReloadRootControllers (string [] names, [NullAllowed] NSObject [] contexts); [Watch (4,0)] [Static] [Export ("reloadRootPageControllersWithNames:contexts:orientation:pageIndex:")] void ReloadRootPageControllers (string[] names, [NullAllowed] NSObject[] contexts, WKPageOrientation orientation, nint pageIndex); #if !XAMCORE_3_0 // now exposed with the corresponding WKErrorCode enum [Field ("WatchKitErrorDomain")] NSString ErrorDomain { get; } #endif [Export ("dismissMediaPlayerController")] void DismissMediaPlayerController (); [Watch (2,0)] [Export ("presentAudioRecorderControllerWithOutputURL:preset:options:completion:")] [Async] void PresentAudioRecorderController (NSUrl outputUrl, WKAudioRecorderPreset preset, [NullAllowed] NSDictionary options, Action<bool, NSError> completion); [Watch (2,0)] [Export ("dismissAudioRecorderController")] void DismissAudioRecorderController (); [Export ("animateWithDuration:animations:")] void AnimateWithDuration (double duration, Action animations); [Export ("presentAlertControllerWithTitle:message:preferredStyle:actions:")] void PresentAlertController ([NullAllowed] string title, [NullAllowed] string message, WKAlertControllerStyle preferredStyle, WKAlertAction[] actions); [Export ("presentAddPassesControllerWithPasses:completion:")] [Async] void PresentAddPassesController (PKPass[] passes, Action completion); [Export ("dismissAddPassesController")] void DismissAddPassesController (); [Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")] [Export ("beginGlanceUpdates")] void BeginGlanceUpdates (); [Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")] [Export ("endGlanceUpdates")] void EndGlanceUpdates (); [Export ("pickerDidFocus:")] void PickerDidFocus (WKInterfacePicker picker); [Export ("pickerDidResignFocus:")] void PickerDidResignFocus (WKInterfacePicker picker); [Export ("pickerDidSettle:")] void PickerDidSettle (WKInterfacePicker picker); #if WATCH [Export ("presentMediaPlayerControllerWithURL:options:completion:")] [Async (ResultType = typeof (WKPresentMediaPlayerResult))] void PresentMediaPlayerController (NSUrl url, [NullAllowed] NSDictionary options, Action<bool, double, NSError> completion); #endif [Watch (3,0)] [Export ("crownSequencer", ArgumentSemantic.Strong)] WKCrownSequencer CrownSequencer { get; } [Watch (4,0)] [Export ("scrollToObject:atScrollPosition:animated:")] void ScrollTo (WKInterfaceObject @object, WKInterfaceScrollPosition scrollPosition, bool animated); [Watch (4,0)] [Export ("interfaceDidScrollToTop")] void InterfaceDidScrollToTop (); [Watch (4,0)] [Export ("interfaceOffsetDidScrollToTop")] void InterfaceOffsetDidScrollToTop (); [Watch (4,0)] [Export ("interfaceOffsetDidScrollToBottom")] void InterfaceOffsetDidScrollToBottom (); [Watch (5,0)] [Export ("contentSafeAreaInsets")] UIEdgeInsets ContentSafeAreaInsets { get; } [Watch (5,0)] [Export ("systemMinimumLayoutMargins")] NSDirectionalEdgeInsets SystemMinimumLayoutMargins { get; } [Watch (5,0)] [Export ("tableScrollingHapticFeedbackEnabled")] bool TableScrollingHapticFeedbackEnabled { [Bind ("isTableScrollingHapticFeedbackEnabled")] get; set; } } [Unavailable (PlatformName.iOS)] [BaseType (typeof (WKInterfaceController))] [DisableDefaultCtor] // DesignatedInitializer below interface WKUserNotificationInterfaceController { [DesignatedInitializer] [Export ("init")] IntPtr Constructor (); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")] [Export ("didReceiveRemoteNotification:withCompletion:")] void DidReceiveRemoteNotification (NSDictionary remoteNotification, Action<WKUserNotificationInterfaceType> completionHandler); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")] [Export ("didReceiveLocalNotification:withCompletion:")] void DidReceiveLocalNotification (UILocalNotification localNotification, Action<WKUserNotificationInterfaceType> completionHandler); [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'DidReceiveNotification(UNNotification)' instead.")] [Watch (3,0)] [Export ("didReceiveNotification:withCompletion:")] void DidReceiveNotification (UNNotification notification, Action<WKUserNotificationInterfaceType> completionHandler); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")] [Export ("suggestionsForResponseToActionWithIdentifier:forRemoteNotification:inputLanguage:")] string[] GetSuggestionsForResponseToAction (string identifier, NSDictionary remoteNotification, string inputLanguage); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")] [Export ("suggestionsForResponseToActionWithIdentifier:forLocalNotification:inputLanguage:")] string[] GetSuggestionsForResponseToAction (string identifier, UILocalNotification localNotification, string inputLanguage); [Watch (3,0)] [Export ("suggestionsForResponseToActionWithIdentifier:forNotification:inputLanguage:")] string[] GetSuggestionsForResponseToAction (string identifier, UNNotification notification, string inputLanguage); [Watch (5,0)] [Export ("notificationActions", ArgumentSemantic.Copy)] UNNotificationAction[] NotificationActions { get; set; } [Watch (5,0)] [Export ("didReceiveNotification:")] void DidReceiveNotification (UNNotification notification); [Watch (5,0)] [Export ("performNotificationDefaultAction")] void PerformNotificationDefaultAction (); [Watch (5,0)] [Export ("performDismissAction")] void PerformDismissAction (); [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'PerformDismissAction' instead.")] [Watch (2,0)] [Export ("dismissController")] void DismissController (); } [Unavailable (PlatformName.iOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // just like we inlined UIAccessibility into UIViewm UIImage and UIBarItem instead of stuffing it all into NSObject interface WKInterfaceObject : UIAccessibility { [Export ("interfaceProperty")] string InterfaceProperty { get; } [Export ("setHidden:")] void SetHidden (bool hidden); [Export ("setAlpha:")] void SetAlpha (nfloat alpha); [Export ("setWidth:")] void SetWidth (nfloat width); [Export ("setHeight:")] void SetHeight (nfloat height); [Watch (2,1)] [Export ("setSemanticContentAttribute:")] void SetSemanticContentAttribute (WKInterfaceSemanticContentAttribute semanticContentAttribute); [Export ("setHorizontalAlignment:")] void SetHorizontalAlignment (WKInterfaceObjectHorizontalAlignment horizontalAlignment); [Export ("setVerticalAlignment:")] void SetVerticalAlignment (WKInterfaceObjectVerticalAlignment verticalAlignment); [Export ("setRelativeWidth:withAdjustment:")] void SetRelativeWidth (nfloat width, nfloat adjustment); [Export ("setRelativeHeight:withAdjustment:")] void SetRelativeHeight (nfloat height, nfloat adjustment); [Export ("sizeToFitWidth")] void SizeToFitWidth (); [Export ("sizeToFitHeight")] void SizeToFitHeight (); } [Unavailable (PlatformName.iOS)] [Category] [BaseType (typeof (WKInterfaceObject))] interface WKAccessibility { [Export ("setAccessibilityLabel:")] void SetAccessibilityLabel ([NullAllowed] string accessibilityLabel); [Export ("setAccessibilityHint:")] void SetAccessibilityHint ([NullAllowed] string accessibilityHint); [Export ("setAccessibilityValue:")] void SetAccessibilityValue ([NullAllowed] string accessibilityValue); [Export ("setAccessibilityImageRegions:")] void SetAccessibilityImageRegions (WKAccessibilityImageRegion[] accessibilityImageRegions); [Export ("setAccessibilityTraits:")] void SetAccessibilityTraits (UIAccessibilityTrait accessibilityTraits); [Export ("setIsAccessibilityElement:")] void SetIsAccessibilityElement (bool isAccessibilityElement); [Export ("setAccessibilityIdentifier:")] void SetAccessibilityIdentifier ([NullAllowed] string accessibilityIdentifier); [Watch (2,0)] [Notification] [Field ("WKAccessibilityVoiceOverStatusChanged")] NSString VoiceOverStatusChanged { get; } [Watch (4,0)] [Notification] [Field ("WKAccessibilityReduceMotionStatusDidChangeNotification")] NSString ReduceMotionStatusDidChangeNotification { get; } } [Unavailable (PlatformName.iOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // does not make sense to create, it should only be used thru the singleton interface WKInterfaceDevice { [Export ("screenBounds")] CGRect ScreenBounds { get; } [Export ("screenScale")] nfloat ScreenScale { get; } [NoWatch] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("cachedImages")] NSDictionary WeakCachedImages { get; } [Internal] [Export ("preferredContentSizeCategory")] NSString _PreferredContentSizeCategory { get; } [Static, Export ("currentDevice")] WKInterfaceDevice CurrentDevice { get; } [NoWatch] [Export ("addCachedImage:name:")] bool AddCachedImage (UIImage image, string name); [NoWatch] [Export ("addCachedImageWithData:name:")] bool AddCachedImage (NSData imageData, string name); [NoWatch] [Export ("removeCachedImageWithName:")] void RemoveCachedImage (string name); [NoWatch] [Export ("removeAllCachedImages")] void RemoveAllCachedImages (); [Watch (2,0)] [Export ("systemVersion")] string SystemVersion { get; } [Watch (2,0)] [Export ("name")] string Name { get; } [Watch (2,0)] [Export ("model")] string Model { get; } [Watch (2,0)] [Export ("localizedModel")] string LocalizedModel { get; } [Watch (2,0)] [Export ("systemName")] string SystemName { get; } [Watch (3,0)] [Export ("waterResistanceRating")] WKWaterResistanceRating WaterResistanceRating { get; } [Watch (2,0)] [Export ("playHaptic:")] void PlayHaptic (WKHapticType type); [Watch (2,1)] [Export ("layoutDirection")] WKInterfaceLayoutDirection LayoutDirection { get; } [Watch (2,1)] [Static] [Export ("interfaceLayoutDirectionForSemanticContentAttribute:")] WKInterfaceLayoutDirection GetInterfaceLayoutDirection (WKInterfaceSemanticContentAttribute semanticContentAttribute); [Watch (3,0)] [Export ("wristLocation")] WKInterfaceDeviceWristLocation WristLocation { get; } [Watch (3,0)] [Export ("crownOrientation")] WKInterfaceDeviceCrownOrientation CrownOrientation { get; } [Watch (4,0)] [Export ("batteryMonitoringEnabled")] bool BatteryMonitoringEnabled { [Bind ("isBatteryMonitoringEnabled")] get; set; } [Watch (4,0)] [Export ("batteryLevel")] float BatteryLevel { get; } [Watch (4,0)] [Export ("batteryState")] WKInterfaceDeviceBatteryState BatteryState { get; } [Watch (6,0)] [Export ("supportsAudioStreaming")] bool SupportsAudioStreaming { get; } [Watch (6,2)] [NullAllowed, Export ("identifierForVendor", ArgumentSemantic.Strong)] NSUuid IdentifierForVendor { get; } [Watch (6,1)] [Export ("enableWaterLock")] void EnableWaterLock (); [Watch (6,1)] [Export ("isWaterLockEnabled")] bool IsWaterLockEnabled { get; } } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceButton { [Export ("setTitle:")] void SetTitle ([NullAllowed] string title); [Export ("setAttributedTitle:")] void SetTitle ([NullAllowed] NSAttributedString attributedTitle); [Export ("setBackgroundColor:")] void SetBackgroundColor ([NullAllowed] UIColor color); [Export ("setBackgroundImage:")] void SetBackgroundImage ([NullAllowed] UIImage image); [Export ("setBackgroundImageData:")] void SetBackgroundImage ([NullAllowed] NSData imageData); [Export ("setBackgroundImageNamed:")] void SetBackgroundImage ([NullAllowed] string imageName); [Export ("setEnabled:")] void SetEnabled (bool enabled); } [Unavailable (PlatformName.iOS)] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceGroup : WKImageAnimatable { [Export ("setBackgroundColor:")] void SetBackgroundColor ([NullAllowed] UIColor color); [Export ("setBackgroundImage:")] void SetBackgroundImage ([NullAllowed] UIImage image); [Export ("setBackgroundImageData:")] void SetBackgroundImage ([NullAllowed] NSData imageData); [Export ("setBackgroundImageNamed:")] void SetBackgroundImage ([NullAllowed] string imageName); [Export ("setCornerRadius:")] void SetCornerRadius (nfloat cornerRadius); [Export ("setContentInset:")] void SetContentInset (UIEdgeInsets contentInset); } [Unavailable (PlatformName.iOS)] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceImage : WKImageAnimatable { [Export ("setImage:")] void SetImage ([NullAllowed] UIImage image); [Export ("setImageData:")] void SetImage ([NullAllowed] NSData imageData); [Export ("setImageNamed:")] void SetImage ([NullAllowed] string imageName); [Export ("setTintColor:")] void SetTintColor ([NullAllowed] UIColor color); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceLabel { [Export ("setText:")] void SetText ([NullAllowed] string text); [Export ("setTextColor:")] void SetTextColor ([NullAllowed] UIColor color); [Export ("setAttributedText:")] void SetText ([NullAllowed] NSAttributedString attributedText); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceDate { [Export ("setTextColor:")] void SetTextColor ([NullAllowed] UIColor color); [Export ("setTimeZone:")] void SetTimeZone ([NullAllowed] NSTimeZone timeZone); [Export ("setCalendar:")] void SetCalendar ([NullAllowed] NSCalendar calendar); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceTimer { [Export ("setTextColor:")] void SetTextColor ([NullAllowed] UIColor color); [Export ("setDate:")] void SetDate (NSDate date); [Export ("start")] void Start (); [Export ("stop")] void Stop (); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceTable { [Export ("numberOfRows")] nint NumberOfRows { get; } [Export ("setRowTypes:")] void SetRowTypes (string [] rowTypes); [Export ("setNumberOfRows:withRowType:")] void SetNumberOfRows (nint numberOfRows, string rowType); [return: NullAllowed] [Export ("rowControllerAtIndex:")] NSObject GetRowController (nint index); [Export ("insertRowsAtIndexes:withRowType:")] void InsertRows (NSIndexSet rowIndexes, string rowType); [Export ("removeRowsAtIndexes:")] void RemoveRows (NSIndexSet rowIndexes); [Export ("scrollToRowAtIndex:")] void ScrollToRow (nint index); [Watch (3,0)] [Export ("performSegueForRow:")] void PerformSegue (nint row); [Watch (5,1)] [Export ("curvesAtTop")] bool CurvesAtTop { get; set; } [Watch (5,1)] [Export ("curvesAtBottom")] bool CurvesAtBottom { get; set; } } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceMap { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'MKMapView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("addAnnotation:withImage:centerOffset:")] void AddAnnotation (CLLocationCoordinate2D location, [NullAllowed] UIImage image, CGPoint offset); [Export ("addAnnotation:withImageNamed:centerOffset:")] void AddAnnotation (CLLocationCoordinate2D location, [NullAllowed] string name, CGPoint offset); [Export ("addAnnotation:withPinColor:")] void AddAnnotation (CLLocationCoordinate2D location, WKInterfaceMapPinColor pinColor); [Export ("setRegion:")] void SetRegion (MKCoordinateRegion coordinateRegion); [Export ("setVisibleMapRect:")] void SetVisible (MKMapRect mapRect); [Export ("removeAllAnnotations")] void RemoveAllAnnotations (); [Watch (6,1)] [Export ("setShowsUserHeading:")] void SetShowsUserHeading (bool showsUserHeading); [Watch (6,1)] [Export ("setShowsUserLocation:")] void SetShowsUserLocation (bool showsUserLocation); [Watch (6,1)] [Export ("setUserTrackingMode:animated:")] void SetUserTrackingMode (WKInterfaceMapUserTrackingMode mode, bool animated); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceSeparator { [Export ("setColor:")] void SetColor ([NullAllowed] UIColor color); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceSlider { [Export ("setEnabled:")] void SetEnabled (bool enabled); [Export ("setValue:")] void SetValue (float value); [Export ("setColor:")] void SetColor ([NullAllowed] UIColor color); [Export ("setNumberOfSteps:")] void SetNumberOfSteps (nint numberOfSteps); } [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceSwitch { [Export ("setColor:")] void SetColor ([NullAllowed] UIColor color); [Export ("setEnabled:")] void SetEnabled (bool enabled); [Export ("setOn:")] void SetOn (bool on); [Export ("setTitle:")] void SetTitle ([NullAllowed] string title); [Export ("setAttributedTitle:")] void SetTitle ([NullAllowed] NSAttributedString attributedTitle); } [Unavailable (PlatformName.iOS)] [BaseType (typeof (NSObject))] interface WKAccessibilityImageRegion { [Export ("frame")] CGRect Frame { get; set; } [Export ("label")] string Label { get; set; } } interface IWKImageAnimatable {} [Unavailable (PlatformName.iOS)] [Protocol] interface WKImageAnimatable { [Abstract] [Export ("startAnimating")] void StartAnimating (); [Abstract] [Export ("startAnimatingWithImagesInRange:duration:repeatCount:")] void StartAnimating (NSRange imageRange, double duration, nint repeatCount); [Abstract] [Export ("stopAnimating")] void StopAnimating (); } [NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKImage : NSCopying, NSSecureCoding { [Static] [Export ("imageWithImage:")] WKImage CreateFromImage (UIImage image); [Static] [Export ("imageWithImageData:")] WKImage CreateFromData (NSData imageData); [Static] [Export ("imageWithImageName:")] WKImage CreateFromName (string imageName); [NullAllowed, Export ("image")] UIImage Image { get; } [NullAllowed, Export ("imageData")] NSData ImageData { get; } [NullAllowed, Export ("imageName")] string ImageName { get; } } [NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAlertAction { [Static] [Export ("actionWithTitle:style:handler:")] WKAlertAction Create (string title, WKAlertActionStyle style, Action handler); } [NoiOS] [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAudioFileAsset { [Static] [Export ("assetWithURL:")] WKAudioFileAsset Create (NSUrl url); [Static] [Export ("assetWithURL:title:albumTitle:artist:")] WKAudioFileAsset Create (NSUrl url, [NullAllowed] string title, [NullAllowed] string albumTitle, [NullAllowed] string artist); [Export ("URL")] NSUrl Url { get; } [Export ("duration")] double Duration { get; } [NullAllowed, Export ("title")] string Title { get; } [NullAllowed, Export ("albumTitle")] string AlbumTitle { get; } [NullAllowed, Export ("artist")] string Artist { get; } } [NoiOS] [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof(NSObject))] [DisableDefaultCtor] interface WKAudioFilePlayer { [Static] [Export ("playerWithPlayerItem:")] WKAudioFilePlayer Create (WKAudioFilePlayerItem item); [Export ("play")] void Play (); [Export ("pause")] void Pause (); [Export ("replaceCurrentItemWithPlayerItem:")] void ReplaceCurrentItem ([NullAllowed] WKAudioFilePlayerItem item); [NullAllowed, Export ("currentItem")] WKAudioFilePlayerItem CurrentItem { get; } [Export ("status")] WKAudioFilePlayerStatus Status { get; } [NullAllowed, Export ("error")] NSError Error { get; } [Export ("rate")] float Rate { get; set; } [Export ("currentTime")] double CurrentTime { get; } } [NoiOS] [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAudioFilePlayerItem { [Static] [Export ("playerItemWithAsset:")] WKAudioFilePlayerItem Create (WKAudioFileAsset asset); [Export ("asset")] WKAudioFileAsset Asset { get; } [Export ("status")] WKAudioFilePlayerItemStatus Status { get; } [NullAllowed, Export ("error")] NSError Error { get; } [Export ("currentTime")] double CurrentTime { get; #if XAMCORE_4_0 [Watch (3,2)] set; } #else } [Watch (3,2)] [Export ("setCurrentTime:")] void SetCurrentTime (double time); #endif [Watch (2,0)] [Notification] [Field ("WKAudioFilePlayerItemTimeJumpedNotification")] NSString TimeJumpedNotification { get; } [Watch (2,0)] [Notification] [Field ("WKAudioFilePlayerItemDidPlayToEndTimeNotification")] NSString DidPlayToEndTimeNotification { get; } [Watch (2,0)] [Notification] [Field ("WKAudioFilePlayerItemFailedToPlayToEndTimeNotification")] NSString FailedToPlayToEndTimeNotification { get; } } [NoiOS] [BaseType (typeof (NSObject))] interface WKExtension { [Static] [Export ("sharedExtension")] WKExtension SharedExtension { get; } [Export ("openSystemURL:")] void OpenSystemUrl (NSUrl url); [Wrap ("WeakDelegate")] [NullAllowed] [Protocolize] WKExtensionDelegate Delegate { get; set; } [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } [NullAllowed, Export ("rootInterfaceController")] WKInterfaceController RootInterfaceController { get; } [Watch (3,0)] [Export ("applicationState")] WKApplicationState ApplicationState { get; } [Watch (4,0)] [NullAllowed, Export ("visibleInterfaceController")] WKInterfaceController VisibleInterfaceController { get; } [Watch (4,0)] [Export ("isApplicationRunningInDock")] bool IsApplicationRunningInDock { get; } [Watch (4,0)] [Export ("autorotating")] bool Autorotating { [Bind ("isAutorotating")] get; set; } [Watch (4,2)] [Export ("autorotated")] bool Autorotated { [Bind ("isAutorotated")] get; } [Watch (4,0)] [Deprecated (PlatformName.WatchOS, 7,0)] [Export ("frontmostTimeoutExtended")] bool FrontmostTimeoutExtended { [Bind ("isFrontmostTimeoutExtended")] get; set; } [Watch (4,0)] [Export ("enableWaterLock")] [Deprecated (PlatformName.WatchOS, 6,1, message: "Use 'WKInterfaceDevice.EnableWaterLock' instead.")] void EnableWaterLock (); [Watch (6,0)] [Export ("registerForRemoteNotifications")] void RegisterForRemoteNotifications (); [Watch (6,0)] [Export ("unregisterForRemoteNotifications")] void UnregisterForRemoteNotifications (); [Watch (6,0)] [Export ("registeredForRemoteNotifications")] bool RegisteredForRemoteNotifications { [Bind ("isRegisteredForRemoteNotifications")] get; } [Watch (7,0)] [Export ("globalTintColor")] UIColor GlobalTintColor { get; } [Watch (7, 0)] [Notification, Field ("WKApplicationDidFinishLaunchingNotification")] NSString DidFinishLaunchingNotification { get; } [Watch (7, 0)] [Notification, Field ("WKApplicationDidBecomeActiveNotification")] NSString DidBecomeActiveNotification { get; } [Watch (7, 0)] [Notification, Field ("WKApplicationWillResignActiveNotification")] NSString WillResignActiveNotification { get; } [Watch (7, 0)] [Notification, Field ("WKApplicationWillEnterForegroundNotification")] NSString WillEnterForegroundNotification { get; } [Watch (7, 0)] [Notification, Field ("WKApplicationDidEnterBackgroundNotification")] NSString DidEnterBackgroundNotification { get; } } [NoiOS] [Protocol] [Model] [BaseType (typeof (NSObject))] interface WKExtensionDelegate { [Export ("applicationDidFinishLaunching")] void ApplicationDidFinishLaunching (); [Export ("applicationDidBecomeActive")] void ApplicationDidBecomeActive (); [Export ("applicationWillResignActive")] void ApplicationWillResignActive (); [Watch (3,0)] [Export ("applicationWillEnterForeground")] void ApplicationWillEnterForeground (); [Watch (3,0)] [Export ("applicationDidEnterBackground")] void ApplicationDidEnterBackground (); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:")] void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:")] void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:withResponseInfo:")] void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification, NSDictionary responseInfo); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:withResponseInfo:")] void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification, NSDictionary responseInfo); [Export ("handleUserActivity:")] void HandleUserActivity ([NullAllowed] NSDictionary userInfo); [Watch (3,2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available [Export ("handleActivity:")] void HandleUserActivity (NSUserActivity userActivity); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("didReceiveRemoteNotification:")] void DidReceiveRemoteNotification (NSDictionary userInfo); [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("didReceiveLocalNotification:")] void DidReceiveLocalNotification (UILocalNotification notification); [Watch (3,0)] [Export ("handleBackgroundTasks:")] void HandleBackgroundTasks (NSSet<WKRefreshBackgroundTask> backgroundTasks); [Watch (3,0)] [Export ("handleWorkoutConfiguration:")] void HandleWorkoutConfiguration (HKWorkoutConfiguration workoutConfiguration); [Watch (4,0)] [Export ("deviceOrientationDidChange")] void DeviceOrientationDidChange (); [Watch (5,0)] [Export ("handleActiveWorkoutRecovery")] void HandleActiveWorkoutRecovery (); [Watch (5,0)] [Export ("handleRemoteNowPlayingActivity")] void HandleRemoteNowPlayingActivity (); [Watch (5,0)] [Export ("handleIntent:completionHandler:")] void HandleIntent (INIntent intent, Action<INIntentResponse> completionHandler); [Watch (6,0)] [Export ("handleExtendedRuntimeSession:")] void HandleExtendedRuntimeSession (WKExtendedRuntimeSession extendedRuntimeSession); [Watch (6,0)] [Export ("didRegisterForRemoteNotificationsWithDeviceToken:")] void DidRegisterForRemoteNotifications (NSData deviceToken); [Watch (6,0)] [Export ("didFailToRegisterForRemoteNotificationsWithError:")] void DidFailToRegisterForRemoteNotifications (NSError error); [Watch (6,0)] [Export ("didReceiveRemoteNotification:fetchCompletionHandler:")] void DidReceiveRemoteNotification (NSDictionary userInfo, Action<WKBackgroundFetchResult> completionHandler); [Watch (7,0)] [Export ("userDidAcceptCloudKitShareWithMetadata:")] void UserDidAcceptCloudKitShare (CKShareMetadata cloudKitShareMetadata); } [Watch (2,2), NoiOS] [BaseType (typeof(WKInterfaceObject))] [DisableDefaultCtor] // The super class' init method is unavailable. interface WKInterfaceActivityRing { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("setActivitySummary:animated:")] void SetActivitySummary ([NullAllowed] HKActivitySummary activitySummary, bool animated); } [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // The super class' init method is unavailable. interface WKInterfaceMovie { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'AVVideoPlayer' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("setMovieURL:")] void SetMovieUrl (NSUrl url); [Export ("setVideoGravity:")] void SetVideoGravity (WKVideoGravity videoGravity); [Export ("setLoops:")] void SetLoops (bool loops); [Export ("setPosterImage:")] void SetPosterImage ([NullAllowed] WKImage posterImage); } [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // The super class' init method is unavailable. interface WKInterfacePicker { [Export ("focus")] void Focus (); [Export ("resignFocus")] void ResignFocus (); [Export ("setSelectedItemIndex:")] void SetSelectedItem (nint itemIndex); [Export ("setItems:")] void SetItems ([NullAllowed] WKPickerItem[] items); [Export ("setCoordinatedAnimations:")] void SetCoordinatedAnimations ([NullAllowed] IWKImageAnimatable [] coordinatedAnimations); [Export ("setEnabled:")] void SetEnabled (bool enabled); } [NoiOS] [BaseType (typeof (NSObject))] interface WKPickerItem : NSSecureCoding { [NullAllowed, Export ("title")] string Title { get; set; } [NullAllowed, Export ("caption")] string Caption { get; set; } [NullAllowed, Export ("accessoryImage", ArgumentSemantic.Copy)] WKImage AccessoryImage { get; set; } [NullAllowed, Export ("contentImage", ArgumentSemantic.Copy)] WKImage ContentImage { get; set; } } [NoiOS] [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (WKAudioFilePlayer))] [DisableDefaultCtor] interface WKAudioFileQueuePlayer { [Static] [Export ("queuePlayerWithItems:")] WKAudioFileQueuePlayer FromItems (WKAudioFilePlayerItem[] items); [Export ("advanceToNextItem")] void AdvanceToNextItem (); [Export ("appendItem:")] void AppendItem (WKAudioFilePlayerItem item); [Export ("removeItem:")] void RemoveItem (WKAudioFilePlayerItem item); [Export ("removeAllItems")] void RemoveAllItems (); [Export ("items")] WKAudioFilePlayerItem[] Items { get; } } // to be made [Internal] once #34656 is fixed [Static] [Watch (2,0)][NoiOS] interface WKMediaPlayerControllerOptionsKeys { [Field ("WKMediaPlayerControllerOptionsAutoplayKey")] NSString AutoplayKey { get; } [Field ("WKMediaPlayerControllerOptionsStartTimeKey")] NSString StartTimeKey { get; } [Field ("WKMediaPlayerControllerOptionsVideoGravityKey")] NSString VideoGravityKey { get; } [Field ("WKMediaPlayerControllerOptionsLoopsKey")] NSString LoopsKey { get; } } // to be made [Internal] once #34656 is fixed [Static] [Watch (2,0)][NoiOS] interface WKAudioRecorderControllerOptionsKey { [Field ("WKAudioRecorderControllerOptionsActionTitleKey")] NSString ActionTitleKey { get; } [Field ("WKAudioRecorderControllerOptionsAlwaysShowActionTitleKey")] NSString AlwaysShowActionTitleKey { get; } [Field ("WKAudioRecorderControllerOptionsAutorecordKey")] NSString AutorecordKey { get; } [Field ("WKAudioRecorderControllerOptionsMaximumDurationKey")] NSString MaximumDurationKey { get; } } [Watch (3,0)][NoiOS] [BaseType (typeof (NSObject))] interface WKRefreshBackgroundTask { [NullAllowed, Export ("userInfo")] INSSecureCoding UserInfo { get; } [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'SetTaskCompleted (false)' instead.")] [Export ("setTaskCompleted")] void SetTaskCompleted (); [Watch (4,0)] [Export ("setTaskCompletedWithSnapshot:")] void SetTaskCompleted (bool refreshSnapshot); [Watch (8,0)] [NullAllowed, Export ("expirationHandler", ArgumentSemantic.Strong)] Action ExpirationHandler { get; set; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKApplicationRefreshBackgroundTask { } [Watch (3,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKSnapshotRefreshBackgroundTask { [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReasonForSnapshot' instead.")] [Export ("returnToDefaultState")] bool ReturnToDefaultState { get; } [Watch (4,0)] [Export ("reasonForSnapshot")] WKSnapshotReason ReasonForSnapshot { get; } [Export ("setTaskCompletedWithDefaultStateRestored:estimatedSnapshotExpiration:userInfo:")] void SetTaskCompleted (bool restoredDefaultState, [NullAllowed] NSDate estimatedSnapshotExpiration, [NullAllowed] INSSecureCoding userInfo); } [Watch (3,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask), Name = "WKURLSessionRefreshBackgroundTask")] interface WKUrlSessionRefreshBackgroundTask { [Export ("sessionIdentifier")] string SessionIdentifier { get; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKWatchConnectivityRefreshBackgroundTask { } [Watch (5,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKRelevantShortcutRefreshBackgroundTask { } [Watch (5,0)][NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKIntentDidRunRefreshBackgroundTask { } [Watch (3,0)][NoiOS] [Category] [BaseType (typeof (WKExtension))] interface WKExtension_WKBackgroundTasks { [Export ("scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion:")] void ScheduleBackgroundRefresh (NSDate preferredFireDate, [NullAllowed] INSSecureCoding userInfo, Action<NSError> scheduledCompletion); [Export ("scheduleSnapshotRefreshWithPreferredDate:userInfo:scheduledCompletion:")] void ScheduleSnapshotRefresh (NSDate preferredFireDate, [NullAllowed] INSSecureCoding userInfo, Action<NSError> scheduledCompletion); } [Watch (3,0)][NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKCrownSequencer { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IWKCrownDelegate Delegate { get; set; } [Export ("rotationsPerSecond")] double RotationsPerSecond { get; } [Export ("idle")] bool Idle { [Bind ("isIdle")] get; } [Export ("focus")] void Focus (); [Export ("resignFocus")] void ResignFocus (); [Watch (5,0)] [Export ("hapticFeedbackEnabled")] bool HapticFeedbackEnabled { [Bind ("isHapticFeedbackEnabled")] get; set; } } interface IWKCrownDelegate {} [Watch (3,0)][NoiOS] [Protocol][Model] [BaseType (typeof (NSObject))] interface WKCrownDelegate { [Export ("crownDidRotate:rotationalDelta:")] void CrownDidRotate ([NullAllowed] WKCrownSequencer crownSequencer, double rotationalDelta); [Export ("crownDidBecomeIdle:")] void CrownDidBecomeIdle ([NullAllowed] WKCrownSequencer crownSequencer); } [Watch (3,0)][NoiOS] [Abstract] [BaseType (typeof (NSObject))] interface WKGestureRecognizer { [Export ("state")] WKGestureRecognizerState State { get; } [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("locationInObject")] CGPoint LocationInObject { get; } [Export ("objectBounds")] CGRect ObjectBounds { get; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKTapGestureRecognizer { [Export ("numberOfTapsRequired")] nuint NumberOfTapsRequired { get; set; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKLongPressGestureRecognizer { [Export ("minimumPressDuration")] double MinimumPressDuration { get; set; } [Export ("numberOfTapsRequired")] nuint NumberOfTapsRequired { get; set; } [Export ("allowableMovement")] nfloat AllowableMovement { get; set; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKSwipeGestureRecognizer { [Export ("direction", ArgumentSemantic.Assign)] WKSwipeGestureRecognizerDirection Direction { get; set; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKPanGestureRecognizer { [Export ("translationInObject")] CGPoint TranslationInObject { get; } [Export ("velocityInObject")] CGPoint VelocityInObject { get; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceHMCamera { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'HMCameraView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("setCameraSource:")] void SetCameraSource ([NullAllowed] HMCameraSource cameraSource); } [Watch (3,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceInlineMovie { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("setMovieURL:")] void SetMovieUrl (NSUrl url); [Export ("setVideoGravity:")] void SetVideoGravity (WKVideoGravity videoGravity); [Export ("setLoops:")] void SetLoops (bool loops); [Export ("setAutoplays:")] void SetAutoplays (bool autoplays); [Export ("setPosterImage:")] void SetPosterImage ([NullAllowed] WKImage posterImage); [Export ("play")] void Play (); [Export ("playFromBeginning")] void PlayFromBeginning (); [Export ("pause")] void Pause (); } [Watch (3,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfacePaymentButton { [Watch (6,0)] [Export ("initWithTarget:action:")] IntPtr Constructor ([NullAllowed] NSObject target, Selector action); } [Watch (3,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceSCNScene : SCNSceneRenderer { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'SCNSceneView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("snapshot")] UIImage GetSnapshot (); [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } [Export ("antialiasingMode", ArgumentSemantic.Assign)] SCNAntialiasingMode AntialiasingMode { get; set; } } [Watch (3,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceSKScene { [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'SKSpriteView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] IntPtr Constructor (); [Export ("paused")] bool Paused { [Bind ("isPaused")] get; set; } [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } [Export ("presentScene:")] void PresentScene ([NullAllowed] SKScene scene); [Export ("presentScene:transition:")] void PresentScene (SKScene scene, SKTransition transition); [NullAllowed, Export ("scene")] SKScene Scene { get; } [Export ("textureFromNode:")] [return: NullAllowed] SKTexture CreateTexture (SKNode node); [Export ("textureFromNode:crop:")] [return: NullAllowed] SKTexture CreateTexture (SKNode node, CGRect crop); } [Watch (5,0)][NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] interface WKInterfaceVolumeControl { [Watch (6,0)] [Export ("initWithOrigin:")] IntPtr Constructor (WKInterfaceVolumeControlOrigin origin); [Export ("setTintColor:")] void SetTintColor ([NullAllowed] UIColor tintColor); [Watch (6,0)] [Export ("focus")] void Focus (); [Watch (6,0)] [Export ("resignFocus")] void ResignFocus (); } [Watch (6,0), NoiOS] [Native] enum WKBackgroundFetchResult : ulong { NewData, NoData, Failed, } [Watch (6,0), NoiOS] [Native] [ErrorDomain ("WKExtendedRuntimeSessionErrorDomain")] enum WKExtendedRuntimeSessionErrorCode : long { Unknown = 1, ScheduledTooFarInAdvance = 2, MustBeActiveToStartOrSchedule = 3, NotYetStarted = 4, ExceededResourceLimits = 5, BARDisabled = 6, NotApprovedToStartSession = 7, NotApprovedToSchedule = 8, } [Watch (6,0), NoiOS] [Native] enum WKExtendedRuntimeSessionInvalidationReason : long { None, SessionInProgress, Expired, ResignedFrontmost, SuppressedBySystem, Error = -1, } [Watch (6,0), NoiOS] [Native] enum WKExtendedRuntimeSessionState : long { NotStarted, Scheduled, Running, Invalid, } [Watch (6,0), NoiOS] [Native] enum WKInterfaceVolumeControlOrigin : long { Local, Companion, } [Watch (6,1), NoiOS] [Native] enum WKInterfaceAuthorizationAppleIdButtonStyle: long { Default, White, } [Watch (6,1), NoiOS] [Native] enum WKInterfaceMapUserTrackingMode: long { None, Follow, } interface IWKExtendedRuntimeSessionDelegate {} [Watch (6,0), NoiOS] [Protocol, Model (AutoGeneratedName = true)] [BaseType (typeof (NSObject))] interface WKExtendedRuntimeSessionDelegate { [Abstract] [Export ("extendedRuntimeSession:didInvalidateWithReason:error:")] void DidInvalidate (WKExtendedRuntimeSession extendedRuntimeSession, WKExtendedRuntimeSessionInvalidationReason reason, [NullAllowed] NSError error); [Abstract] [Export ("extendedRuntimeSessionDidStart:")] void DidStart (WKExtendedRuntimeSession extendedRuntimeSession); [Abstract] [Export ("extendedRuntimeSessionWillExpire:")] void WillExpire (WKExtendedRuntimeSession extendedRuntimeSession); } [Watch (6,0), NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Create method exists and `NSInvalidArgumentException Reason: *** -[__NSSetM addObject:]: object cannot be nil` interface WKExtendedRuntimeSession { [Static] [Export ("session")] WKExtendedRuntimeSession Create (); [Wrap ("WeakDelegate")] [NullAllowed] IWKExtendedRuntimeSessionDelegate Delegate { get; set; } [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } [Export ("state")] WKExtendedRuntimeSessionState State { get; } [NullAllowed, Export ("expirationDate")] NSDate ExpirationDate { get; } [Export ("start")] void Start (); [Export ("startAtDate:")] void Start (NSDate date); [Export ("invalidate")] void Invalidate (); [Export ("notifyUserWithHaptic:repeatHandler:")] void NotifyUser (WKHapticType type, [NullAllowed] WKNofityUserIntervalHandler repeatHandler); } delegate double WKNofityUserIntervalHandler (WKHapticType type); [Watch (6,0), NoiOS] [BaseType (typeof (WKInterfaceObject), Name = "WKInterfaceAuthorizationAppleIDButton")] [DisableDefaultCtor] // Handle is `nil` interface WKInterfaceAuthorizationAppleIdButton { [Export ("initWithTarget:action:")] [Deprecated (PlatformName.WatchOS, 6,1, message: "Use 'new WKInterfaceAuthorizationAppleIdButton (WKInterfaceVolumeControlOrigin,NSObject,Selector)' instead.")] IntPtr Constructor ([NullAllowed] NSObject target, Selector action); [Watch (6,1)] [Export ("initWithStyle:target:action:")] IntPtr Constructor (WKInterfaceAuthorizationAppleIdButtonStyle style, [NullAllowed] NSObject target, Selector action); } [Watch (6,0), NoiOS] enum WKTextContentType { [DefaultEnumValue] [Field (null)] // API using fields accept `nil` None, [Field ("WKTextContentTypeName")] Name, [Field ("WKTextContentTypeNamePrefix")] NamePrefix, [Field ("WKTextContentTypeGivenName")] GivenName, [Field ("WKTextContentTypeMiddleName")] MiddleName, [Field ("WKTextContentTypeFamilyName")] FamilyName, [Field ("WKTextContentTypeNameSuffix")] NameSuffix, [Field ("WKTextContentTypeNickname")] Nickname, [Field ("WKTextContentTypeJobTitle")] JobTitle, [Field ("WKTextContentTypeOrganizationName")] OrganizationName, [Field ("WKTextContentTypeLocation")] Location, [Field ("WKTextContentTypeFullStreetAddress")] FullStreetAddress, [Field ("WKTextContentTypeStreetAddressLine1")] StreetAddressLine1, [Field ("WKTextContentTypeStreetAddressLine2")] StreetAddressLine2, [Field ("WKTextContentTypeAddressCity")] AddressCity, [Field ("WKTextContentTypeAddressState")] AddressState, [Field ("WKTextContentTypeAddressCityAndState")] AddressCityAndState, [Field ("WKTextContentTypeSublocality")] Sublocality, [Field ("WKTextContentTypeCountryName")] CountryName, [Field ("WKTextContentTypePostalCode")] PostalCode, [Field ("WKTextContentTypeTelephoneNumber")] TelephoneNumber, [Field ("WKTextContentTypeEmailAddress")] EmailAddress, [Field ("WKTextContentTypeURL")] Url, [Field ("WKTextContentTypeCreditCardNumber")] CreditCardNumber, [Field ("WKTextContentTypeUsername")] Username, [Field ("WKTextContentTypePassword")] Password, [Field ("WKTextContentTypeNewPassword")] NewPassword, [Field ("WKTextContentTypeOneTimeCode")] OneTimeCode, } [Watch (6,0), NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Handle is `nil` interface WKInterfaceTextField { [Export ("setText:")] void SetText ([NullAllowed] string text); [Export ("setAttributedText:")] void SetText ([NullAllowed] NSAttributedString attributedText); [Export ("setPlaceholder:")] void SetPlaceholder ([NullAllowed] string placeholder); [Export ("setAttributedPlaceholder:")] void SetPlaceholder ([NullAllowed] NSAttributedString attributedPlaceholder); [Export ("setTextColor:")] void SetTextColor ([NullAllowed] UIColor color); [Export ("setEnabled:")] void SetEnabled (bool enabled); [Export ("setTextContentType:")] void SetTextContentType ([BindAs (typeof (WKTextContentType?))] [NullAllowed] NSString textContentType); [Export ("setSecureTextEntry:")] void SetSecureTextEntry (bool secureTextEntry); } }
30.50028
162
0.741193
[ "BSD-3-Clause" ]
Therzok/xamarin-macios
src/watchkit.cs
54,504
C#
/* *Author:jxx *Contact:283591387@qq.com *Date:2018-07-01 * 此代码由框架生成,请勿随意更改 */ using VOL.AppManager.IRepositories; using VOL.Core.BaseProvider; using VOL.Core.EFDbContext; using VOL.Core.Extensions.AutofacManager; using VOL.Entity.DomainModels; namespace VOL.AppManager.Repositories { public partial class App_QuestionReplyRepository : RepositoryBase<App_QuestionReply>, IApp_QuestionReplyRepository { public App_QuestionReplyRepository(VOLContext dbContext) : base(dbContext) { } public static IApp_QuestionReplyRepository Instance { get { return AutofacContainerModule.GetService<IApp_QuestionReplyRepository>(); } } } }
24.551724
118
0.724719
[ "MIT" ]
1426463237/Vue.NetCore
Vue.Net/VOL.AppManager/Repositories/Question/App_QuestionReplyRepository.cs
750
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / using NSubstitute; using NSubstitute.ExceptionExtensions; using NUnit.Framework; using System; using System.Collections.Generic; using Twilio.Clients; using Twilio.Converters; using Twilio.Exceptions; using Twilio.Http; using Twilio.Rest.Verify.V2.Service.RateLimit; namespace Twilio.Tests.Rest.Verify.V2.Service.RateLimit { [TestFixture] public class BucketTest : TwilioTest { [Test] public void TestCreateRequest() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); var request = new Request( HttpMethod.Post, Twilio.Rest.Domain.Verify, "/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/RateLimits/RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Buckets", "" ); request.AddPostParam("Max", Serialize(1)); request.AddPostParam("Interval", Serialize(1)); twilioRestClient.Request(request).Throws(new ApiException("Server Error, no content")); try { BucketResource.Create("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 1, 1, client: twilioRestClient); Assert.Fail("Expected TwilioException to be thrown for 500"); } catch (ApiException) {} twilioRestClient.Received().Request(request); } [Test] public void TestCreateBucketResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.Created, "{\"sid\": \"BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"rate_limit_sid\": \"RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"service_sid\": \"VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"max\": 5,\"interval\": 60,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets/BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}" )); var response = BucketResource.Create("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 1, 1, client: twilioRestClient); Assert.NotNull(response); } [Test] public void TestUpdateRequest() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); var request = new Request( HttpMethod.Post, Twilio.Rest.Domain.Verify, "/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/RateLimits/RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Buckets/BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "" ); twilioRestClient.Request(request).Throws(new ApiException("Server Error, no content")); try { BucketResource.Update("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.Fail("Expected TwilioException to be thrown for 500"); } catch (ApiException) {} twilioRestClient.Received().Request(request); } [Test] public void TestUpdateBucketResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.OK, "{\"sid\": \"BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"rate_limit_sid\": \"RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"service_sid\": \"VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"max\": 5,\"interval\": 60,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets/BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}" )); var response = BucketResource.Update("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.NotNull(response); } [Test] public void TestFetchRequest() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); var request = new Request( HttpMethod.Get, Twilio.Rest.Domain.Verify, "/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/RateLimits/RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Buckets/BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "" ); twilioRestClient.Request(request).Throws(new ApiException("Server Error, no content")); try { BucketResource.Fetch("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.Fail("Expected TwilioException to be thrown for 500"); } catch (ApiException) {} twilioRestClient.Received().Request(request); } [Test] public void TestFetchBucketResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.OK, "{\"sid\": \"BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"rate_limit_sid\": \"RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"service_sid\": \"VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"max\": 5,\"interval\": 60,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets/BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}" )); var response = BucketResource.Fetch("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.NotNull(response); } [Test] public void TestReadRequest() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); var request = new Request( HttpMethod.Get, Twilio.Rest.Domain.Verify, "/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/RateLimits/RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Buckets", "" ); twilioRestClient.Request(request).Throws(new ApiException("Server Error, no content")); try { BucketResource.Read("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.Fail("Expected TwilioException to be thrown for 500"); } catch (ApiException) {} twilioRestClient.Received().Request(request); } [Test] public void TestReadEmptyResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.OK, "{\"buckets\": [],\"meta\": {\"page\": 0,\"page_size\": 50,\"first_page_url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets?PageSize=50&Page=0\",\"previous_page_url\": null,\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets?PageSize=50&Page=0\",\"next_page_url\": null,\"key\": \"buckets\"}}" )); var response = BucketResource.Read("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.NotNull(response); } [Test] public void TestReadFullResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.OK, "{\"buckets\": [{\"sid\": \"BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"rate_limit_sid\": \"RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"service_sid\": \"VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"max\": 5,\"interval\": 60,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets/BLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}],\"meta\": {\"page\": 0,\"page_size\": 50,\"first_page_url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets?PageSize=50&Page=0\",\"previous_page_url\": null,\"url\": \"https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits/RKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Buckets?PageSize=50&Page=0\",\"next_page_url\": null,\"key\": \"buckets\"}}" )); var response = BucketResource.Read("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.NotNull(response); } [Test] public void TestDeleteRequest() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); var request = new Request( HttpMethod.Delete, Twilio.Rest.Domain.Verify, "/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/RateLimits/RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Buckets/BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "" ); twilioRestClient.Request(request).Throws(new ApiException("Server Error, no content")); try { BucketResource.Delete("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.Fail("Expected TwilioException to be thrown for 500"); } catch (ApiException) {} twilioRestClient.Received().Request(request); } [Test] public void TestDeleteResponse() { var twilioRestClient = Substitute.For<ITwilioRestClient>(); twilioRestClient.AccountSid.Returns("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); twilioRestClient.Request(Arg.Any<Request>()) .Returns(new Response( System.Net.HttpStatusCode.NoContent, "null" )); var response = BucketResource.Delete("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "BLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", client: twilioRestClient); Assert.NotNull(response); } } }
56.484163
1,013
0.629336
[ "MIT" ]
BrimmingDev/twilio-csharp
test/Twilio.Test/Rest/Verify/V2/Service/RateLimit/BucketResourceTest.cs
12,483
C#
using Newtonsoft.Json; using System; namespace SmICSCoreLib.Factories.PatientStay.Count.ReceiveModel { public class CountDataReceiveModel { [JsonProperty(PropertyName = "PatientID")] public string PatientID { get; set; } [JsonProperty(PropertyName = "Fallkennung")] public string Fallkennung { get; set; } [JsonProperty(PropertyName = "Zeitpunkt_der_Probenentnahme")] public DateTime Zeitpunkt_der_Probenentnahme { get; set; } } }
27.5
69
0.694949
[ "Apache-2.0" ]
highmed/SmICSCore
SmICSCoreLib/Factories/PatientStay/Count/ReceiveModel/CountDataReceiveModel.cs
497
C#
// WTM默认页面 Wtm buidin page using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WalkingTec.Mvvm.Core; namespace WalkingTec.Mvvm.Mvc.Admin.ViewModels.DataPrivilegeVMs { public enum DpTypeEnum { [Display(Name = "GroupDp")] UserGroup, [Display(Name = "UserDp")] User } public class DataPrivilegeSearcher : BaseSearcher { [Display(Name = "_Admin.Account")] public string Name { get; set; } [Display(Name = "_Admin.Privileges")] public string TableName { get; set; } public List<ComboSelectListItem> TableNames { get; set; } [Display(Name = "_Admin.DpType")] public DpTypeEnum DpType { get; set; } public Guid? DomainID { get; set; } public List<ComboSelectListItem> AllDomains { get; set; } protected override void InitVM() { TableNames = new List<ComboSelectListItem>(); } } }
28.2
65
0.628166
[ "MIT" ]
RayWangQvQ/Ray.AutoTask
samples/BiliBiliTool/web/Ray.BiliBiliToolPro.AdminWeb.ViewModel/_Admin/DataPrivilegeVMs/DataPrivilegeSearcher.cs
995
C#
namespace Tizen.UIExtensions.Common { /// <summary> /// Enumerates values that describe behaviors of the header in NavigationDrawer. /// </summary> public enum DrawerHeaderBehavior { Default, Fixed, Scroll, CollapseOnScroll, } }
20.428571
84
0.615385
[ "Apache-2.0" ]
Samsung/Tizen.UIExtensions
src/Tizen.UIExtensions.Common/DrawerHeaderBehavior.cs
288
C#
#pragma checksum "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "19cfc66837a8c03d39c66c54cbfeac401776f733" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_contato), @"mvc.1.0.view", @"/Views/Home/contato.cshtml")] namespace AspNetCore { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; #nullable restore #line 1 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\_ViewImports.cshtml" using Amor_na_Pele_Squad09_Entrega02; #line default #line hidden #nullable disable #nullable restore #line 2 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\_ViewImports.cshtml" using Amor_na_Pele_Squad09_Entrega02.Models; #line default #line hidden #nullable disable [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"19cfc66837a8c03d39c66c54cbfeac401776f733", @"/Views/Home/contato.cshtml")] [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9d8944a58b5655377c6303f2f896d084c7d88b26", @"/Views/_ViewImports.cshtml")] public class Views_Home_contato : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Amor_na_Pele_Squad09_Entrega02.Models.ModelDuploContatoNewsletter> { private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/imagens/logotipo.png"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("alt", new global::Microsoft.AspNetCore.Html.HtmlString("logotipo Amor na pele"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("form-control"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("inputNome"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("Nome"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "email", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("inputEmail"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("email@exemplo.com"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("textAreaMensagem"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_10 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("Mensagem..."), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rows", new global::Microsoft.AspNetCore.Html.HtmlString("3"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_12 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("cardForm"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_13 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "cadastroContatoNewsletter", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_14 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("method", "post", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_15 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("Informe o seu endereço de e-mail"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line hidden #pragma warning disable 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; #pragma warning restore 0649 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); #pragma warning disable 0169 private string __tagHelperStringValueBuffer; #pragma warning restore 0169 private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager { get { if (__backed__tagHelperScopeManager == null) { __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); } return __backed__tagHelperScopeManager; } } private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper; private global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper; #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { WriteLiteral("\r\n"); #nullable restore #line 3 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" ViewData["Title"] = "Contato"; #line default #line hidden #nullable disable WriteLiteral("\r\n<h1 class=\"titleForm\">Contato</h1>\r\n<!-- Formulário contato -->\r\n<section class=\"container bg-tranparent sm-shadow\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4 order-md-1\">\r\n <div id=\"img-form\">\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "19cfc66837a8c03d39c66c54cbfeac401776f7339994", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n </div>\r\n <div class=\"col-md-8 order-md-2\">\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "19cfc66837a8c03d39c66c54cbfeac401776f73311206", async() => { WriteLiteral("\r\n <div class=\"form-group\">\r\n <label for=\"inputNome\">Nome</label>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "19cfc66837a8c03d39c66c54cbfeac401776f73311592", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); #nullable restore #line 24 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.cadCont.nomeContato); #line default #line hidden #nullable disable __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"inputEmail\">Endereço de e-mail</label>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "19cfc66837a8c03d39c66c54cbfeac401776f73313811", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8); #nullable restore #line 32 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.cadCont.emailContato); #line default #line hidden #nullable disable __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"textAreaMensagem\">Mensagem</label>\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("textarea", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "19cfc66837a8c03d39c66c54cbfeac401776f73316027", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11); #nullable restore #line 40 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.cadCont.msg); #line default #line hidden #nullable disable __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_TextAreaTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n <a href=\"#\" class=\"btn btn-dark\">Enviar</a>\r\n "); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n </div>\r\n </div>\r\n</section>\r\n<!-- /Formulário contato -->\r\n\r\n<!--Newsletter-->\r\n<section class=\"newsletter\">\r\n "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "19cfc66837a8c03d39c66c54cbfeac401776f73319674", async() => { WriteLiteral(@" <div class=""container""> <div class=""row""> <div class=""col-sm-12""> <div class=""content""> <h2>Receba as nossas novidades!</h2> <div class=""input-group""> "); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "19cfc66837a8c03d39c66c54cbfeac401776f73320231", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15); BeginWriteTagHelperAttribute(); __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __tagHelperExecutionContext.AddHtmlAttribute("required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); #nullable restore #line 62 "D:\Users\Eng. Mateus Cardodo\Documents\Projetos Git\Projeto Squad\Projeto_Amor-na-Pele_Entrega_03\Amor_na_Pele_Squad09_Entrega02\Views\Home\contato.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.cadNews.emailNewsletter); #line default #line hidden #nullable disable __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n <button class=\"btn btn-dark\" type=\"submit\">Inscreva-se agora</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n "); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); WriteLiteral("\r\n</section>"); } #pragma warning restore 1998 [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Amor_na_Pele_Squad09_Entrega02.Models.ModelDuploContatoNewsletter> Html { get; private set; } } } #pragma warning restore 1591
92.151852
377
0.751859
[ "MIT" ]
VanessaVargas/Projeto_Amor-na-Pele_Entrega_03
Amor_na_Pele_Squad09_Entrega02/obj/Debug/net5.0/Razor/Views/Home/contato.cshtml.g.cs
24,885
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/services/custom_audience_service.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Google.Ads.GoogleAds.V8.Services { /// <summary>Holder for reflection information generated from google/ads/googleads/v8/services/custom_audience_service.proto</summary> public static partial class CustomAudienceServiceReflection { #region Descriptor /// <summary>File descriptor for google/ads/googleads/v8/services/custom_audience_service.proto</summary> public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CustomAudienceServiceReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92OC9zZXJ2aWNlcy9jdXN0b21fYXVk", "aWVuY2Vfc2VydmljZS5wcm90bxIgZ29vZ2xlLmFkcy5nb29nbGVhZHMudjgu", "c2VydmljZXMaN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Y4L3Jlc291cmNlcy9j", "dXN0b21fYXVkaWVuY2UucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMu", "cHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2Zp", "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", "GiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90byJiChhHZXRDdXN0", "b21BdWRpZW5jZVJlcXVlc3QSRgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv4EEC", "+kEpCidnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tQXVkaWVuY2Ui", "owEKHE11dGF0ZUN1c3RvbUF1ZGllbmNlc1JlcXVlc3QSGAoLY3VzdG9tZXJf", "aWQYASABKAlCA+BBAhJSCgpvcGVyYXRpb25zGAIgAygLMjkuZ29vZ2xlLmFk", "cy5nb29nbGVhZHMudjguc2VydmljZXMuQ3VzdG9tQXVkaWVuY2VPcGVyYXRp", "b25CA+BBAhIVCg12YWxpZGF0ZV9vbmx5GAMgASgIIvMBChdDdXN0b21BdWRp", "ZW5jZU9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5w", "cm90b2J1Zi5GaWVsZE1hc2sSQwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFk", "cy5nb29nbGVhZHMudjgucmVzb3VyY2VzLkN1c3RvbUF1ZGllbmNlSAASQwoG", "dXBkYXRlGAIgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjgucmVzb3Vy", "Y2VzLkN1c3RvbUF1ZGllbmNlSAASEAoGcmVtb3ZlGAMgASgJSABCCwoJb3Bl", "cmF0aW9uIm4KHU11dGF0ZUN1c3RvbUF1ZGllbmNlc1Jlc3BvbnNlEk0KB3Jl", "c3VsdHMYASADKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52OC5zZXJ2aWNl", "cy5NdXRhdGVDdXN0b21BdWRpZW5jZVJlc3VsdCIzChpNdXRhdGVDdXN0b21B", "dWRpZW5jZVJlc3VsdBIVCg1yZXNvdXJjZV9uYW1lGAEgASgJMqMEChVDdXN0", "b21BdWRpZW5jZVNlcnZpY2USzQEKEUdldEN1c3RvbUF1ZGllbmNlEjouZ29v", "Z2xlLmFkcy5nb29nbGVhZHMudjguc2VydmljZXMuR2V0Q3VzdG9tQXVkaWVu", "Y2VSZXF1ZXN0GjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjgucmVzb3VyY2Vz", "LkN1c3RvbUF1ZGllbmNlIkmC0+STAjMSMS92OC97cmVzb3VyY2VfbmFtZT1j", "dXN0b21lcnMvKi9jdXN0b21BdWRpZW5jZXMvKn3aQQ1yZXNvdXJjZV9uYW1l", "EvIBChVNdXRhdGVDdXN0b21BdWRpZW5jZXMSPi5nb29nbGUuYWRzLmdvb2ds", "ZWFkcy52OC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21BdWRpZW5jZXNSZXF1ZXN0", "Gj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjguc2VydmljZXMuTXV0YXRlQ3Vz", "dG9tQXVkaWVuY2VzUmVzcG9uc2UiWILT5JMCOSI0L3Y4L2N1c3RvbWVycy97", "Y3VzdG9tZXJfaWQ9Kn0vY3VzdG9tQXVkaWVuY2VzOm11dGF0ZToBKtpBFmN1", "c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlz", "LmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jk", "c0KBAgokY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnY4LnNlcnZpY2VzQhpD", "dXN0b21BdWRpZW5jZVNlcnZpY2VQcm90b1ABWkhnb29nbGUuZ29sYW5nLm9y", "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjgvc2Vydmlj", "ZXM7c2VydmljZXOiAgNHQUGqAiBHb29nbGUuQWRzLkdvb2dsZUFkcy5WOC5T", "ZXJ2aWNlc8oCIEdvb2dsZVxBZHNcR29vZ2xlQWRzXFY4XFNlcnZpY2Vz6gIk", "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6Vjg6OlNlcnZpY2VzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V8.Resources.CustomAudienceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V8.Services.GetCustomAudienceRequest), global::Google.Ads.GoogleAds.V8.Services.GetCustomAudienceRequest.Parser, new[]{ "ResourceName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudiencesRequest), global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudiencesRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation), global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudiencesResponse), global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudiencesResponse.Parser, new[]{ "Results" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult), global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult.Parser, new[]{ "ResourceName" }, null, null, null, null) })); } #endregion } #region Messages /// <summary> /// Request message for [CustomAudienceService.GetCustomAudience][google.ads.googleads.v8.services.CustomAudienceService.GetCustomAudience]. /// </summary> public sealed partial class GetCustomAudienceRequest : pb::IMessage<GetCustomAudienceRequest> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<GetCustomAudienceRequest> _parser = new pb::MessageParser<GetCustomAudienceRequest>(() => new GetCustomAudienceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<GetCustomAudienceRequest> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V8.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public GetCustomAudienceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public GetCustomAudienceRequest(GetCustomAudienceRequest other) : this() { resourceName_ = other.resourceName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public GetCustomAudienceRequest Clone() { return new GetCustomAudienceRequest(this); } /// <summary>Field number for the "resource_name" field.</summary> public const int ResourceNameFieldNumber = 1; private string resourceName_ = ""; /// <summary> /// Required. The resource name of the custom audience to fetch. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ResourceName { get { return resourceName_; } set { resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as GetCustomAudienceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(GetCustomAudienceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ResourceName != other.ResourceName) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (ResourceName.Length != 0) { output.WriteRawTag(10); output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (ResourceName.Length != 0) { output.WriteRawTag(10); output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ResourceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(GetCustomAudienceRequest other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ResourceName = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { ResourceName = input.ReadString(); break; } } } } #endif } /// <summary> /// Request message for [CustomAudienceService.MutateCustomAudiences][google.ads.googleads.v8.services.CustomAudienceService.MutateCustomAudiences]. /// </summary> public sealed partial class MutateCustomAudiencesRequest : pb::IMessage<MutateCustomAudiencesRequest> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<MutateCustomAudiencesRequest> _parser = new pb::MessageParser<MutateCustomAudiencesRequest>(() => new MutateCustomAudiencesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<MutateCustomAudiencesRequest> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V8.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesRequest(MutateCustomAudiencesRequest other) : this() { customerId_ = other.customerId_; operations_ = other.operations_.Clone(); validateOnly_ = other.validateOnly_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesRequest Clone() { return new MutateCustomAudiencesRequest(this); } /// <summary>Field number for the "customer_id" field.</summary> public const int CustomerIdFieldNumber = 1; private string customerId_ = ""; /// <summary> /// Required. The ID of the customer whose custom audiences are being modified. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string CustomerId { get { return customerId_; } set { customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// <summary>Field number for the "operations" field.</summary> public const int OperationsFieldNumber = 2; private static readonly pb::FieldCodec<global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation> _repeated_operations_codec = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation.Parser); private readonly pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation> operations_ = new pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation>(); /// <summary> /// Required. The list of operations to perform on individual custom audiences. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.CustomAudienceOperation> Operations { get { return operations_; } } /// <summary>Field number for the "validate_only" field.</summary> public const int ValidateOnlyFieldNumber = 3; private bool validateOnly_; /// <summary> /// If true, the request is validated but not executed. Only errors are /// returned, not results. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool ValidateOnly { get { return validateOnly_; } set { validateOnly_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MutateCustomAudiencesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MutateCustomAudiencesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (CustomerId != other.CustomerId) return false; if(!operations_.Equals(other.operations_)) return false; if (ValidateOnly != other.ValidateOnly) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); hash ^= operations_.GetHashCode(); if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (CustomerId.Length != 0) { output.WriteRawTag(10); output.WriteString(CustomerId); } operations_.WriteTo(output, _repeated_operations_codec); if (ValidateOnly != false) { output.WriteRawTag(24); output.WriteBool(ValidateOnly); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (CustomerId.Length != 0) { output.WriteRawTag(10); output.WriteString(CustomerId); } operations_.WriteTo(ref output, _repeated_operations_codec); if (ValidateOnly != false) { output.WriteRawTag(24); output.WriteBool(ValidateOnly); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (CustomerId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); } size += operations_.CalculateSize(_repeated_operations_codec); if (ValidateOnly != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MutateCustomAudiencesRequest other) { if (other == null) { return; } if (other.CustomerId.Length != 0) { CustomerId = other.CustomerId; } operations_.Add(other.operations_); if (other.ValidateOnly != false) { ValidateOnly = other.ValidateOnly; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { CustomerId = input.ReadString(); break; } case 18: { operations_.AddEntriesFrom(input, _repeated_operations_codec); break; } case 24: { ValidateOnly = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { CustomerId = input.ReadString(); break; } case 18: { operations_.AddEntriesFrom(ref input, _repeated_operations_codec); break; } case 24: { ValidateOnly = input.ReadBool(); break; } } } } #endif } /// <summary> /// A single operation (create, update) on a custom audience. /// </summary> public sealed partial class CustomAudienceOperation : pb::IMessage<CustomAudienceOperation> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<CustomAudienceOperation> _parser = new pb::MessageParser<CustomAudienceOperation>(() => new CustomAudienceOperation()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<CustomAudienceOperation> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V8.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CustomAudienceOperation() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CustomAudienceOperation(CustomAudienceOperation other) : this() { updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; switch (other.OperationCase) { case OperationOneofCase.Create: Create = other.Create.Clone(); break; case OperationOneofCase.Update: Update = other.Update.Clone(); break; case OperationOneofCase.Remove: Remove = other.Remove; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CustomAudienceOperation Clone() { return new CustomAudienceOperation(this); } /// <summary>Field number for the "update_mask" field.</summary> public const int UpdateMaskFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// <summary> /// FieldMask that determines which resource fields are modified in an update. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { get { return updateMask_; } set { updateMask_ = value; } } /// <summary>Field number for the "create" field.</summary> public const int CreateFieldNumber = 1; /// <summary> /// Create operation: No resource name is expected for the new custom /// audience. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Ads.GoogleAds.V8.Resources.CustomAudience Create { get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V8.Resources.CustomAudience) operation_ : null; } set { operation_ = value; operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; } } /// <summary>Field number for the "update" field.</summary> public const int UpdateFieldNumber = 2; /// <summary> /// Update operation: The custom audience is expected to have a valid /// resource name. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Ads.GoogleAds.V8.Resources.CustomAudience Update { get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V8.Resources.CustomAudience) operation_ : null; } set { operation_ = value; operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; } } /// <summary>Field number for the "remove" field.</summary> public const int RemoveFieldNumber = 3; /// <summary> /// Remove operation: A resource name for the removed custom audience is /// expected, in this format: /// /// `customers/{customer_id}/customAudiences/{custom_audience_id}` /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Remove { get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } set { operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); operationCase_ = OperationOneofCase.Remove; } } private object operation_; /// <summary>Enum of possible cases for the "operation" oneof.</summary> public enum OperationOneofCase { None = 0, Create = 1, Update = 2, Remove = 3, } private OperationOneofCase operationCase_ = OperationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public OperationOneofCase OperationCase { get { return operationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearOperation() { operationCase_ = OperationOneofCase.None; operation_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CustomAudienceOperation); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CustomAudienceOperation other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(UpdateMask, other.UpdateMask)) return false; if (!object.Equals(Create, other.Create)) return false; if (!object.Equals(Update, other.Update)) return false; if (Remove != other.Remove) return false; if (OperationCase != other.OperationCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); hash ^= (int) operationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (operationCase_ == OperationOneofCase.Create) { output.WriteRawTag(10); output.WriteMessage(Create); } if (operationCase_ == OperationOneofCase.Update) { output.WriteRawTag(18); output.WriteMessage(Update); } if (operationCase_ == OperationOneofCase.Remove) { output.WriteRawTag(26); output.WriteString(Remove); } if (updateMask_ != null) { output.WriteRawTag(34); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (operationCase_ == OperationOneofCase.Create) { output.WriteRawTag(10); output.WriteMessage(Create); } if (operationCase_ == OperationOneofCase.Update) { output.WriteRawTag(18); output.WriteMessage(Update); } if (operationCase_ == OperationOneofCase.Remove) { output.WriteRawTag(26); output.WriteString(Remove); } if (updateMask_ != null) { output.WriteRawTag(34); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (updateMask_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); } if (operationCase_ == OperationOneofCase.Create) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); } if (operationCase_ == OperationOneofCase.Update) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); } if (operationCase_ == OperationOneofCase.Remove) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CustomAudienceOperation other) { if (other == null) { return; } if (other.updateMask_ != null) { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } UpdateMask.MergeFrom(other.UpdateMask); } switch (other.OperationCase) { case OperationOneofCase.Create: if (Create == null) { Create = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); } Create.MergeFrom(other.Create); break; case OperationOneofCase.Update: if (Update == null) { Update = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); } Update.MergeFrom(other.Update); break; case OperationOneofCase.Remove: Remove = other.Remove; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Google.Ads.GoogleAds.V8.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); if (operationCase_ == OperationOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 18: { global::Google.Ads.GoogleAds.V8.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); if (operationCase_ == OperationOneofCase.Update) { subBuilder.MergeFrom(Update); } input.ReadMessage(subBuilder); Update = subBuilder; break; } case 26: { Remove = input.ReadString(); break; } case 34: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Google.Ads.GoogleAds.V8.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); if (operationCase_ == OperationOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 18: { global::Google.Ads.GoogleAds.V8.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V8.Resources.CustomAudience(); if (operationCase_ == OperationOneofCase.Update) { subBuilder.MergeFrom(Update); } input.ReadMessage(subBuilder); Update = subBuilder; break; } case 26: { Remove = input.ReadString(); break; } case 34: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } } #endif } /// <summary> /// Response message for custom audience mutate. /// </summary> public sealed partial class MutateCustomAudiencesResponse : pb::IMessage<MutateCustomAudiencesResponse> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<MutateCustomAudiencesResponse> _parser = new pb::MessageParser<MutateCustomAudiencesResponse>(() => new MutateCustomAudiencesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<MutateCustomAudiencesResponse> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V8.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesResponse(MutateCustomAudiencesResponse other) : this() { results_ = other.results_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudiencesResponse Clone() { return new MutateCustomAudiencesResponse(this); } /// <summary>Field number for the "results" field.</summary> public const int ResultsFieldNumber = 1; private static readonly pb::FieldCodec<global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult> _repeated_results_codec = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult.Parser); private readonly pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult> results_ = new pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult>(); /// <summary> /// All results for the mutate. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField<global::Google.Ads.GoogleAds.V8.Services.MutateCustomAudienceResult> Results { get { return results_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MutateCustomAudiencesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MutateCustomAudiencesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!results_.Equals(other.results_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= results_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else results_.WriteTo(output, _repeated_results_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { results_.WriteTo(ref output, _repeated_results_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += results_.CalculateSize(_repeated_results_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MutateCustomAudiencesResponse other) { if (other == null) { return; } results_.Add(other.results_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { results_.AddEntriesFrom(input, _repeated_results_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { results_.AddEntriesFrom(ref input, _repeated_results_codec); break; } } } } #endif } /// <summary> /// The result for the custom audience mutate. /// </summary> public sealed partial class MutateCustomAudienceResult : pb::IMessage<MutateCustomAudienceResult> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<MutateCustomAudienceResult> _parser = new pb::MessageParser<MutateCustomAudienceResult>(() => new MutateCustomAudienceResult()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<MutateCustomAudienceResult> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Ads.GoogleAds.V8.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudienceResult() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudienceResult(MutateCustomAudienceResult other) : this() { resourceName_ = other.resourceName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MutateCustomAudienceResult Clone() { return new MutateCustomAudienceResult(this); } /// <summary>Field number for the "resource_name" field.</summary> public const int ResourceNameFieldNumber = 1; private string resourceName_ = ""; /// <summary> /// Returned for successful operations. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ResourceName { get { return resourceName_; } set { resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MutateCustomAudienceResult); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MutateCustomAudienceResult other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ResourceName != other.ResourceName) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (ResourceName.Length != 0) { output.WriteRawTag(10); output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (ResourceName.Length != 0) { output.WriteRawTag(10); output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ResourceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MutateCustomAudienceResult other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ResourceName = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { ResourceName = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code
37.70915
396
0.681233
[ "Apache-2.0" ]
deni-skaraudio/google-ads-dotnet
src/V8/Services/CustomAudienceService.g.cs
46,156
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Timers; namespace AIGS.Helper { public class TimeHelper { #region 静态接口 /// <summary> /// 获取时间戳(毫秒) /// </summary> /// <returns></returns> public static string GetTimeStamp() { DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1, 0, 0, 0, 0)); DateTime nowTime = DateTime.Now; long unixTime = (long)System.Math.Round((nowTime - startTime).TotalMilliseconds, MidpointRounding.AwayFromZero); return unixTime.ToString(); } /// <summary> /// 秒数转字符串(0 -> 00:00:00) /// </summary> /// <param name="iSecond">秒</param> public static string ConverIntToString(int iSecond) { int iHour = iSecond / 3600; int iMin = (iSecond - iHour * 3600) / 60; int iSec = iSecond - iHour * 3600 - iMin * 60; string sHour = iHour < 10 ? 0 + iHour.ToString():iHour.ToString(); string sMin = iMin < 10 ? 0 + iMin.ToString():iMin.ToString(); string sSec = iSec < 10 ? 0 + iSec.ToString():iSec.ToString(); string sText = sHour + ':' + sMin + ':' + sSec; return sText; } /// <summary> /// 将字符串转成整数秒 /// </summary> /// <param name="sHour"></param> /// <param name="sMine"></param> /// <param name="sSecond"></param> /// <returns> 大于等于0表示正确 </returns> public static int ConverToSecond(string sHour, string sMine, string sSecond) { if (String.IsNullOrWhiteSpace(sHour)) sHour = "0"; if (String.IsNullOrWhiteSpace(sMine)) sMine = "0"; if (String.IsNullOrWhiteSpace(sSecond)) sSecond = "0"; int iHour, iMine, iSecond; if (!int.TryParse(sHour, out iHour) || !int.TryParse(sMine, out iMine) || !int.TryParse(sSecond, out iSecond)) return -1; return iHour * 60 * 60 + iMine * 60 + iSecond; } /// <summary> /// 获取当前时间 /// </summary> /// <returns></returns> public static System.DateTime GetCurrentTime() { return System.DateTime.Now; } /// <summary> /// 获取当前日子,如1993-02-28 /// </summary> /// <param name="Interval">间隔符号</param> /// <param name="PadZero">是否补零</param> /// <returns></returns> public static string GetTodayString(string Interval = "-", bool PadZero = true) { System.DateTime aTime = GetCurrentTime(); int year = aTime.Year; int month = aTime.Month; int day = aTime.Day; string sRet = year.ToString() + Interval; if (month < 10 && PadZero) sRet += "0"; sRet += month.ToString() + Interval; if (day < 10 && PadZero) sRet += "0"; sRet += day.ToString(); return sRet; } /// <summary> /// 获取时间消耗(毫秒) /// </summary> /// <param name="aStartTime"></param> /// <returns></returns> public static long CalcConsumeTime(System.DateTime aStartTime) { System.DateTime aCurTime = GetCurrentTime(); int iEndRet = aCurTime.Hour * 3600000 + aCurTime.Minute * 60000 + aCurTime.Second * 1000 + aCurTime.Millisecond; int iStartRet = aStartTime.Hour * 3600000 + aStartTime.Minute * 60000 + aStartTime.Second * 1000 + aStartTime.Millisecond; return iEndRet - iStartRet; } #endregion #region 定时器内部参数与接口 /// <summary> /// 定时器响应的回调函数 /// </summary> public delegate void FuncEventHandle(object sender, ElapsedEventArgs e, int iTimerKey, ref object data); /// <summary> /// 定时器句柄的节点 /// </summary> private class TIMER_NODE { public Timer aTimer; //定时器 public object data; //可自带的数据 public FuncEventHandle pFunc; //响应接口 } /// <summary> /// 定时器句柄 /// </summary> Dictionary<int, TIMER_NODE> m_TimerHandle = new Dictionary<int, TIMER_NODE>(); /// <summary> /// 回调响应函数 /// </summary> private void Callback_ElapsedEventHandler(object sender, ElapsedEventArgs e) { //查找 Timer aTimer = (Timer)sender; KeyValuePair<int, TIMER_NODE> aTor = m_TimerHandle.First(s => s.Value.aTimer.Equals(aTimer)); //执行回调 TIMER_NODE aTreeNode = aTor.Value; object aObject = aTreeNode.data; aTreeNode.pFunc(sender, e, aTor.Key, ref aObject); //赋值回去 aTreeNode.data = aObject; m_TimerHandle[aTor.Key] = aTreeNode; } #endregion #region 定时器动态接口 /// <summary> /// 查看定时器是否已经存在 /// </summary> /// <param name="iTimerKey"></param> /// <returns></returns> public bool TimerContains(int iTimerKey) { return m_TimerHandle.ContainsKey(iTimerKey); } /// <summary> /// 定时器初始化 /// </summary> /// <param name="iMilliSecond">毫秒限制</param> /// <param name="data">可添加的变量</param> /// <param name="pFunc">处理函数</param> /// <param name="iTimerKey">定时器的关键字</param> public void TimerInit(int iMilliSecond, object data, FuncEventHandle pFunc, int iTimerKey = -1) { //新建定时器 Timer aTime = new Timer(iMilliSecond); aTime.Elapsed += Callback_ElapsedEventHandler; aTime.Stop(); //新建节点 TIMER_NODE pNode = new TIMER_NODE(); pNode.aTimer = aTime; pNode.data = data; pNode.pFunc = pFunc; //添加到哈希表句柄中 m_TimerHandle.Remove(iTimerKey); m_TimerHandle.Add(iTimerKey, pNode); } /// <summary> /// 获取定时器的附件数据 /// </summary> public object TimerGetData(int iTimerKey = -1) { if (m_TimerHandle.ContainsKey(iTimerKey)) return m_TimerHandle[iTimerKey].data; return null; } /// <summary> /// 设置定时器的附件数据 /// </summary> /// <param name="iTimerKey"></param> /// <param name="data"></param> public void TimerSetData(object data, int iTimerKey = -1) { if (m_TimerHandle.ContainsKey(iTimerKey)) m_TimerHandle[iTimerKey].data = data; } /// <summary> /// 启动定时器 /// </summary> /// <param name="iTimerKey">定时器的关键字</param> /// <returns></returns> public bool TimerStart(int iTimerKey = -1) { if (m_TimerHandle.ContainsKey(iTimerKey)) { m_TimerHandle[iTimerKey].aTimer.Start(); return true; } return false; } /// <summary> /// 停止定时器 /// </summary> /// <param name="iTimerKey">定时器的关键字</param> /// <returns></returns> public bool TimerEnd(int iTimerKey = -1) { if (m_TimerHandle.ContainsKey(iTimerKey)) { m_TimerHandle[iTimerKey].aTimer.Stop(); return true; } return false; } /// <summary> /// 停止全部定时器 /// </summary> public void TimerAllEnd() { for (int i = 0; i < m_TimerHandle.Count; i++) { int iKey = m_TimerHandle.ElementAt(i).Key; m_TimerHandle[iKey].aTimer.Stop(); } } /// <summary> /// 移除定时器 /// </summary> public bool TimerRemove(int iTimerKey = -1) { if (m_TimerHandle.ContainsKey(iTimerKey)) { TimerEnd(iTimerKey); m_TimerHandle.Remove(iTimerKey); return true; } return false; } /// <summary> /// 移除全部定时器 /// </summary> public void TimerAllRemove() { TimerAllEnd(); m_TimerHandle.Clear(); } #endregion #region 计时器动态接口 /// <summary> /// 计时器句柄 /// </summary> Stopwatch m_WatchHandle = new Stopwatch(); /// <summary> /// 计时开始 /// </summary> public void WatchStart() { m_WatchHandle.Start(); } /// <summary> /// 计时结束 /// </summary> /// <returns></returns> public string WatchEnd() { m_WatchHandle.Stop(); return ConverIntToString((int)(m_WatchHandle.ElapsedMilliseconds / 1000)); } /// <summary> /// 计时器重置 /// </summary> public void WatchReset() { m_WatchHandle.Reset(); } #endregion } }
28.098802
134
0.491849
[ "Apache-2.0" ]
n00xt/Tidal-Downloader-n00xt-mod
AIGS/Helper/TimeHelper.cs
9,955
C#
using System; using System.Collections.Generic; using System.Linq; namespace FMData.Xml.Requests { /// <summary> /// Find request for an instance T. /// </summary> /// <typeparam name="T">The type to use for the find request parameters.</typeparam> public class FindRequest<T> : IFindRequest<T> { /// <summary> /// The layout to execute the request on. /// </summary> public string Layout { get; set; } /// <summary> /// The query values to provide to FMS. /// </summary> public IEnumerable<RequestQueryInstance<T>> Query { get { return _query; } } private List<RequestQueryInstance<T>> _query = new List<RequestQueryInstance<T>>(); /// <summary> /// Offset amount (skip) /// </summary> public int Offset { get; set; } /// <summary> /// Limit amount (take) /// </summary> public int Limit { get; set; } /// <summary> /// Sort options for the results. /// </summary> public IEnumerable<ISort> Sort { get; set; } /// <summary> /// The layout to utilize for the response projection. /// </summary> /// <value></value> public string ResponseLayout { get; set; } /// <summary> /// Script to run. /// </summary> public string Script { get; set; } /// <summary> /// Script Parameter. /// </summary> public string ScriptParameter { get; set; } /// <summary> /// Script to run. /// </summary> public string PreRequestScript { get; set; } /// <summary> /// Script Parameter. /// </summary> public string PreRequestScriptParameter { get; set; } /// <summary> /// Script to run. /// </summary> public string PreSortScript { get; set; } /// <summary> /// Script Parameter. /// </summary> public string PreSortScriptParameter { get; set; } /// <summary> /// Determines if container data attributes are processed and loaded. /// </summary> public bool LoadContainerData { get; set; } /// <summary> /// Serialize the request. /// </summary> /// <returns>The string representation for this request to be sent along the wire to FMS.</returns> public string SerializeRequest() { var dictionary = Query.First().QueryInstance.AsDictionary(false); var stringContent = string.Join("", dictionary.Select(i => $"&{Uri.EscapeDataString(i.Key)}={Uri.EscapeDataString(i.Value.ToString())}")); var requestContent = $"-find&-lay={Layout}{stringContent}"; return requestContent; } /// <summary> /// Add an instance to the query collection. /// </summary> /// <param name="query">The object to add to the query.</param> /// <param name="omit">Flag indicating if this instance represents a find or an omit.</param> public void AddQuery(T query, bool omit = false) => _query.Add(new RequestQueryInstance<T>(query, omit)); } }
36.067416
150
0.554517
[ "MIT" ]
Chevreuil41/fmdata
src/FMData.Xml/Requests/FindRequest.cs
3,212
C#
using System; using Helpers; namespace VehicleEquipment.Locomotion.Encoder { public class Encoder { private readonly IVehicleCommunication _vehicleCommunication; private readonly object _velocityCalcLock = new object(); /// <summary> /// The point in time at which data was last collected from encoders. <para /> /// I.e. last successfull call to <see cref="CollectAndResetDistanceFromEncoder"/> /// </summary> public DateTime LastRequestTimeStamp { get; private set; } /// <summary> /// The time span the last collected data was collected over (in milliseconds). <para /> /// I.e. time accumulated by the micro-controller since last call to <see cref="CollectAndResetDistanceFromEncoder"/> /// </summary> public int TimeAccumulatedForLastRequest { get; private set; } /// <summary> /// Total time accumulated since last call to <see cref="ResetTotalDistanceTraveled"/> /// </summary> public TimeSpan TotalTime { get; private set; } /// <summary> /// The distance traveled received from the micro-controller at last call to <see cref="CollectAndResetDistanceFromEncoder"/> /// </summary> public double DistanceAtLastRequest { get; private set; } /// <summary> /// Total distance accumulated since last call to <see cref="ResetTotalDistanceTraveled"/> /// </summary> public double TotalDistanceTravelled { get; private set; } /// <summary> /// Average velocity based on last data collected from micro-controller. <para /> /// Note that this is an average based on the total time accumulated on the micro-controller. /// This value will not be a good representation of the vehicles speed unless two consecutive calls to <see cref="CollectAndResetDistanceFromEncoder"/> are performed, while the vehicle is not accelerating. /// </summary> /// <remarks> /// Average velocity is calculated from <see cref="TimeAccumulatedForLastRequest"/> and <see cref="DistanceAtLastRequest"/> /// </remarks> public double AvgVel { get; private set; } //Cm per sekund /// <summary> /// Message code received from encoder. /// </summary> public string Message { get; private set; } internal Error Error { get; } public Encoder(IVehicleCommunication comWithEncoder) { _vehicleCommunication = comWithEncoder; Error = new Error(); } internal double CollectAndResetDistanceFromEncoder() { if (Error.Unacknowledged) { DistanceAtLastRequest = double.NaN; return DistanceAtLastRequest; } try { VehicleDataPacket data = _vehicleCommunication.Read(); Message = $"Message from micro controller: {data.Code}"; lock (_velocityCalcLock) { DistanceAtLastRequest = data.Integers[0]; TimeAccumulatedForLastRequest = data.Integers[1]; AvgVel = DistanceAtLastRequest / (TimeAccumulatedForLastRequest / 1000f); } TotalTime += TimeSpan.FromMilliseconds(TimeAccumulatedForLastRequest); TotalDistanceTravelled += DistanceAtLastRequest; } catch (Exception e) { DistanceAtLastRequest = double.NaN; TimeAccumulatedForLastRequest = 0; Error.Message = e.Message; Error.DetailedMessage = e.ToString(); Error.Unacknowledged = true; } LastRequestTimeStamp = DateTime.Now; return DistanceAtLastRequest; } internal void ResetTotalDistanceTraveled() { TotalDistanceTravelled = 0; TotalTime = TimeSpan.Zero; } //TODO: Consider changeing names of properties // Suggested changes to the three fields above //TimeSpan TimeSinceLastReading { get; } //double DistanceTravelledInCm { get; } //double AvgSpeed { get; } } }
38.495495
213
0.605429
[ "MIT" ]
BjAlvestad/BO19E-15_SensorVehicle
SensorVehicle-main/VehicleEquipment/Locomotion/Encoder/Encoder.cs
4,275
C#
using System; using System.Threading; using System.IO; using System.Collections; using System.Text; using CortexAccess; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.Net.Http.Headers; namespace CommandConnector { class Connector { const string licenseID = "14740daa-c423-4151-b144-ffe7ba27b557"; static void Main(string[] args) { Console.WriteLine("CONNECTOR STARTING..."); Console.WriteLine("Please wear Headset with good signal!!!"); Console.WriteLine("Starting Minecraft Accessibility Companion server..."); Thread thr = new Thread(new ThreadStart(WebServerThread.Start)); thr.Start(); //TODO: Extra code. This has to be removed. //Random _random = new Random(); // //List<String> moves = new List<String>(); //moves.Add("Push"); //moves.Add("Pull"); //moves.Add("Left"); //moves.Add("Right"); //CommandStream dse = new CommandStream(); while (true) { //int index = _random.Next(); //string com = moves[index % 4]; //ArrayList al = new ArrayList(); ////al.Add(com); //al.Add("Push"); //al.Add(0); // //dse.ProcessMentalData("sender", al); WebServerThread.AddInput("keyboard", 'W', 1); Thread.Sleep(10); Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); //dse.ProcessMentalData("sender", al); //Console.WriteLine("Sent Command to Minecraft"); //Thread.Sleep(10); } //Create a DataStream to read stream of mental commands. CommandStream dse = new CommandStream(); dse.AddStreams("com"); dse.OnSubscribed += SubscribedOK; // Need a valid license key and activeSession when subscribe performance metric data dse.Start(licenseID, true); Console.WriteLine("Press Esc to STOP reading stream and exit"); while (Console.ReadKey().Key != ConsoleKey.Escape) { } // Unsubcribe stream dse.UnSubscribe(); Thread.Sleep(5000); // Close Session dse.CloseSession(); Thread.Sleep(5000); } private static void SubscribedOK(object sender, Dictionary<string, JArray> e) { foreach (string key in e.Keys) { Console.WriteLine("SubscribedOK:: Key: " + key); if (key == "met") { // print header ArrayList header = e[key].ToObject<ArrayList>(); Console.WriteLine("SubscribedOK:: MET Values: " + header.ToString()); } } } } }
35.064815
96
0.517296
[ "MIT" ]
akshaytayal/cortex-v2-example
csharp/CommandConnector/Program.cs
3,789
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------------------------------------------- using System.Collections.Generic; using FluentValidation; using FluentValidation.Internal; using FluentValidation.Results; using FluentValidation.Validators; using Hl7.Fhir.Model; using Microsoft.Health.Fhir.Core.Features.Validation.FhirPrimitiveTypes; using Microsoft.Health.Fhir.Tests.Common; using Xunit; namespace Microsoft.Health.Fhir.Core.UnitTests.Features.Validation.FhirPrimitiveTypes { public class IdValidatorTests { [Theory] [InlineData("1+1")] [InlineData("1_1")] [InlineData("11|")] [InlineData("00000000000000000000000000000000000000000000000000000000000000065")] public void GivenAnInvalidId_WhenProcessingAResource_ThenAValidationMessageIsCreated(string id) { Observation defaultObservation = Samples.GetDefaultObservation(); defaultObservation.Id = id; IEnumerable<ValidationFailure> result = GetValidationFailures(defaultObservation); Assert.Single(result); } [Theory] [InlineData("1.1")] [InlineData("id1")] [InlineData("example")] [InlineData("a94060e6-038e-411b-a64b-38c2c3ff0fb7")] [InlineData("AF30C45C-94AC-4DE3-89D8-9A20BB2A973F")] [InlineData("0000000000000000000000000000000000000000000000000000000000000064")] public void GivenAValidId_WhenProcessingAResource_ThenAValidationMessageIsCreated(string id) { Observation defaultObservation = Samples.GetDefaultObservation(); defaultObservation.Id = id; IEnumerable<ValidationFailure> result = GetValidationFailures(defaultObservation); Assert.Empty(result); } private static IEnumerable<ValidationFailure> GetValidationFailures(Observation defaultObservation) { var validator = new IdValidator(); var result = validator.Validate( new PropertyValidatorContext(new ValidationContext(defaultObservation), PropertyRule.Create<Observation, string>(x => x.Id), "Id")); return result; } } }
38.984127
148
0.646987
[ "MIT" ]
ardavanhashemzadeh/fhir-server
src/Microsoft.Health.Fhir.Core.UnitTests/Features/Validation/FhirPrimitiveTypes/IdValidatorTests.cs
2,458
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Aula11 { static class Program { /// <summary> /// Ponto de entrada principal para o aplicativo. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
22.130435
65
0.611002
[ "MIT" ]
ThalesTadashi/Estudos_Csharp
Aula11/Program.cs
511
C#
namespace THREE.Math { /// <summary> /// /// </summary> public class Color { /// <summary> /// Red channel, 0-256. /// </summary> public byte R { get; set; } /// <summary> /// Green channel, 0-256. /// </summary> public byte G { get; set; } /// <summary> /// Blue channel, 0-256. /// </summary> public byte B { get; set; } /// <summary> /// Construct a color from r,g,b bytes. /// </summary> /// <param name="r">Red channel.</param> /// <param name="g">Green channel.</param> /// <param name="b">Blue channel.</param> public Color(byte r, byte g, byte b) { R = r; G = g; B = b; } /// <summary> /// Convert color to 8-bit integer. /// </summary> /// <returns>An int representation of three byte channels.</returns> public static int ToInt(byte r, byte g, byte b) { return r * 256 * 256 + g * 256 + b; } /// <summary> /// Convert this color to 8-bit integer. /// </summary> /// <returns>An int representation of the color.</returns> public int ToInt() { return R * 256 * 256 + G * 256 + B; } } }
24.818182
76
0.438828
[ "MIT" ]
mcneel/IrisLib
src/THREE/Math/Color.cs
1,367
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace NWUDataExtractor.WPF.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } } }
34.677419
151
0.584186
[ "MIT" ]
VladimortZA/NWUDataExtractor
NWUDataExtractor.WPF/Properties/Settings.Designer.cs
1,077
C#
using UnityEngine; public class Hoge704 : MonoBehaviour{ void Start(){ Debug.Log(Hoge704.GetIndex()); } void Update(){ } public static int GetIndex(){ return 704; } public int GetIndex0(){ return 0; } public int GetIndex1(){ return 1; } public int GetIndex2(){ return 2; } public int GetIndex3(){ return 3; } public int GetIndex4(){ return 4; } public int GetIndex5(){ return 5; } public int GetIndex6(){ return 6; } public int GetIndex7(){ return 7; } public int GetIndex8(){ return 8; } public int GetIndex9(){ return 9; } public int GetIndex10(){ return 10; } public int GetIndex11(){ return 11; } public int GetIndex12(){ return 12; } public int GetIndex13(){ return 13; } public int GetIndex14(){ return 14; } public int GetIndex15(){ return 15; } public int GetIndex16(){ return 16; } public int GetIndex17(){ return 17; } public int GetIndex18(){ return 18; } public int GetIndex19(){ return 19; } public int GetIndex20(){ return 20; } public int GetIndex21(){ return 21; } public int GetIndex22(){ return 22; } public int GetIndex23(){ return 23; } public int GetIndex24(){ return 24; } public int GetIndex25(){ return 25; } public int GetIndex26(){ return 26; } public int GetIndex27(){ return 27; } public int GetIndex28(){ return 28; } public int GetIndex29(){ return 29; } public int GetIndex30(){ return 30; } public int GetIndex31(){ return 31; } public int GetIndex32(){ return 32; } public int GetIndex33(){ return 33; } public int GetIndex34(){ return 34; } public int GetIndex35(){ return 35; } public int GetIndex36(){ return 36; } public int GetIndex37(){ return 37; } public int GetIndex38(){ return 38; } public int GetIndex39(){ return 39; } public int GetIndex40(){ return 40; } public int GetIndex41(){ return 41; } public int GetIndex42(){ return 42; } public int GetIndex43(){ return 43; } public int GetIndex44(){ return 44; } public int GetIndex45(){ return 45; } public int GetIndex46(){ return 46; } public int GetIndex47(){ return 47; } public int GetIndex48(){ return 48; } public int GetIndex49(){ return 49; } public int GetIndex50(){ return 50; } public int GetIndex51(){ return 51; } public int GetIndex52(){ return 52; } public int GetIndex53(){ return 53; } public int GetIndex54(){ return 54; } public int GetIndex55(){ return 55; } public int GetIndex56(){ return 56; } public int GetIndex57(){ return 57; } public int GetIndex58(){ return 58; } public int GetIndex59(){ return 59; } public int GetIndex60(){ return 60; } public int GetIndex61(){ return 61; } public int GetIndex62(){ return 62; } public int GetIndex63(){ return 63; } public int GetIndex64(){ return 64; } public int GetIndex65(){ return 65; } public int GetIndex66(){ return 66; } public int GetIndex67(){ return 67; } public int GetIndex68(){ return 68; } public int GetIndex69(){ return 69; } public int GetIndex70(){ return 70; } public int GetIndex71(){ return 71; } public int GetIndex72(){ return 72; } public int GetIndex73(){ return 73; } public int GetIndex74(){ return 74; } public int GetIndex75(){ return 75; } public int GetIndex76(){ return 76; } public int GetIndex77(){ return 77; } public int GetIndex78(){ return 78; } public int GetIndex79(){ return 79; } public int GetIndex80(){ return 80; } public int GetIndex81(){ return 81; } public int GetIndex82(){ return 82; } public int GetIndex83(){ return 83; } public int GetIndex84(){ return 84; } public int GetIndex85(){ return 85; } public int GetIndex86(){ return 86; } public int GetIndex87(){ return 87; } public int GetIndex88(){ return 88; } public int GetIndex89(){ return 89; } public int GetIndex90(){ return 90; } public int GetIndex91(){ return 91; } public int GetIndex92(){ return 92; } public int GetIndex93(){ return 93; } public int GetIndex94(){ return 94; } public int GetIndex95(){ return 95; } public int GetIndex96(){ return 96; } public int GetIndex97(){ return 97; } public int GetIndex98(){ return 98; } public int GetIndex99(){ return 99; } public int GetIndex100(){ return 100; } public int GetIndex101(){ return 101; } public int GetIndex102(){ return 102; } public int GetIndex103(){ return 103; } public int GetIndex104(){ return 104; } public int GetIndex105(){ return 105; } public int GetIndex106(){ return 106; } public int GetIndex107(){ return 107; } public int GetIndex108(){ return 108; } public int GetIndex109(){ return 109; } public int GetIndex110(){ return 110; } public int GetIndex111(){ return 111; } public int GetIndex112(){ return 112; } public int GetIndex113(){ return 113; } public int GetIndex114(){ return 114; } public int GetIndex115(){ return 115; } public int GetIndex116(){ return 116; } public int GetIndex117(){ return 117; } public int GetIndex118(){ return 118; } public int GetIndex119(){ return 119; } public int GetIndex120(){ return 120; } public int GetIndex121(){ return 121; } public int GetIndex122(){ return 122; } public int GetIndex123(){ return 123; } public int GetIndex124(){ return 124; } public int GetIndex125(){ return 125; } public int GetIndex126(){ return 126; } public int GetIndex127(){ return 127; } public int GetIndex128(){ return 128; } public int GetIndex129(){ return 129; } public int GetIndex130(){ return 130; } public int GetIndex131(){ return 131; } public int GetIndex132(){ return 132; } public int GetIndex133(){ return 133; } public int GetIndex134(){ return 134; } public int GetIndex135(){ return 135; } public int GetIndex136(){ return 136; } public int GetIndex137(){ return 137; } public int GetIndex138(){ return 138; } public int GetIndex139(){ return 139; } public int GetIndex140(){ return 140; } public int GetIndex141(){ return 141; } public int GetIndex142(){ return 142; } public int GetIndex143(){ return 143; } public int GetIndex144(){ return 144; } public int GetIndex145(){ return 145; } public int GetIndex146(){ return 146; } public int GetIndex147(){ return 147; } public int GetIndex148(){ return 148; } public int GetIndex149(){ return 149; } public int GetIndex150(){ return 150; } public int GetIndex151(){ return 151; } public int GetIndex152(){ return 152; } public int GetIndex153(){ return 153; } public int GetIndex154(){ return 154; } public int GetIndex155(){ return 155; } public int GetIndex156(){ return 156; } public int GetIndex157(){ return 157; } public int GetIndex158(){ return 158; } public int GetIndex159(){ return 159; } public int GetIndex160(){ return 160; } public int GetIndex161(){ return 161; } public int GetIndex162(){ return 162; } public int GetIndex163(){ return 163; } public int GetIndex164(){ return 164; } public int GetIndex165(){ return 165; } public int GetIndex166(){ return 166; } public int GetIndex167(){ return 167; } public int GetIndex168(){ return 168; } public int GetIndex169(){ return 169; } public int GetIndex170(){ return 170; } public int GetIndex171(){ return 171; } public int GetIndex172(){ return 172; } public int GetIndex173(){ return 173; } public int GetIndex174(){ return 174; } public int GetIndex175(){ return 175; } public int GetIndex176(){ return 176; } public int GetIndex177(){ return 177; } public int GetIndex178(){ return 178; } public int GetIndex179(){ return 179; } public int GetIndex180(){ return 180; } public int GetIndex181(){ return 181; } public int GetIndex182(){ return 182; } public int GetIndex183(){ return 183; } public int GetIndex184(){ return 184; } public int GetIndex185(){ return 185; } public int GetIndex186(){ return 186; } public int GetIndex187(){ return 187; } public int GetIndex188(){ return 188; } public int GetIndex189(){ return 189; } public int GetIndex190(){ return 190; } public int GetIndex191(){ return 191; } public int GetIndex192(){ return 192; } public int GetIndex193(){ return 193; } public int GetIndex194(){ return 194; } public int GetIndex195(){ return 195; } public int GetIndex196(){ return 196; } public int GetIndex197(){ return 197; } public int GetIndex198(){ return 198; } public int GetIndex199(){ return 199; } public int GetIndex200(){ return 200; } public int GetIndex201(){ return 201; } public int GetIndex202(){ return 202; } public int GetIndex203(){ return 203; } public int GetIndex204(){ return 204; } public int GetIndex205(){ return 205; } public int GetIndex206(){ return 206; } public int GetIndex207(){ return 207; } public int GetIndex208(){ return 208; } public int GetIndex209(){ return 209; } public int GetIndex210(){ return 210; } public int GetIndex211(){ return 211; } public int GetIndex212(){ return 212; } public int GetIndex213(){ return 213; } public int GetIndex214(){ return 214; } public int GetIndex215(){ return 215; } public int GetIndex216(){ return 216; } public int GetIndex217(){ return 217; } public int GetIndex218(){ return 218; } public int GetIndex219(){ return 219; } public int GetIndex220(){ return 220; } public int GetIndex221(){ return 221; } public int GetIndex222(){ return 222; } public int GetIndex223(){ return 223; } public int GetIndex224(){ return 224; } public int GetIndex225(){ return 225; } public int GetIndex226(){ return 226; } public int GetIndex227(){ return 227; } public int GetIndex228(){ return 228; } public int GetIndex229(){ return 229; } public int GetIndex230(){ return 230; } public int GetIndex231(){ return 231; } public int GetIndex232(){ return 232; } public int GetIndex233(){ return 233; } public int GetIndex234(){ return 234; } public int GetIndex235(){ return 235; } public int GetIndex236(){ return 236; } public int GetIndex237(){ return 237; } public int GetIndex238(){ return 238; } public int GetIndex239(){ return 239; } public int GetIndex240(){ return 240; } public int GetIndex241(){ return 241; } public int GetIndex242(){ return 242; } public int GetIndex243(){ return 243; } public int GetIndex244(){ return 244; } public int GetIndex245(){ return 245; } public int GetIndex246(){ return 246; } public int GetIndex247(){ return 247; } public int GetIndex248(){ return 248; } public int GetIndex249(){ return 249; } public int GetIndex250(){ return 250; } public int GetIndex251(){ return 251; } public int GetIndex252(){ return 252; } public int GetIndex253(){ return 253; } public int GetIndex254(){ return 254; } public int GetIndex255(){ return 255; } public int GetIndex256(){ return 256; } public int GetIndex257(){ return 257; } public int GetIndex258(){ return 258; } public int GetIndex259(){ return 259; } public int GetIndex260(){ return 260; } public int GetIndex261(){ return 261; } public int GetIndex262(){ return 262; } public int GetIndex263(){ return 263; } public int GetIndex264(){ return 264; } public int GetIndex265(){ return 265; } public int GetIndex266(){ return 266; } public int GetIndex267(){ return 267; } public int GetIndex268(){ return 268; } public int GetIndex269(){ return 269; } public int GetIndex270(){ return 270; } public int GetIndex271(){ return 271; } public int GetIndex272(){ return 272; } public int GetIndex273(){ return 273; } public int GetIndex274(){ return 274; } public int GetIndex275(){ return 275; } public int GetIndex276(){ return 276; } public int GetIndex277(){ return 277; } public int GetIndex278(){ return 278; } public int GetIndex279(){ return 279; } public int GetIndex280(){ return 280; } public int GetIndex281(){ return 281; } public int GetIndex282(){ return 282; } public int GetIndex283(){ return 283; } public int GetIndex284(){ return 284; } public int GetIndex285(){ return 285; } public int GetIndex286(){ return 286; } public int GetIndex287(){ return 287; } public int GetIndex288(){ return 288; } public int GetIndex289(){ return 289; } public int GetIndex290(){ return 290; } public int GetIndex291(){ return 291; } public int GetIndex292(){ return 292; } public int GetIndex293(){ return 293; } public int GetIndex294(){ return 294; } public int GetIndex295(){ return 295; } public int GetIndex296(){ return 296; } public int GetIndex297(){ return 297; } public int GetIndex298(){ return 298; } public int GetIndex299(){ return 299; } public int GetIndex300(){ return 300; } public int GetIndex301(){ return 301; } public int GetIndex302(){ return 302; } public int GetIndex303(){ return 303; } public int GetIndex304(){ return 304; } public int GetIndex305(){ return 305; } public int GetIndex306(){ return 306; } public int GetIndex307(){ return 307; } public int GetIndex308(){ return 308; } public int GetIndex309(){ return 309; } public int GetIndex310(){ return 310; } public int GetIndex311(){ return 311; } public int GetIndex312(){ return 312; } public int GetIndex313(){ return 313; } public int GetIndex314(){ return 314; } public int GetIndex315(){ return 315; } public int GetIndex316(){ return 316; } public int GetIndex317(){ return 317; } public int GetIndex318(){ return 318; } public int GetIndex319(){ return 319; } public int GetIndex320(){ return 320; } public int GetIndex321(){ return 321; } public int GetIndex322(){ return 322; } public int GetIndex323(){ return 323; } public int GetIndex324(){ return 324; } public int GetIndex325(){ return 325; } public int GetIndex326(){ return 326; } public int GetIndex327(){ return 327; } public int GetIndex328(){ return 328; } public int GetIndex329(){ return 329; } public int GetIndex330(){ return 330; } public int GetIndex331(){ return 331; } public int GetIndex332(){ return 332; } public int GetIndex333(){ return 333; } public int GetIndex334(){ return 334; } public int GetIndex335(){ return 335; } public int GetIndex336(){ return 336; } public int GetIndex337(){ return 337; } public int GetIndex338(){ return 338; } public int GetIndex339(){ return 339; } public int GetIndex340(){ return 340; } public int GetIndex341(){ return 341; } public int GetIndex342(){ return 342; } public int GetIndex343(){ return 343; } public int GetIndex344(){ return 344; } public int GetIndex345(){ return 345; } public int GetIndex346(){ return 346; } public int GetIndex347(){ return 347; } public int GetIndex348(){ return 348; } public int GetIndex349(){ return 349; } public int GetIndex350(){ return 350; } public int GetIndex351(){ return 351; } public int GetIndex352(){ return 352; } public int GetIndex353(){ return 353; } public int GetIndex354(){ return 354; } public int GetIndex355(){ return 355; } public int GetIndex356(){ return 356; } public int GetIndex357(){ return 357; } public int GetIndex358(){ return 358; } public int GetIndex359(){ return 359; } public int GetIndex360(){ return 360; } public int GetIndex361(){ return 361; } public int GetIndex362(){ return 362; } public int GetIndex363(){ return 363; } public int GetIndex364(){ return 364; } public int GetIndex365(){ return 365; } public int GetIndex366(){ return 366; } public int GetIndex367(){ return 367; } public int GetIndex368(){ return 368; } public int GetIndex369(){ return 369; } public int GetIndex370(){ return 370; } public int GetIndex371(){ return 371; } public int GetIndex372(){ return 372; } public int GetIndex373(){ return 373; } public int GetIndex374(){ return 374; } public int GetIndex375(){ return 375; } public int GetIndex376(){ return 376; } public int GetIndex377(){ return 377; } public int GetIndex378(){ return 378; } public int GetIndex379(){ return 379; } public int GetIndex380(){ return 380; } public int GetIndex381(){ return 381; } public int GetIndex382(){ return 382; } public int GetIndex383(){ return 383; } public int GetIndex384(){ return 384; } public int GetIndex385(){ return 385; } public int GetIndex386(){ return 386; } public int GetIndex387(){ return 387; } public int GetIndex388(){ return 388; } public int GetIndex389(){ return 389; } public int GetIndex390(){ return 390; } public int GetIndex391(){ return 391; } public int GetIndex392(){ return 392; } public int GetIndex393(){ return 393; } public int GetIndex394(){ return 394; } public int GetIndex395(){ return 395; } public int GetIndex396(){ return 396; } public int GetIndex397(){ return 397; } public int GetIndex398(){ return 398; } public int GetIndex399(){ return 399; } public int GetIndex400(){ return 400; } public int GetIndex401(){ return 401; } public int GetIndex402(){ return 402; } public int GetIndex403(){ return 403; } public int GetIndex404(){ return 404; } public int GetIndex405(){ return 405; } public int GetIndex406(){ return 406; } public int GetIndex407(){ return 407; } public int GetIndex408(){ return 408; } public int GetIndex409(){ return 409; } public int GetIndex410(){ return 410; } public int GetIndex411(){ return 411; } public int GetIndex412(){ return 412; } public int GetIndex413(){ return 413; } public int GetIndex414(){ return 414; } public int GetIndex415(){ return 415; } public int GetIndex416(){ return 416; } public int GetIndex417(){ return 417; } public int GetIndex418(){ return 418; } public int GetIndex419(){ return 419; } public int GetIndex420(){ return 420; } public int GetIndex421(){ return 421; } public int GetIndex422(){ return 422; } public int GetIndex423(){ return 423; } public int GetIndex424(){ return 424; } public int GetIndex425(){ return 425; } public int GetIndex426(){ return 426; } public int GetIndex427(){ return 427; } public int GetIndex428(){ return 428; } public int GetIndex429(){ return 429; } public int GetIndex430(){ return 430; } public int GetIndex431(){ return 431; } public int GetIndex432(){ return 432; } public int GetIndex433(){ return 433; } public int GetIndex434(){ return 434; } public int GetIndex435(){ return 435; } public int GetIndex436(){ return 436; } public int GetIndex437(){ return 437; } public int GetIndex438(){ return 438; } public int GetIndex439(){ return 439; } public int GetIndex440(){ return 440; } public int GetIndex441(){ return 441; } public int GetIndex442(){ return 442; } public int GetIndex443(){ return 443; } public int GetIndex444(){ return 444; } public int GetIndex445(){ return 445; } public int GetIndex446(){ return 446; } public int GetIndex447(){ return 447; } public int GetIndex448(){ return 448; } public int GetIndex449(){ return 449; } public int GetIndex450(){ return 450; } public int GetIndex451(){ return 451; } public int GetIndex452(){ return 452; } public int GetIndex453(){ return 453; } public int GetIndex454(){ return 454; } public int GetIndex455(){ return 455; } public int GetIndex456(){ return 456; } public int GetIndex457(){ return 457; } public int GetIndex458(){ return 458; } public int GetIndex459(){ return 459; } public int GetIndex460(){ return 460; } public int GetIndex461(){ return 461; } public int GetIndex462(){ return 462; } public int GetIndex463(){ return 463; } public int GetIndex464(){ return 464; } public int GetIndex465(){ return 465; } public int GetIndex466(){ return 466; } public int GetIndex467(){ return 467; } public int GetIndex468(){ return 468; } public int GetIndex469(){ return 469; } public int GetIndex470(){ return 470; } public int GetIndex471(){ return 471; } public int GetIndex472(){ return 472; } public int GetIndex473(){ return 473; } public int GetIndex474(){ return 474; } public int GetIndex475(){ return 475; } public int GetIndex476(){ return 476; } public int GetIndex477(){ return 477; } public int GetIndex478(){ return 478; } public int GetIndex479(){ return 479; } public int GetIndex480(){ return 480; } public int GetIndex481(){ return 481; } public int GetIndex482(){ return 482; } public int GetIndex483(){ return 483; } public int GetIndex484(){ return 484; } public int GetIndex485(){ return 485; } public int GetIndex486(){ return 486; } public int GetIndex487(){ return 487; } public int GetIndex488(){ return 488; } public int GetIndex489(){ return 489; } public int GetIndex490(){ return 490; } public int GetIndex491(){ return 491; } public int GetIndex492(){ return 492; } public int GetIndex493(){ return 493; } public int GetIndex494(){ return 494; } public int GetIndex495(){ return 495; } public int GetIndex496(){ return 496; } public int GetIndex497(){ return 497; } public int GetIndex498(){ return 498; } public int GetIndex499(){ return 499; } public int GetIndex500(){ return 500; } public int GetIndex501(){ return 501; } public int GetIndex502(){ return 502; } public int GetIndex503(){ return 503; } public int GetIndex504(){ return 504; } public int GetIndex505(){ return 505; } public int GetIndex506(){ return 506; } public int GetIndex507(){ return 507; } public int GetIndex508(){ return 508; } public int GetIndex509(){ return 509; } public int GetIndex510(){ return 510; } public int GetIndex511(){ return 511; } public int GetIndex512(){ return 512; } public int GetIndex513(){ return 513; } public int GetIndex514(){ return 514; } public int GetIndex515(){ return 515; } public int GetIndex516(){ return 516; } public int GetIndex517(){ return 517; } public int GetIndex518(){ return 518; } public int GetIndex519(){ return 519; } public int GetIndex520(){ return 520; } public int GetIndex521(){ return 521; } public int GetIndex522(){ return 522; } public int GetIndex523(){ return 523; } public int GetIndex524(){ return 524; } public int GetIndex525(){ return 525; } public int GetIndex526(){ return 526; } public int GetIndex527(){ return 527; } public int GetIndex528(){ return 528; } public int GetIndex529(){ return 529; } public int GetIndex530(){ return 530; } public int GetIndex531(){ return 531; } public int GetIndex532(){ return 532; } public int GetIndex533(){ return 533; } public int GetIndex534(){ return 534; } public int GetIndex535(){ return 535; } public int GetIndex536(){ return 536; } public int GetIndex537(){ return 537; } public int GetIndex538(){ return 538; } public int GetIndex539(){ return 539; } public int GetIndex540(){ return 540; } public int GetIndex541(){ return 541; } public int GetIndex542(){ return 542; } public int GetIndex543(){ return 543; } public int GetIndex544(){ return 544; } public int GetIndex545(){ return 545; } public int GetIndex546(){ return 546; } public int GetIndex547(){ return 547; } public int GetIndex548(){ return 548; } public int GetIndex549(){ return 549; } public int GetIndex550(){ return 550; } public int GetIndex551(){ return 551; } public int GetIndex552(){ return 552; } public int GetIndex553(){ return 553; } public int GetIndex554(){ return 554; } public int GetIndex555(){ return 555; } public int GetIndex556(){ return 556; } public int GetIndex557(){ return 557; } public int GetIndex558(){ return 558; } public int GetIndex559(){ return 559; } public int GetIndex560(){ return 560; } public int GetIndex561(){ return 561; } public int GetIndex562(){ return 562; } public int GetIndex563(){ return 563; } public int GetIndex564(){ return 564; } public int GetIndex565(){ return 565; } public int GetIndex566(){ return 566; } public int GetIndex567(){ return 567; } public int GetIndex568(){ return 568; } public int GetIndex569(){ return 569; } public int GetIndex570(){ return 570; } public int GetIndex571(){ return 571; } public int GetIndex572(){ return 572; } public int GetIndex573(){ return 573; } public int GetIndex574(){ return 574; } public int GetIndex575(){ return 575; } public int GetIndex576(){ return 576; } public int GetIndex577(){ return 577; } public int GetIndex578(){ return 578; } public int GetIndex579(){ return 579; } public int GetIndex580(){ return 580; } public int GetIndex581(){ return 581; } public int GetIndex582(){ return 582; } public int GetIndex583(){ return 583; } public int GetIndex584(){ return 584; } public int GetIndex585(){ return 585; } public int GetIndex586(){ return 586; } public int GetIndex587(){ return 587; } public int GetIndex588(){ return 588; } public int GetIndex589(){ return 589; } public int GetIndex590(){ return 590; } public int GetIndex591(){ return 591; } public int GetIndex592(){ return 592; } public int GetIndex593(){ return 593; } public int GetIndex594(){ return 594; } public int GetIndex595(){ return 595; } public int GetIndex596(){ return 596; } public int GetIndex597(){ return 597; } public int GetIndex598(){ return 598; } public int GetIndex599(){ return 599; } public int GetIndex600(){ return 600; } public int GetIndex601(){ return 601; } public int GetIndex602(){ return 602; } public int GetIndex603(){ return 603; } public int GetIndex604(){ return 604; } public int GetIndex605(){ return 605; } public int GetIndex606(){ return 606; } public int GetIndex607(){ return 607; } public int GetIndex608(){ return 608; } public int GetIndex609(){ return 609; } public int GetIndex610(){ return 610; } public int GetIndex611(){ return 611; } public int GetIndex612(){ return 612; } public int GetIndex613(){ return 613; } public int GetIndex614(){ return 614; } public int GetIndex615(){ return 615; } public int GetIndex616(){ return 616; } public int GetIndex617(){ return 617; } public int GetIndex618(){ return 618; } public int GetIndex619(){ return 619; } public int GetIndex620(){ return 620; } public int GetIndex621(){ return 621; } public int GetIndex622(){ return 622; } public int GetIndex623(){ return 623; } public int GetIndex624(){ return 624; } public int GetIndex625(){ return 625; } public int GetIndex626(){ return 626; } public int GetIndex627(){ return 627; } public int GetIndex628(){ return 628; } public int GetIndex629(){ return 629; } public int GetIndex630(){ return 630; } public int GetIndex631(){ return 631; } public int GetIndex632(){ return 632; } public int GetIndex633(){ return 633; } public int GetIndex634(){ return 634; } public int GetIndex635(){ return 635; } public int GetIndex636(){ return 636; } public int GetIndex637(){ return 637; } public int GetIndex638(){ return 638; } public int GetIndex639(){ return 639; } public int GetIndex640(){ return 640; } public int GetIndex641(){ return 641; } public int GetIndex642(){ return 642; } public int GetIndex643(){ return 643; } public int GetIndex644(){ return 644; } public int GetIndex645(){ return 645; } public int GetIndex646(){ return 646; } public int GetIndex647(){ return 647; } public int GetIndex648(){ return 648; } public int GetIndex649(){ return 649; } public int GetIndex650(){ return 650; } public int GetIndex651(){ return 651; } public int GetIndex652(){ return 652; } public int GetIndex653(){ return 653; } public int GetIndex654(){ return 654; } public int GetIndex655(){ return 655; } public int GetIndex656(){ return 656; } public int GetIndex657(){ return 657; } public int GetIndex658(){ return 658; } public int GetIndex659(){ return 659; } public int GetIndex660(){ return 660; } public int GetIndex661(){ return 661; } public int GetIndex662(){ return 662; } public int GetIndex663(){ return 663; } public int GetIndex664(){ return 664; } public int GetIndex665(){ return 665; } public int GetIndex666(){ return 666; } public int GetIndex667(){ return 667; } public int GetIndex668(){ return 668; } public int GetIndex669(){ return 669; } public int GetIndex670(){ return 670; } public int GetIndex671(){ return 671; } public int GetIndex672(){ return 672; } public int GetIndex673(){ return 673; } public int GetIndex674(){ return 674; } public int GetIndex675(){ return 675; } public int GetIndex676(){ return 676; } public int GetIndex677(){ return 677; } public int GetIndex678(){ return 678; } public int GetIndex679(){ return 679; } public int GetIndex680(){ return 680; } public int GetIndex681(){ return 681; } public int GetIndex682(){ return 682; } public int GetIndex683(){ return 683; } public int GetIndex684(){ return 684; } public int GetIndex685(){ return 685; } public int GetIndex686(){ return 686; } public int GetIndex687(){ return 687; } public int GetIndex688(){ return 688; } public int GetIndex689(){ return 689; } public int GetIndex690(){ return 690; } public int GetIndex691(){ return 691; } public int GetIndex692(){ return 692; } public int GetIndex693(){ return 693; } public int GetIndex694(){ return 694; } public int GetIndex695(){ return 695; } public int GetIndex696(){ return 696; } public int GetIndex697(){ return 697; } public int GetIndex698(){ return 698; } public int GetIndex699(){ return 699; } public int GetIndex700(){ return 700; } public int GetIndex701(){ return 701; } public int GetIndex702(){ return 702; } public int GetIndex703(){ return 703; } public int GetIndex704(){ return 704; } public int GetIndex705(){ return 705; } public int GetIndex706(){ return 706; } public int GetIndex707(){ return 707; } public int GetIndex708(){ return 708; } public int GetIndex709(){ return 709; } public int GetIndex710(){ return 710; } public int GetIndex711(){ return 711; } public int GetIndex712(){ return 712; } public int GetIndex713(){ return 713; } public int GetIndex714(){ return 714; } public int GetIndex715(){ return 715; } public int GetIndex716(){ return 716; } public int GetIndex717(){ return 717; } public int GetIndex718(){ return 718; } public int GetIndex719(){ return 719; } public int GetIndex720(){ return 720; } public int GetIndex721(){ return 721; } public int GetIndex722(){ return 722; } public int GetIndex723(){ return 723; } public int GetIndex724(){ return 724; } public int GetIndex725(){ return 725; } public int GetIndex726(){ return 726; } public int GetIndex727(){ return 727; } public int GetIndex728(){ return 728; } public int GetIndex729(){ return 729; } public int GetIndex730(){ return 730; } public int GetIndex731(){ return 731; } public int GetIndex732(){ return 732; } public int GetIndex733(){ return 733; } public int GetIndex734(){ return 734; } public int GetIndex735(){ return 735; } public int GetIndex736(){ return 736; } public int GetIndex737(){ return 737; } public int GetIndex738(){ return 738; } public int GetIndex739(){ return 739; } public int GetIndex740(){ return 740; } public int GetIndex741(){ return 741; } public int GetIndex742(){ return 742; } public int GetIndex743(){ return 743; } public int GetIndex744(){ return 744; } public int GetIndex745(){ return 745; } public int GetIndex746(){ return 746; } public int GetIndex747(){ return 747; } public int GetIndex748(){ return 748; } public int GetIndex749(){ return 749; } public int GetIndex750(){ return 750; } public int GetIndex751(){ return 751; } public int GetIndex752(){ return 752; } public int GetIndex753(){ return 753; } public int GetIndex754(){ return 754; } public int GetIndex755(){ return 755; } public int GetIndex756(){ return 756; } public int GetIndex757(){ return 757; } public int GetIndex758(){ return 758; } public int GetIndex759(){ return 759; } public int GetIndex760(){ return 760; } public int GetIndex761(){ return 761; } public int GetIndex762(){ return 762; } public int GetIndex763(){ return 763; } public int GetIndex764(){ return 764; } public int GetIndex765(){ return 765; } public int GetIndex766(){ return 766; } public int GetIndex767(){ return 767; } public int GetIndex768(){ return 768; } public int GetIndex769(){ return 769; } public int GetIndex770(){ return 770; } public int GetIndex771(){ return 771; } public int GetIndex772(){ return 772; } public int GetIndex773(){ return 773; } public int GetIndex774(){ return 774; } public int GetIndex775(){ return 775; } public int GetIndex776(){ return 776; } public int GetIndex777(){ return 777; } public int GetIndex778(){ return 778; } public int GetIndex779(){ return 779; } public int GetIndex780(){ return 780; } public int GetIndex781(){ return 781; } public int GetIndex782(){ return 782; } public int GetIndex783(){ return 783; } public int GetIndex784(){ return 784; } public int GetIndex785(){ return 785; } public int GetIndex786(){ return 786; } public int GetIndex787(){ return 787; } public int GetIndex788(){ return 788; } public int GetIndex789(){ return 789; } public int GetIndex790(){ return 790; } public int GetIndex791(){ return 791; } public int GetIndex792(){ return 792; } public int GetIndex793(){ return 793; } public int GetIndex794(){ return 794; } public int GetIndex795(){ return 795; } public int GetIndex796(){ return 796; } public int GetIndex797(){ return 797; } public int GetIndex798(){ return 798; } public int GetIndex799(){ return 799; } public int GetIndex800(){ return 800; } public int GetIndex801(){ return 801; } public int GetIndex802(){ return 802; } public int GetIndex803(){ return 803; } public int GetIndex804(){ return 804; } public int GetIndex805(){ return 805; } public int GetIndex806(){ return 806; } public int GetIndex807(){ return 807; } public int GetIndex808(){ return 808; } public int GetIndex809(){ return 809; } public int GetIndex810(){ return 810; } public int GetIndex811(){ return 811; } public int GetIndex812(){ return 812; } public int GetIndex813(){ return 813; } public int GetIndex814(){ return 814; } public int GetIndex815(){ return 815; } public int GetIndex816(){ return 816; } public int GetIndex817(){ return 817; } public int GetIndex818(){ return 818; } public int GetIndex819(){ return 819; } public int GetIndex820(){ return 820; } public int GetIndex821(){ return 821; } public int GetIndex822(){ return 822; } public int GetIndex823(){ return 823; } public int GetIndex824(){ return 824; } public int GetIndex825(){ return 825; } public int GetIndex826(){ return 826; } public int GetIndex827(){ return 827; } public int GetIndex828(){ return 828; } public int GetIndex829(){ return 829; } public int GetIndex830(){ return 830; } public int GetIndex831(){ return 831; } public int GetIndex832(){ return 832; } public int GetIndex833(){ return 833; } public int GetIndex834(){ return 834; } public int GetIndex835(){ return 835; } public int GetIndex836(){ return 836; } public int GetIndex837(){ return 837; } public int GetIndex838(){ return 838; } public int GetIndex839(){ return 839; } public int GetIndex840(){ return 840; } public int GetIndex841(){ return 841; } public int GetIndex842(){ return 842; } public int GetIndex843(){ return 843; } public int GetIndex844(){ return 844; } public int GetIndex845(){ return 845; } public int GetIndex846(){ return 846; } public int GetIndex847(){ return 847; } public int GetIndex848(){ return 848; } public int GetIndex849(){ return 849; } public int GetIndex850(){ return 850; } public int GetIndex851(){ return 851; } public int GetIndex852(){ return 852; } public int GetIndex853(){ return 853; } public int GetIndex854(){ return 854; } public int GetIndex855(){ return 855; } public int GetIndex856(){ return 856; } public int GetIndex857(){ return 857; } public int GetIndex858(){ return 858; } public int GetIndex859(){ return 859; } public int GetIndex860(){ return 860; } public int GetIndex861(){ return 861; } public int GetIndex862(){ return 862; } public int GetIndex863(){ return 863; } public int GetIndex864(){ return 864; } public int GetIndex865(){ return 865; } public int GetIndex866(){ return 866; } public int GetIndex867(){ return 867; } public int GetIndex868(){ return 868; } public int GetIndex869(){ return 869; } public int GetIndex870(){ return 870; } public int GetIndex871(){ return 871; } public int GetIndex872(){ return 872; } public int GetIndex873(){ return 873; } public int GetIndex874(){ return 874; } public int GetIndex875(){ return 875; } public int GetIndex876(){ return 876; } public int GetIndex877(){ return 877; } public int GetIndex878(){ return 878; } public int GetIndex879(){ return 879; } public int GetIndex880(){ return 880; } public int GetIndex881(){ return 881; } public int GetIndex882(){ return 882; } public int GetIndex883(){ return 883; } public int GetIndex884(){ return 884; } public int GetIndex885(){ return 885; } public int GetIndex886(){ return 886; } public int GetIndex887(){ return 887; } public int GetIndex888(){ return 888; } public int GetIndex889(){ return 889; } public int GetIndex890(){ return 890; } public int GetIndex891(){ return 891; } public int GetIndex892(){ return 892; } public int GetIndex893(){ return 893; } public int GetIndex894(){ return 894; } public int GetIndex895(){ return 895; } public int GetIndex896(){ return 896; } public int GetIndex897(){ return 897; } public int GetIndex898(){ return 898; } public int GetIndex899(){ return 899; } public int GetIndex900(){ return 900; } public int GetIndex901(){ return 901; } public int GetIndex902(){ return 902; } public int GetIndex903(){ return 903; } public int GetIndex904(){ return 904; } public int GetIndex905(){ return 905; } public int GetIndex906(){ return 906; } public int GetIndex907(){ return 907; } public int GetIndex908(){ return 908; } public int GetIndex909(){ return 909; } public int GetIndex910(){ return 910; } public int GetIndex911(){ return 911; } public int GetIndex912(){ return 912; } public int GetIndex913(){ return 913; } public int GetIndex914(){ return 914; } public int GetIndex915(){ return 915; } public int GetIndex916(){ return 916; } public int GetIndex917(){ return 917; } public int GetIndex918(){ return 918; } public int GetIndex919(){ return 919; } public int GetIndex920(){ return 920; } public int GetIndex921(){ return 921; } public int GetIndex922(){ return 922; } public int GetIndex923(){ return 923; } public int GetIndex924(){ return 924; } public int GetIndex925(){ return 925; } public int GetIndex926(){ return 926; } public int GetIndex927(){ return 927; } public int GetIndex928(){ return 928; } public int GetIndex929(){ return 929; } public int GetIndex930(){ return 930; } public int GetIndex931(){ return 931; } public int GetIndex932(){ return 932; } public int GetIndex933(){ return 933; } public int GetIndex934(){ return 934; } public int GetIndex935(){ return 935; } public int GetIndex936(){ return 936; } public int GetIndex937(){ return 937; } public int GetIndex938(){ return 938; } public int GetIndex939(){ return 939; } public int GetIndex940(){ return 940; } public int GetIndex941(){ return 941; } public int GetIndex942(){ return 942; } public int GetIndex943(){ return 943; } public int GetIndex944(){ return 944; } public int GetIndex945(){ return 945; } public int GetIndex946(){ return 946; } public int GetIndex947(){ return 947; } public int GetIndex948(){ return 948; } public int GetIndex949(){ return 949; } public int GetIndex950(){ return 950; } public int GetIndex951(){ return 951; } public int GetIndex952(){ return 952; } public int GetIndex953(){ return 953; } public int GetIndex954(){ return 954; } public int GetIndex955(){ return 955; } public int GetIndex956(){ return 956; } public int GetIndex957(){ return 957; } public int GetIndex958(){ return 958; } public int GetIndex959(){ return 959; } public int GetIndex960(){ return 960; } public int GetIndex961(){ return 961; } public int GetIndex962(){ return 962; } public int GetIndex963(){ return 963; } public int GetIndex964(){ return 964; } public int GetIndex965(){ return 965; } public int GetIndex966(){ return 966; } public int GetIndex967(){ return 967; } public int GetIndex968(){ return 968; } public int GetIndex969(){ return 969; } public int GetIndex970(){ return 970; } public int GetIndex971(){ return 971; } public int GetIndex972(){ return 972; } public int GetIndex973(){ return 973; } public int GetIndex974(){ return 974; } public int GetIndex975(){ return 975; } public int GetIndex976(){ return 976; } public int GetIndex977(){ return 977; } public int GetIndex978(){ return 978; } public int GetIndex979(){ return 979; } public int GetIndex980(){ return 980; } public int GetIndex981(){ return 981; } public int GetIndex982(){ return 982; } public int GetIndex983(){ return 983; } public int GetIndex984(){ return 984; } public int GetIndex985(){ return 985; } public int GetIndex986(){ return 986; } public int GetIndex987(){ return 987; } public int GetIndex988(){ return 988; } public int GetIndex989(){ return 989; } public int GetIndex990(){ return 990; } public int GetIndex991(){ return 991; } public int GetIndex992(){ return 992; } public int GetIndex993(){ return 993; } public int GetIndex994(){ return 994; } public int GetIndex995(){ return 995; } public int GetIndex996(){ return 996; } public int GetIndex997(){ return 997; } public int GetIndex998(){ return 998; } public int GetIndex999(){ return 999; } }
40.548515
44
0.705694
[ "MIT" ]
mao-test-h/SamplePackage
Runtime/Generated/Hoge704.generated.cs
40,954
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Configuration { // Represents an update to a configuration section, either in its // declaration or its definition. internal abstract class Update { internal Update(string configKey, bool moved, string updatedXml) { ConfigKey = configKey; Moved = moved; UpdatedXml = updatedXml; } internal string ConfigKey { get; } internal bool Moved { get; } internal string UpdatedXml { get; } internal bool Retrieved { get; set; } } }
29.192308
72
0.646904
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Update.cs
759
C#
namespace ObsInterop; public partial struct gs_sampler_info { [NativeTypeName("enum gs_sample_filter")] public gs_sample_filter filter; [NativeTypeName("enum gs_address_mode")] public gs_address_mode address_u; [NativeTypeName("enum gs_address_mode")] public gs_address_mode address_v; [NativeTypeName("enum gs_address_mode")] public gs_address_mode address_w; public int max_anisotropy; [NativeTypeName("uint32_t")] public uint border_color; }
22.5
45
0.749495
[ "MIT" ]
kostya9/NetObsBindings
NetObsBindings/ObsInterop/gs_sampler_info.cs
495
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Xml.Linq; using Apollo.External.SyndicationToolbox; using Apollo.Services; using Apollo.Utilities; using Feed = Apollo.Data.Feed; namespace Apollo.External { public interface IExternalFeedService { Task<FeedDetails> GetFeedDetails(string url); Task<IReadOnlyList<ExternalFeedItem>> GetItems(Feed feed); } public interface IFeedReader { Task<FeedDetails> GetFeedDetails(string content); Task<IReadOnlyList<ExternalFeedItem>> GetItems(string content); } public class ExternalFeedService : IExternalFeedService { private readonly IUrlFetcher urlFetcher; public ExternalFeedService(IUrlFetcher urlFetcher) { this.urlFetcher = urlFetcher; } public async Task<FeedDetails> GetFeedDetails(string url) { var content = await urlFetcher.Get(url); var feedParser = FeedParser.Create(content); var parsed = feedParser.Parse(); return new FeedDetails { Name = parsed.Name }; } public async Task<IReadOnlyList<ExternalFeedItem>> GetItems(Feed feed) { try { var content = await urlFetcher.Get(feed.url); var feedParser = FeedParser.Create(content); var parsed = feedParser.Parse(); return parsed.Articles.Select(a => new ExternalFeedItem { Title = a.Title, Content = a.Content, Link = a.WebUri, PublishDate = a.Published }).ToList(); } catch (Exception exception) { Logger.Error("Error attempting to fetch feed items", new {feed, exception.Message}); return null; } } } public class FeedDetails { public string Name { get; set; } } public class ExternalFeedItem { public string Content { get; set; } public string Link { get; set; } public DateTime PublishDate { get; set; } public string Title { get; set; } } public class FeedException : Exception { public FeedException(string message) : base(message) { } } }
27.494382
100
0.575398
[ "MIT" ]
charlesj/Apollo
server/Apollo/External/ExternalFeedService.cs
2,449
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Nsxt.Inputs { public sealed class DHCPServerIPPoolDhcpOption121GetArgs : Pulumi.ResourceArgs { [Input("network", required: true)] public Input<string> Network { get; set; } = null!; [Input("nextHop", required: true)] public Input<string> NextHop { get; set; } = null!; public DHCPServerIPPoolDhcpOption121GetArgs() { } } }
27.923077
88
0.676309
[ "ECL-2.0", "Apache-2.0" ]
nvpnathan/pulumi-nsxt
sdk/dotnet/Inputs/DHCPServerIPPoolDhcpOption121GetArgs.cs
726
C#
using System; using SkiaSharp; using SkiaSharp.Views.Tizen; using Xamarin.Forms.Platform.Tizen.Native; namespace Xamarin.Forms.Platform.Tizen.SkiaSharp { public class ShapeView : Canvas, IMeasurable { SKCanvasView _skCanvasView; SKPath _skPath; SKPaint _skPaint; SKRect _drawableBounds; SKRect _pathFillBounds; SKRect _pathStrokeBounds; SKMatrix _transform; Brush _stroke; Brush _fill; Stretch _stretch; float _strokeWidth; float[] _strokeDash; float _strokeDashOffset; public ShapeView() : base(Forms.NativeParent) { _skPaint = new SKPaint(); _skPaint.IsAntialias = true; _skCanvasView = new SKCanvasView(Forms.NativeParent); _skCanvasView.PaintSurface += OnPaintSurface; _skCanvasView.Show(); Children.Add(_skCanvasView); LayoutUpdated += OnLayoutUpdated; _pathFillBounds = new SKRect(); _pathStrokeBounds = new SKRect(); _stretch = Stretch.None; } public SKCanvasView SKCanvasView => _skCanvasView; void OnPaintSurface(object sender, SKPaintSurfaceEventArgs e) { var canvas = e.Surface.Canvas; _drawableBounds = e.Info.Rect; canvas.Clear(); if (_skPath == null) return; SKMatrix transformMatrix = CreateMatrix(); SKPath transformedSkPath = new SKPath(); _skPath.Transform(transformMatrix, transformedSkPath); SKRect fillBounds = transformMatrix.MapRect(_pathFillBounds); SKRect strokeBounds; using (SKPath strokePath = new SKPath()) { _skPaint.GetFillPath(transformedSkPath, strokePath); strokeBounds = strokePath.Bounds; } if (_fill != null) { _skPaint.Style = SKPaintStyle.Fill; if (_fill is GradientBrush fillGradientBrush) { _skPaint.Shader = fillGradientBrush.CreateShader(fillBounds); } else if (_fill is SolidColorBrush fillSolidColorBrush) { _skPaint.Color = fillSolidColorBrush.ToSolidColor(); } canvas.DrawPath(transformedSkPath, _skPaint); _skPaint.Shader = null; } if (_stroke != null) { _skPaint.Style = SKPaintStyle.Stroke; if (_stroke is GradientBrush strokeGradientBrush) { UpdatePathStrokeBounds(); _skPaint.Shader = strokeGradientBrush.CreateShader(strokeBounds); } else if (_stroke is SolidColorBrush strokeSolidColorBrush) { _skPaint.Color = strokeSolidColorBrush.ToSolidColor(); } canvas.DrawPath(transformedSkPath, _skPaint); _skPaint.Shader = null; } } void OnLayoutUpdated(object sender, LayoutEventArgs e) { _skCanvasView.Geometry = Geometry; } public void UpdateShape(SKPath sKPath) { _skPath = sKPath; UpdatePathShape(); } public void UpdateShapeTransform(SKMatrix matrix) { _transform = matrix; _skPath.Transform(_transform); _skCanvasView.Invalidate(); } public void UpdateAspect(Stretch stretch) { _stretch = stretch; _skCanvasView.Invalidate(); } public void UpdateFill(Brush fill) { _fill = fill; _skCanvasView.Invalidate(); } public void UpdateStroke(Brush stroke) { _stroke = stroke; _skCanvasView.Invalidate(); } public void UpdateStrokeThickness(double strokeWidth) { _strokeWidth = Forms.ConvertToScaledPixel(strokeWidth); _skPaint.StrokeWidth = _strokeWidth; UpdateStrokeDash(); } public void UpdateStrokeDashArray(float[] dash) { _strokeDash = dash; UpdateStrokeDash(); } public void UpdateStrokeDashOffset(float strokeDashOffset) { _strokeDashOffset = strokeDashOffset; UpdateStrokeDash(); } public void UpdateStrokeDash() { if (_strokeDash != null && _strokeDash.Length > 1) { float[] strokeDash = new float[_strokeDash.Length]; for (int i = 0; i < _strokeDash.Length; i++) strokeDash[i] = _strokeDash[i] * _strokeWidth; _skPaint.PathEffect = SKPathEffect.CreateDash(strokeDash, _strokeDashOffset * _strokeWidth); } else { _skPaint.PathEffect = null; } UpdatePathStrokeBounds(); } public void UpdateStrokeLineCap(SKStrokeCap strokeCap) { _skPaint.StrokeCap = strokeCap; UpdatePathStrokeBounds(); } public void UpdateStrokeLineJoin(SKStrokeJoin strokeJoin) { _skPaint.StrokeJoin = strokeJoin; _skCanvasView.Invalidate(); } public void UpdateStrokeMiterLimit(float strokeMiterLimit) { _skPaint.StrokeMiter = strokeMiterLimit * 2; UpdatePathStrokeBounds(); } protected void UpdatePathShape() { if (_skPath != null) { using (SKPath fillPath = new SKPath()) { _skPaint.StrokeWidth = 0.01f; _skPaint.Style = SKPaintStyle.Stroke; _skPaint.GetFillPath(_skPath, fillPath); _pathFillBounds = fillPath.Bounds; _skPaint.StrokeWidth = _strokeWidth; } } else { _pathFillBounds = SKRect.Empty; } UpdatePathStrokeBounds(); } SKMatrix CreateMatrix() { SKMatrix matrix = SKMatrix.CreateIdentity(); SKRect drawableBounds = _drawableBounds; float halfStrokeWidth = _skPaint.StrokeWidth / 2; drawableBounds.Left += halfStrokeWidth; drawableBounds.Top += halfStrokeWidth; drawableBounds.Right -= halfStrokeWidth; drawableBounds.Bottom -= halfStrokeWidth; float widthScale = drawableBounds.Width / _pathFillBounds.Width; float heightScale = drawableBounds.Height / _pathFillBounds.Height; switch (_stretch) { case Stretch.None: drawableBounds = _drawableBounds; float adjustX = Math.Min(0, _pathStrokeBounds.Left); float adjustY = Math.Min(0, _pathStrokeBounds.Top); if (adjustX < 0 || adjustY < 0) { matrix = SKMatrix.CreateTranslation(-adjustX, -adjustY); } break; case Stretch.Fill: matrix = SKMatrix.CreateScale(widthScale, heightScale); matrix = matrix.PostConcat( SKMatrix.CreateTranslation(drawableBounds.Left - widthScale * _pathFillBounds.Left, drawableBounds.Top - heightScale * _pathFillBounds.Top)); break; case Stretch.Uniform: float minScale = Math.Min(widthScale, heightScale); matrix = SKMatrix.CreateScale(minScale, minScale); matrix = matrix.PostConcat( SKMatrix.CreateTranslation(drawableBounds.Left - (minScale * _pathFillBounds.Left) + (drawableBounds.Width - (minScale * _pathFillBounds.Width)) / 2, drawableBounds.Top - (minScale * _pathFillBounds.Top) + (drawableBounds.Height - (minScale * _pathFillBounds.Height)) / 2)); break; case Stretch.UniformToFill: float maxScale = Math.Max(widthScale, heightScale); matrix = SKMatrix.CreateScale(maxScale, maxScale); matrix = matrix.PostConcat( SKMatrix.CreateTranslation(drawableBounds.Left - (maxScale * _pathFillBounds.Left), drawableBounds.Top - (maxScale * _pathFillBounds.Top))); break; } return matrix; } void UpdatePathStrokeBounds() { if (_skPath != null) { using (SKPath strokePath = new SKPath()) { _skPaint.Style = SKPaintStyle.Stroke; _skPaint.GetFillPath(_skPath, strokePath); _pathStrokeBounds = strokePath.Bounds; } } else { _pathStrokeBounds = SKRect.Empty; } _skCanvasView.Invalidate(); } public ElmSharp.Size Measure(int availableWidth, int availableHeight) { if (_skPath != null) { return new ElmSharp.Size((int)Math.Max(_pathStrokeBounds.Right - Math.Min(0, _pathStrokeBounds.Left), _strokeWidth), (int)Math.Max(_pathStrokeBounds.Bottom - Math.Min(0, _pathStrokeBounds.Top), _strokeWidth)); } return new ElmSharp.Size(MinimumWidth, MinimumHeight); } } }
25.71134
155
0.706629
[ "MIT" ]
AlleSchonWeg/Xamarin.Forms
Xamarin.Forms.Platform.Tizen/Shapes/ShapeView.cs
7,484
C#
using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace Uwp.App.Pages { public sealed partial class HomePage : Page { public HomePage() { InitializeComponent(); } protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); ImageView.LoadImages(); JournalView.LoadDataGrid(); } internal void ShowTeachingTips() => HelperView.ShowTeachingTips(GaugeView.TeachingTipTarget, JournalView.TeachingTipTarget); private void ImageView_ImageUpdated(object sender, Controls.ImageUpdatedEventArgs args) { BlurredBackground.UpdateImage(args.ImageSource); } } }
25.433333
100
0.636959
[ "MIT" ]
DinoChan/InsiderDevTourDemos19
Sessions/ui/Uwp.App/Uwp.App/Pages/HomePage.xaml.cs
765
C#
using DevExpress.Mvvm; using System; using System.IO; using TagLib; namespace ID3_Tag_Editor.Models { public class MusicFileTag : BindableBase { #region Properties // File Details private string _filePath; private string _fileName; private string _fileSize; // V1 private bool _enabledV1; private string _artistV1; private string _albumV1; private string _genreV1; private string _yearV1; private string _titleV1; private string _commentV1; private string _trackV1; // V2 private bool _enabledV2; private bool _isVersion4EnabledV2; private string _versionV2; private string _titleV2; private string _albumV2; private string _genreV2; private string _artistV2; private string _languageV2; private string _playListDelayV2; private string _trackNumberV2; private string _albumSortV2; private string _interpretedV2; private string _moodV2; private string _partOfSetV2; private string _contentDescriptionV2; private string _setSubtitleV2; private string _keyV2; private string _bPMV2; private string _titleSortV2; private string _subtitleV2; #endregion #region File Details Getter and Setter public string FilePath { get { return _filePath; } set { SetProperty(ref _filePath, value, () => FilePath); } } public string FileName { get { return _fileName; } set { SetProperty(ref _fileName, value, () => FileName); } } public string FileSize { get { return _fileSize; } set { SetProperty(ref _fileSize, value, () => FileSize); } } #endregion #region V1 Getter and Setter public bool EnabledV1 { get { return _enabledV1; } set { SetProperty(ref _enabledV1, value, () => EnabledV1); } } public string TrackV1 { get { return _trackV1; } set { SetProperty(ref _trackV1, value, () => TrackV1); } } public string ArtistV1 { get { return _artistV1; } set { SetProperty(ref _artistV1, value, () => ArtistV1); } } public string TitleV1 { get { return _titleV1; } set { SetProperty(ref _titleV1, value, () => TitleV1); } } public string AlbumV1 { get { return _albumV1; } set { SetProperty(ref _albumV1, value, () => AlbumV1); } } public string GenreV1 { get { return _genreV1; } set { SetProperty(ref _genreV1, value, () => GenreV1); } } public string YearV1 { get { return _yearV1; } set { SetProperty(ref _yearV1, value, () => YearV1); } } public string CommentV1 { get { return _commentV1; } set { SetProperty(ref _commentV1, value, () => CommentV1); } } #endregion #region V2 Getter and Setter public bool EnabledV2 { get { return _enabledV2; } set { SetProperty(ref _enabledV2, value, () => EnabledV2); } } public bool IsVersion4EnabledV2 { get { return _isVersion4EnabledV2; } set { SetProperty(ref _isVersion4EnabledV2, value, () => IsVersion4EnabledV2); } } public string VersionV2 { get { return _versionV2; } set { SetProperty(ref _versionV2, value, () => VersionV2); if (_versionV2 == "4") { IsVersion4EnabledV2 = true; } else { IsVersion4EnabledV2 = false; } } } public string PlayListDelayV2 { get { return _playListDelayV2; } set { SetProperty(ref _playListDelayV2, value, () => PlayListDelayV2); } } public string TrackNumberV2 { get { return _trackNumberV2; } set { SetProperty(ref _trackNumberV2, value, () => TrackNumberV2); } } public string PartOfSetV2 { get { return _partOfSetV2; } set { SetProperty(ref _partOfSetV2, value, () => PartOfSetV2); } } public string BPMV2 { get { return _bPMV2; } set { SetProperty(ref _bPMV2, value, () => BPMV2); } } public string ArtistV2 { get { return _artistV2; } set { SetProperty(ref _artistV2, value, () => ArtistV2); } } public string GenreV2 { get { return _genreV2; } set { SetProperty(ref _genreV2, value, () => GenreV2); } } public string LanguageV2 { get { return _languageV2; } set { SetProperty(ref _languageV2, value, () => LanguageV2); } } public string KeyV2 { get { return _keyV2; } set { SetProperty(ref _keyV2, value, () => KeyV2); } } public string SetSubtitleV2 { get { return _setSubtitleV2; } set { SetProperty(ref _setSubtitleV2, value, () => SetSubtitleV2); } } public string ContentDescriptionV2 { get { return _contentDescriptionV2; } set { SetProperty(ref _contentDescriptionV2, value, () => ContentDescriptionV2); } } public string MoodV2 { get { return _moodV2; } set { SetProperty(ref _moodV2, value, () => MoodV2); } } public string InterpretedV2 { get { return _interpretedV2; } set { SetProperty(ref _interpretedV2, value, () => InterpretedV2); } } public string AlbumSortV2 { get { return _albumSortV2; } set { SetProperty(ref _albumSortV2, value, () => AlbumSortV2); } } public string AlbumV2 { get { return _albumV2; } set { SetProperty(ref _albumV2, value, () => AlbumV2); } } public string SubtitleV2 { get { return _subtitleV2; } set { SetProperty(ref _subtitleV2, value, () => SubtitleV2); } } public string TitleSortV2 { get { return _titleSortV2; } set { SetProperty(ref _titleSortV2, value, () => TitleSortV2); } } public string TitleV2 { get { return _titleV2; } set { SetProperty(ref _titleV2, value, () => TitleV2); } } #endregion public static MusicFileTag ConvertTagToMusicFileTag(TagLib.Id3v1.Tag tagV1, TagLib.Id3v2.Tag tagV2, string filePath) { var tmp = new MusicFileTag { // File Details FilePath = filePath, FileName = Path.GetFileName(filePath), FileSize = Logic.BasicFunctions.FormatFileSize(new FileInfo(filePath).Length), }; // TagTypes TagTypes myTagTypes = TagLib.File.Create(filePath).TagTypesOnDisk; tmp.EnabledV1 = myTagTypes.ToString().ToLower().Contains("id3v1") ? true : false; tmp.EnabledV2 = myTagTypes.ToString().ToLower().Contains("id3v2") ? true : false; // V1 if (tmp.EnabledV1) { tmp.ArtistV1 = tagV1.FirstPerformer == null ? "" : tagV1.FirstPerformer.Replace("�", string.Empty); tmp.AlbumV1 = tagV1.Album == null ? "" : tagV1.Album.Replace("�", string.Empty); tmp.GenreV1 = tagV1.FirstGenre == null ? "" : tagV1.FirstGenre.Replace("�", string.Empty); tmp.YearV1 = tagV1.Year.ToString() == null ? "" : tagV1.Year.ToString().Replace("�", string.Empty); tmp.TitleV1 = tagV1.Title == null ? "" : tagV1.Title.Replace("�", string.Empty); tmp.CommentV1 = tagV1.Comment == null ? "" : tagV1.Comment.Replace("�", string.Empty); tmp.TrackV1 = tagV1.Track.ToString() == null ? "" : tagV1.Track.ToString().Replace("�", string.Empty); } // V2 if (tmp.EnabledV2) { tmp.VersionV2 = tagV2.Version.ToString(); // Version 3 tmp.PlayListDelayV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TDLY").Replace("�", string.Empty); tmp.TrackNumberV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TRCK").Replace("�", string.Empty); tmp.PartOfSetV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TPOS").Replace("�", string.Empty); tmp.BPMV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TBPM").Replace("�", string.Empty); tmp.ArtistV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TPE1").Replace("�", string.Empty); tmp.GenreV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TCON").Replace("�", string.Empty); tmp.LanguageV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TLAN").Replace("�", string.Empty); tmp.KeyV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TKEY").Replace("�", string.Empty); tmp.SetSubtitleV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TSST").Replace("�", string.Empty); tmp.ContentDescriptionV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TIT1").Replace("�", string.Empty); tmp.InterpretedV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TPE4").Replace("�", string.Empty); tmp.AlbumV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TALB").Replace("�", string.Empty); tmp.TitleV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TIT2").Replace("�", string.Empty); /// Frames from /// http://id3.org/id3v2.3.0#Declared_ID3v2_frames // + Version 4 if (tagV2.Version == 4) { tmp.TitleSortV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TSOT").Replace("�", string.Empty); tmp.AlbumSortV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TSOA").Replace("�", string.Empty); tmp.MoodV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TMOO").Replace("�", string.Empty); tmp.SubtitleV2 = Logic.TaggingLogic.GetTagContent(tagV2, "TIT3").Replace("�", string.Empty); } } else { tmp.VersionV2 = "4"; } return tmp; } public static TagLib.File ConvertMusicFileTagToTag(MusicFileTag musicTag) { TagLib.File tagInfo = TagLib.File.Create(musicTag.FilePath); // V1 if (!musicTag.EnabledV1) { tagInfo.RemoveTags(TagTypes.Id3v1); } else { tagInfo.GetTag(TagTypes.Id3v1).Performers = new string[] { musicTag.ArtistV1 ?? "" }; tagInfo.GetTag(TagTypes.Id3v1).Genres = new string[] { musicTag.GenreV1 ?? "" }; tagInfo.GetTag(TagTypes.Id3v1).Album = musicTag.AlbumV1 ?? ""; tagInfo.GetTag(TagTypes.Id3v1).Title = musicTag.TitleV1 ?? ""; tagInfo.GetTag(TagTypes.Id3v1).Comment = musicTag.CommentV1 ?? ""; int.TryParse(musicTag.YearV1, out int tmpYearV1); if (tmpYearV1 > 0) { tagInfo.GetTag(TagTypes.Id3v1).Year = (uint)tmpYearV1; } int.TryParse(musicTag.TrackV1, out int tmpTrackV1); if (tmpTrackV1 > 0) { tagInfo.GetTag(TagTypes.Id3v1).Track = (uint)tmpTrackV1; } } // V2 if (!musicTag.EnabledV2) { tagInfo.RemoveTags(TagTypes.Id3v2); } else { TagLib.Id3v2.Tag id3v2Tag = tagInfo.GetTag(TagTypes.Id3v2) as TagLib.Id3v2.Tag; id3v2Tag.Version = Convert.ToByte(musicTag.VersionV2); id3v2Tag.SetTextFrame("TDLY", musicTag.PlayListDelayV2); id3v2Tag.SetTextFrame("TRCK", musicTag.TrackNumberV2); id3v2Tag.SetTextFrame("TPOS", musicTag.PartOfSetV2); id3v2Tag.SetTextFrame("TBPM", musicTag.BPMV2); id3v2Tag.SetTextFrame("TPE1", musicTag.ArtistV2); id3v2Tag.SetTextFrame("TCON", musicTag.GenreV2); id3v2Tag.SetTextFrame("TLAN", musicTag.LanguageV2); id3v2Tag.SetTextFrame("TKEY", musicTag.KeyV2); id3v2Tag.SetTextFrame("TSST", musicTag.SetSubtitleV2); id3v2Tag.SetTextFrame("TIT1", musicTag.ContentDescriptionV2); id3v2Tag.SetTextFrame("TMOO", musicTag.MoodV2); id3v2Tag.SetTextFrame("TPE4", musicTag.InterpretedV2); id3v2Tag.SetTextFrame("TSOA", musicTag.AlbumSortV2); id3v2Tag.SetTextFrame("TALB", musicTag.AlbumV2); id3v2Tag.SetTextFrame("TIT3", musicTag.SubtitleV2); id3v2Tag.SetTextFrame("TSOT", musicTag.TitleSortV2); id3v2Tag.SetTextFrame("TIT2", musicTag.TitleV2); /// Frames from /// http://id3.org/id3v2.3.0#Declared_ID3v2_frames } return tagInfo; } } }
34.75443
124
0.538316
[ "MIT" ]
joelwohlhauser/ID3-Tag-Editor
ID3-Tag-Editor/Models/MusicFileTag.cs
13,778
C#
// <auto-generated /> namespace Infrastructure.DataAccess.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class newoptionTypesadded : IMigrationMetadata { private readonly ResourceManager Resources = new ResourceManager(typeof(newoptionTypesadded)); string IMigrationMetadata.Id { get { return "201801041517268_new optionTypes added"; } } string IMigrationMetadata.Source { get { return null; } } string IMigrationMetadata.Target { get { return Resources.GetString("Target"); } } } }
28.533333
102
0.634346
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Strongminds/kitos
Infrastructure.DataAccess/Migrations/201801041517268_new optionTypes added.Designer.cs
856
C#
using OpenWeatherMap.DTO; using Newtonsoft.Json; using System.IO; namespace OpenWeatherMaps { /// <summary> /// A type for city management. /// </summary> public class Cities { /// <summary> /// Converts json with cities to model class. /// </summary> /// <returns>Model with city entities.</returns> public Forecast5 GetListOfCities() { Forecast5 cities = JsonConvert.DeserializeObject<Forecast5>(File.ReadAllText(@"city.list.json")); return cities; } } }
24.826087
109
0.58669
[ "BSD-2-Clause" ]
Pawel-Marcin-Chojnacki/ProgramowanieAplikacjiDesktop
OpenWeatherMap/Cities.cs
573
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; namespace Just_a_Second { /// <summary> /// This is the main type for your game /// </summary> public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D circle, hand; Rectangle circleRct, handRct; SpriteEffects blankFx; int rotation = 180; public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } /// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { this.IsMouseVisible = true; // TODO: Add your initialization logic here int WH = 286; int x = (GraphicsDevice.Viewport.Width / 2) - (WH / 2); int y = (GraphicsDevice.Viewport.Height / 2) - (WH / 2); circleRct = new Rectangle(x, y, WH, WH); int width = 10; int height = 135; x = GraphicsDevice.Viewport.Width / 2; y = GraphicsDevice.Viewport.Height / 2; handRct = new Rectangle(x, y, width, height); base.Initialize(); } /// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here circle = this.Content.Load<Texture2D>("circle"); hand = this.Content.Load<Texture2D>("square"); } /// <summary> /// UnloadContent will be called once per game and is the place to unload /// all content. /// </summary> protected override void UnloadContent() { // TODO: Unload any non ContentManager content here } /// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { // Allows the game to exit if (Keyboard.GetState().IsKeyDown(Keys.Escape)) this.Exit(); // TODO: Add your update logic here int seconds = gameTime.TotalGameTime.Seconds; rotation = (seconds * 6) + 180; base.Update(gameTime); } /// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); // TODO: Add your drawing code here spriteBatch.Draw(circle, circleRct, Color.White); spriteBatch.Draw(hand, handRct, null, Color.LightBlue, (float)Math.PI * rotation / 180, new Vector2(0), blankFx, 0); spriteBatch.End(); base.Draw(gameTime); } } }
34.62931
128
0.589246
[ "Unlicense" ]
hetkpatel/Video-Game-Design
Just a Second/Just a Second/Just_a_Second/Game1.cs
4,017
C#
// <auto-generated /> using System; using EstateApp.Data.DataBaseContexts.AuthenticationDbContext; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace EstateApp.Data.Migrations { [DbContext(typeof(AuthenticationDbContext))] [Migration("20200717183819_FullName Migrations")] partial class FullNameMigrations { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.4") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("EstateApp.Data.Entities.ApplicationUser", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<int>("AccessFailedCount") .HasColumnType("int"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("nvarchar(max)"); b.Property<string>("Email") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property<bool>("EmailConfirmed") .HasColumnType("bit"); b.Property<string>("FullName") .HasColumnType("nvarchar(max)"); b.Property<bool>("LockoutEnabled") .HasColumnType("bit"); b.Property<DateTimeOffset?>("LockoutEnd") .HasColumnType("datetimeoffset"); b.Property<string>("NormalizedEmail") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property<string>("NormalizedUserName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property<string>("PasswordHash") .HasColumnType("nvarchar(max)"); b.Property<string>("PhoneNumber") .HasColumnType("nvarchar(max)"); b.Property<bool>("PhoneNumberConfirmed") .HasColumnType("bit"); b.Property<string>("SecurityStamp") .HasColumnType("nvarchar(max)"); b.Property<bool>("TwoFactorEnabled") .HasColumnType("bit"); b.Property<string>("UserName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasName("UserNameIndex") .HasFilter("[NormalizedUserName] IS NOT NULL"); b.ToTable("AspNetUsers"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("nvarchar(max)"); b.Property<string>("Name") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property<string>("NormalizedName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasName("RoleNameIndex") .HasFilter("[NormalizedName] IS NOT NULL"); b.ToTable("AspNetRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<string>("ClaimType") .HasColumnType("nvarchar(max)"); b.Property<string>("ClaimValue") .HasColumnType("nvarchar(max)"); b.Property<string>("RoleId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property<string>("ClaimType") .HasColumnType("nvarchar(max)"); b.Property<string>("ClaimValue") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.Property<string>("LoginProvider") .HasColumnType("nvarchar(450)"); b.Property<string>("ProviderKey") .HasColumnType("nvarchar(450)"); b.Property<string>("ProviderDisplayName") .HasColumnType("nvarchar(max)"); b.Property<string>("UserId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => { b.Property<string>("UserId") .HasColumnType("nvarchar(450)"); b.Property<string>("RoleId") .HasColumnType("nvarchar(450)"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.Property<string>("UserId") .HasColumnType("nvarchar(450)"); b.Property<string>("LoginProvider") .HasColumnType("nvarchar(450)"); b.Property<string>("Name") .HasColumnType("nvarchar(450)"); b.Property<string>("Value") .HasColumnType("nvarchar(max)"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => { b.HasOne("EstateApp.Data.Entities.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.HasOne("EstateApp.Data.Entities.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("EstateApp.Data.Entities.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.HasOne("EstateApp.Data.Entities.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }
37.66787
125
0.473452
[ "MIT" ]
buka4rill/EstateApp
src/EstateApp.Data/Migrations/20200717183819_FullName Migrations.Designer.cs
10,436
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Markup; using System.Windows.Media; using DDictionary.Domain; using DDictionary.Domain.Entities; using DDictionary.Presentation.Converters; using DDictionary.Presentation.ViewModels; using PrgResources = DDictionary.Properties.Resources; using PrgSettings = DDictionary.Properties.Settings; namespace DDictionary.Presentation { //HACK: Implement the Clause Edit Dialog closing by click outside of the dialog?.. //https://stackoverflow.com/a/10301550 /// <summary> /// Interaction logic for ClauseEditDlg.xaml /// </summary> public partial class ClauseEditDlg: Window { /// <summary>The maximal count of handling translations.</summary> public const int MaxCountOfTranslations = 10; /// <summary>The maximal count of handling relations.</summary> public const int MaxCountOfRelations = 15; /// <summary>All clause's relations.</summary> private readonly List<RelationDTO> relations = new List<RelationDTO>(); /// <summary>All clause's translations.</summary> private readonly List<Translation> translations = new List<Translation>(); /// <summary>The list of "scrollable" clauses' ids.</summary> private readonly IList<int> clausesIdsLst; /// <summary>The list of watched clauses during this "session".</summary> private readonly List<int> watchedClauses = new List<int>(); /// <summary>The editing clause.</summary> private Clause clause; /// <summary>The count of translations in the dialog.</summary> private int countOfShownTranslations; /// <summary>The mark that some changes have been made (not necessary with the currently opened clause).</summary> private bool dataWasUpdated; /// <summary>The object to work with data storage.</summary> private IDBFacade dbFacade { get; set; } = CompositionRoot.DBFacade; /// <summary>Fires when a clause is changed (and saved).</summary> public event Action ClausesWereUpdated; public ClauseEditDlg(int? clauseId, IList<int> clausesIdsLst = null) { if(clauseId <= 0) throw new ArgumentOutOfRangeException(nameof(clauseId)); this.clausesIdsLst = clausesIdsLst ?? new List<int>(0); if(clauseId.HasValue) LoadClauseData(clauseId.Value); else CreateNewClause(); InitializeComponent(); ApplyGUIScale(); //ComboBox with groups initialization foreach(WordGroup gr in Enum.GetValues(typeof(WordGroup)).Cast<WordGroup>().OrderByDescending(o => o)) groupCBox.Items.Add(new CheckBoxItem<WordGroup> { Text = gr.ToFullStr(), ItemValue = gr }); UpdateWindowInfo(); } /// <summary> /// Create a new empty clause and put it into <see cref="DDictionary.Presentation.ClauseEditDlg.clause"/>. /// </summary> private void CreateNewClause() { clause = new Clause { Id = 0, //A new clause mark Group = WordGroup.E_TotallyUnknown, Added = DateTime.Now, }; } /// <summary> /// Load a clause with the given id and put it into <see cref="DDictionary.Presentation.ClauseEditDlg.clause"/>. /// </summary> /// <exception cref="System.InvalidOperationException" /> private async void LoadClauseData(int clauseId) { Clause cl = await dbFacade.GetClauseByIdAsync(clauseId) ?? throw new InvalidOperationException($"The clause with id = {clauseId} was not found."); clause = cl; relations.AddRange(clause.Relations.Select(o => o.MapToRelationDTO())); translations.AddRange(clause.Translations); if(clause.Watched.Date == DateTime.Now.Date) watchedClauses.Add(clauseId); //Already was incremented today if(!watchedClauses.Contains(clauseId)) { //Update data only once for each clause per dialog showing and only once a day await dbFacade.UpdateClauseWatchAsync(clauseId); //Do not call ClausesWereUpdated here because it's not such sufficient changes... watchedClauses.Add(clauseId); //Remember updated clause's id } if(Properties.Settings.Default.AutoplaySound && !String.IsNullOrEmpty(clause.Sound)) { try { await SoundManager.PlaySoundAsync(clause.Id, clause.Sound, dbFacade.DataSource); } catch(FileNotFoundException) { } } } /// <summary> /// Any currently opened clause's data was changed. /// </summary> private void OnSomeDataWasChanged(object sender, EventArgs e) { ChangesHaveBeenMade(); } private async void OnWordEdit_LostFocus(object sender, RoutedEventArgs e) { if(String.Equals(wordEdit.Text, clause.Word)) return; //There are no changes int check = await dbFacade.GetClauseIdByWordAsync(wordEdit.Text); if(check != 0 && check != clause.Id) { //User notification that this word presents in the dictionary already MessageBox.Show(this, String.Format(PrgResources.WordAlreadyPresents, wordEdit.Text), PrgResources.InformationCaption, MessageBoxButton.OK, MessageBoxImage.Information); } ChangesHaveBeenMade(); } /// <summary> /// Refill window's controls according to the <see cref="clause"/> data. /// </summary> private void UpdateWindowInfo() { countOfShownTranslations = 0; translationsPanel.Children[0].Visibility = Visibility.Collapsed; //To hide the "template" row UpdateDeleteButtonState(); Activated += OnClauseEditDlg_Activated; //To do initial actions when form will be shown groupCBox.SelectedItem = groupCBox.Items.Cast<CheckBoxItem<WordGroup>>() .Single(o => o.ItemValue == clause.Group); wordEdit.Text = clause.Word; transcriptionEdit.Text = clause.Transcription; UpdatePlaySoundButtonState(); contextEdit.Text = clause.Context; UpdateRelations(); //Show rows of translations translations.Sort((x, y) => x.Index.CompareTo(y.Index)); foreach(Translation tr in translations) { AddTranslationRow(tr); if(countOfShownTranslations == MaxCountOfTranslations) break; //The maximal amount has been shown } if(translations.Count > MaxCountOfTranslations) MessageBox.Show(this, String.Format(PrgResources.ExceedMaxCountOfTranslations, MaxCountOfTranslations, translations.Count), PrgResources.InformationCaption, MessageBoxButton.OK, MessageBoxImage.Information); UpdateAddButtonState(); UpdateTranslationsArrowsState(); UpdateScrollBttonsState(); saveClauseBtn.IsEnabled = false; } private async void UpdateRelations() { LooseHeight(); ClearRelationsArea(); int countOfShownRelations = 0; foreach(RelationDTO rel in relations) { var copy = (FrameworkElement)XamlReader.Parse(XamlWriter.Save(relTemplatePanel)); copy.Name = null; //To show that it's a new item copy.Visibility = Visibility.Visible; copy.MouseLeftButtonUp += OnRelationsLbl_MouseLeftButtonUp; var cl = await dbFacade.GetClauseByIdAsync(rel.ToWordId); copy.ToolTip = ClauseToDataGridClauseMapper.MakeTranslationsString(cl.Translations); if(PrgSettings.Default.AutoplaySound && !String.IsNullOrEmpty(cl.Sound)) copy.ToolTipOpening += async (s, e) => await SoundManager.PlaySoundAsync(cl.Id, cl.Sound, dbFacade.DataSource); var newWordLbl = (Label)copy.FindName(nameof(wordLbl)); newWordLbl.Content = rel.ToWord; var newDescriptionLbl = (Label)copy.FindName(nameof(descriptionLbl)); newDescriptionLbl.Content = $" - {rel.Description}"; relationsPanel.Children.Insert(relationsPanel.Children.IndexOf(relTemplatePanel), copy); if(countOfShownRelations == MaxCountOfRelations) break; } if(Visibility == Visibility.Visible) //Only if form is already shown and knows its size FixHeight(); } private void UpdateDeleteButtonState() { deleteClauseBtn.IsEnabled = clause.Id != 0; } /// <summary> /// Update play sound button state depending on /// <see cref="DDictionary.Presentation.ClauseEditDlg.clause"/>. /// </summary> private void UpdatePlaySoundButtonState() { playBtn.IsEnabled = !String.IsNullOrEmpty(clause?.Sound); } /// <summary> /// Update state of the "scroll" buttons (move to the next/previous clause buttons). /// </summary> /// <seealso cref = "DDictionary.Presentation.ClauseEditDlg.clausesIdsLst" />. private void UpdateScrollBttonsState() { scrollLeftBtn.IsEnabled = clausesIdsLst.Count > 0 && clausesIdsLst[0] != clause.Id; scrollRightBtn.IsEnabled = clausesIdsLst.Count > 0 && clausesIdsLst[clausesIdsLst.Count - 1] != clause.Id && clause.Id != 0; } /// <summary> /// Initial actions. /// </summary> private void OnClauseEditDlg_Activated(object sender, EventArgs e) { Activated -= OnClauseEditDlg_Activated; //Not need to replay FixHeight(); } private void UpdateAddButtonState() { addTranslationBtn.IsEnabled = countOfShownTranslations < MaxCountOfTranslations; } /// <summary> /// Add new translation row (a panel with respective elements) to the dialog. /// </summary> private void AddTranslationRow(Translation tr) { var copy = (FrameworkElement)XamlReader.Parse(XamlWriter.Save(translationRow)); int addButtonIdx = translationsPanel.Children.IndexOf(addTranslationBtn); copy.Name = null; //To show that it's a new item copy.Visibility = Visibility.Visible; copy.Tag = tr; var newTranslationLbl = (TextBlock)copy.FindName(nameof(translationLbl)); newTranslationLbl.Text = TranslationConverter.ConvertToString(tr); newTranslationLbl.MouseUp += (s, e) => { //Edit the translation var dlg = new TranslationsEditDlg(tr.Text, tr.Part) { Owner = this }; if(dlg.ShowDialog() == true) { tr.Text = dlg.Translation.Value.translation; tr.Part = dlg.Translation.Value.partOfSpeech; newTranslationLbl.Text = TranslationConverter.ConvertToString(tr); ChangesHaveBeenMade(); } }; var newRemoveBtn = (Button)copy.FindName(nameof(trRemoveBtn)); newRemoveBtn.Click += (s, e) => { //Remove the translation LooseHeight(); translationsPanel.Children.Remove(copy); translations.Remove(tr); FixHeight(); countOfShownTranslations--; UpdateAddButtonState(); UpdateTranslationsArrowsState(); ChangesHaveBeenMade(); }; var newTrUpBtn = (Button)copy.FindName(nameof(trUpBtn)); newTrUpBtn.Click += (s, e) => MoveTranslationRow(copy, moveUp: true); var newTrDownBtn = (Button)copy.FindName(nameof(trDownBtn)); newTrDownBtn.Click += (s, e) => MoveTranslationRow(copy, moveUp: false); LooseHeight(); translationsPanel.Children.Insert(addButtonIdx, copy); if(Visibility == Visibility.Visible) //Only if form is already shown and knows its size FixHeight(); countOfShownTranslations++; UpdateAddButtonState(); } /// <summary> /// Update state of the arrows buttons and tab indices for all translation rows. /// </summary> private void UpdateTranslationsArrowsState() { //Tab indices start from the last button (remove) of the "template" row int tabIdx = ((Control)translationRow.FindName(nameof(trRemoveBtn))).TabIndex; //The child with index 0 is hidden "template" row so skip it foreach(var row in translationsPanel.Children.Cast<FrameworkElement>().Skip(1).Take(countOfShownTranslations)) { var upBtn = (Button)row.FindName(nameof(trUpBtn)); var downBtn = (Button)row.FindName(nameof(trDownBtn)); var removeBtn = (Button)row.FindName(nameof(trRemoveBtn)); upBtn.IsEnabled = !isItTopMostRow(row); downBtn.IsEnabled = !isItBottomMostRow(row); upBtn.TabIndex = ++tabIdx; downBtn.TabIndex = ++tabIdx; removeBtn.TabIndex = ++tabIdx; } bool isItTopMostRow(FrameworkElement row) => translationsPanel.Children.IndexOf(row) == 1; bool isItBottomMostRow(FrameworkElement row) => translationsPanel.Children.IndexOf(row) == countOfShownTranslations; } /// <summary> /// Change the position of the translation row (which determines translation index for the clause). /// </summary> private void MoveTranslationRow(FrameworkElement row, bool moveUp) { int idx = translationsPanel.Children.IndexOf(row) + (moveUp ? -1 : 1); translationsPanel.Children.Remove(row); translationsPanel.Children.Insert(idx, row); //Correct items' order as well var tr = (Translation)row.Tag; idx = translations.IndexOf(tr) + (moveUp ? -1 : 1); translations.Remove(tr); translations.Insert(idx, tr); UpdateTranslationsArrowsState(); ChangesHaveBeenMade(); } /// <summary> /// Handle Add Translation button click. /// </summary> private void OnAddTranslationBtn_Click(object sender, RoutedEventArgs e) { var dlg = new TranslationsEditDlg() { Owner = this }; if(dlg.ShowDialog() == true) { var trans = new Translation { Index = translations.Count > 0 ? translations.Max(o => o.Index) + 1 : 1, Part = dlg.Translation.Value.partOfSpeech, Text = dlg.Translation.Value.translation, }; //To save items visible order in case if not all translations are shown in the dialog translations.Insert(countOfShownTranslations, trans); AddTranslationRow(trans); UpdateTranslationsArrowsState(); ChangesHaveBeenMade(); } } /// <summary> /// Allow to change the dialog height. /// </summary> private void LooseHeight() { MinHeight = 0; MaxHeight = Double.PositiveInfinity; } /// <summary> /// Fix current dialog height and prohibit it from changing. /// </summary> private void FixHeight() { //https://stackoverflow.com/questions/1256916/how-to-force-actualwidth-and-actualheight-to-update-silverlight //To fit dialog's size, especially its height SizeToContent = SizeToContent.Manual; SizeToContent = SizeToContent.WidthAndHeight; //To prevent height changing MinHeight = MaxHeight = ActualHeight; //ActualHeight should be updated by this time } /// <summary> /// Handle play sound button click. /// </summary> /// <seealso cref="DDictionary.Presentation.SoundManager"/> private async void OnPlayBtn_Click(object sender, RoutedEventArgs e) { var ctrl = (FrameworkElement)sender; ctrl.IsEnabled = false; //Temporary disabled to prevent multiple clicking try { await SoundManager.PlaySoundAsync(clause.Id, clause.Sound, dbFacade.DataSource); } #pragma warning disable CA1031 // Do not catch general exception types catch(Exception ex) { Debug.WriteLine(ex.ToString()); MessageBox.Show(this, ex.Message, PrgResources.ErrorCaption, MessageBoxButton.OK, MessageBoxImage.Error); } #pragma warning restore CA1031 // Do not catch general exception types finally { ctrl.IsEnabled = true; } } /// <summary> /// Handle change sound reference button click. /// </summary> private void OnSoundRefBtn_Click(object sender, RoutedEventArgs e) { //For all new clauses id = 0 is used, //so firstly the external sound will be cached according to this id (for every new clause) //but after the new clause will be saved the program needs to cache sound again with the correct clause's id. var dlg = new SoundRefEditDlg(clause) { Owner = this }; if(dlg.ShowDialog() == true) { SoundManager.RemoveFromCache(clause.Id, clause.Sound, dbFacade.DataSource); //Remove clause's old cache clause.Sound = dlg.SoundRef; UpdatePlaySoundButtonState(); ChangesHaveBeenMade(); } } /// <summary> /// Some changes have been made in the clause's data. /// </summary> private void ChangesHaveBeenMade() { if(saveClauseBtn != null) saveClauseBtn.IsEnabled = true; } private void ShowEditRelationsDlg() { var dlg = new RelationsEditDlg(clause.Id, wordEdit.Text, relations) { Owner = this }; if(dlg.ShowDialog() == true) { relations.Clear(); relations.AddRange(dlg.Relations); UpdateRelations(); ChangesHaveBeenMade(); } } private void OnRelationsLbl_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ShowEditRelationsDlg(); } private void OnRelationsLbl_KeyUp(object sender, KeyEventArgs e) { if(e.Key == Key.Space || e.Key == Key.Enter) { ShowEditRelationsDlg(); e.Handled = true; } } protected override void OnClosed(EventArgs e) { SoundManager.StopPlaying(); base.OnClosed(e); } protected override void OnClosing(CancelEventArgs e) { e.Cancel = !DiscardingChangesIsApproved(); DialogResult = dataWasUpdated; //True if any changes have been made even not with the currently opened clause base.OnClosing(e); } /// <summary> /// Handle New clause button click. /// </summary> private void OnNewClauseBtn_Click(object sender, RoutedEventArgs e) { if(!DiscardingChangesIsApproved()) return; ClearWindow(); CreateNewClause(); UpdateWindowInfo(); } /// <summary> /// Clear window controls and lists of the clause data. /// </summary> private void ClearWindow() { relations.Clear(); translations.Clear(); //Remove all old added translations FrameworkElement[] toRemove = translationsPanel.Children.OfType<FrameworkElement>() .Where(o => o.Name == null) //The item that was added .ToArray(); LooseHeight(); foreach(FrameworkElement item in toRemove) translationsPanel.Children.Remove(item); ClearRelationsArea(); FixHeight(); } private void ClearRelationsArea() { //Remove all old added relations FrameworkElement[] toRemove = relationsPanel.Children.OfType<FrameworkElement>() .Where(o => o.Name == null) //The item that was added .ToArray(); foreach(FrameworkElement item in toRemove) relationsPanel.Children.Remove(item); } /// <summary> /// Discarding changes is approved or there are no changes in the currently opened clause's data. /// </summary> /// <remarks>If there are any changes then message box will be shown.</remarks> private bool DiscardingChangesIsApproved() { return saveClauseBtn?.IsEnabled != true || MessageBox.Show(this, PrgResources.ChangesDiscardingWarning, PrgResources.InformationCaption, MessageBoxButton.OKCancel, MessageBoxImage.Warning) == MessageBoxResult.OK; } /// <summary> /// Handle Save button click. /// </summary> private async void OnSaveClauseBtn_Click(object sender, RoutedEventArgs e) { saveClauseBtn.IsEnabled = false; var clauseDTO = new ClauseUpdateDTO { Id = clause.Id, Context = contextEdit.Text, Group = ((CheckBoxItem<WordGroup>)groupCBox.SelectedItem).ItemValue, Sound = clause.Sound, Transcription = transcriptionEdit.Text, Word = wordEdit.Text }; int check = await dbFacade.GetClauseIdByWordAsync(clauseDTO.Word); if(check != 0 && check != clauseDTO.Id) { MessageBox.Show(this, String.Format(PrgResources.WordAlreadyPresents, clauseDTO.Word), PrgResources.InformationCaption, MessageBoxButton.OK, MessageBoxImage.Information); return; //Can't save it } if(clause.Id == 0) //Remove "temporary" clause's cache for a new clause SoundManager.RemoveFromCache(clause.Id, clause.Sound, dbFacade.DataSource); clause.Id = await dbFacade.AddOrUpdateClauseAsync(clauseDTO, !watchedClauses.Contains(clause.Id)); //To prevent multiple updates of the clause's watch data //Handle relations await dbFacade.RemoveRelationsAsync(clause.Relations.Select(o => o.Id) .Except(relations.Select(o => o.Id)) .ToArray()); foreach(RelationDTO rel in relations.Where(o => o.Id == 0 || o.DescriptionWasChanged)) { rel.Id = await dbFacade.AddOrUpdateRelationAsync(rel.Id, clause.Id, rel.ToWordId, rel.Description); if(rel.MakeInterconnected) //Add relation to the other side await dbFacade.AddOrUpdateRelationAsync(0, rel.ToWordId, clause.Id, rel.Description); } //Handle translations await dbFacade.RemoveTranslationsAsync(clause.Translations.Select(o => o.Id) .Except(translations.Select(o => o.Id)) .ToArray()); for(int i=0; i<translations.Count; i++) { translations[i].Index = i; //Correcting items indices according to collection translations[i].Id = await dbFacade.AddOrUpdateTranslationAsync(translations[i], clause.Id); } dataWasUpdated = true; //Data was changed if(clauseDTO.Id == 0) { //Adding the new clause to the scroll list clausesIdsLst.Add(clause.Id); UpdateDeleteButtonState(); } ClausesWereUpdated?.Invoke(); } /// <summary> /// Handle one of two "scroll" buttons click depending on <paramref name="sender"/>. /// </summary> private void OnScrollBtn_Click(object sender, RoutedEventArgs e) { Debug.Assert(sender == scrollLeftBtn || sender == scrollRightBtn); if(!DiscardingChangesIsApproved()) return; int idx = clause.Id == 0 ? clausesIdsLst.Count : clausesIdsLst.IndexOf(clause.Id); idx += (sender == scrollLeftBtn ? -1 : 1); Debug.Assert(idx >= 0 && idx < clausesIdsLst.Count); ClearWindow(); LoadClauseData(clausesIdsLst[idx]); UpdateWindowInfo(); } /// <summary> /// Handle Delete button click. /// </summary> private async void OnDeleteClauseBtn_Click(object sender, RoutedEventArgs e) { if(Keyboard.Modifiers != ModifierKeys.Control && MessageBox.Show(this, String.Format(PrgResources.TheClauseDeletionConfirmation, wordEdit.Text), PrgResources.QuestionCaption, MessageBoxButton.OKCancel, MessageBoxImage.Question) != MessageBoxResult.OK) return; int id = clause.Id; await dbFacade.RemoveClausesAsync(id); SoundManager.RemoveFromCache(id, clause.Sound, dbFacade.DataSource); //Remove clause's cache dataWasUpdated = true; //Data was changed int idx = clausesIdsLst.IndexOf(id); if(idx != -1) clausesIdsLst.RemoveAt(idx); ClausesWereUpdated?.Invoke(); if(clausesIdsLst.Count == 0) { //There are no clauses to move at, so leave empty window ClearWindow(); CreateNewClause(); UpdateWindowInfo(); return; } //Move to another clause ClearWindow(); LoadClauseData(clausesIdsLst[idx < clausesIdsLst.Count ? idx : clausesIdsLst.Count-1]); UpdateWindowInfo(); } private void OnWindow_KeyDown(object sender, KeyEventArgs e) { switch(e.Key) { case Key.Escape: Close(); break; //To close dialog by Escape key case Key.Left: if(scrollLeftBtn.IsEnabled) OnScrollBtn_Click(scrollLeftBtn, null); break; case Key.Right: if(scrollRightBtn.IsEnabled) OnScrollBtn_Click(scrollRightBtn, null); break; } } private void ApplyGUIScale() { double guiScale = PrgSettings.Default.DialogsScale; mainWindowGrid.LayoutTransform = new ScaleTransform(guiScale, guiScale); MaxWidth *= guiScale; MaxHeight *= guiScale; MinWidth *= guiScale; MinHeight *= guiScale; } } }
37.188976
125
0.573682
[ "Apache-2.0" ]
Alex-D-Green/DDictionary
Presentation/ClauseEditDlg.xaml.cs
28,340
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EstadoDown : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
14.294118
41
0.699588
[ "Apache-2.0" ]
Luiz207/JogoBasquete
Assets/MaquinaEstado/EstadoDown.cs
245
C#
// <copyright file="Overflow.cs" company="Shkyrockett" > // Copyright © 2016 - 2021 Shkyrockett. All rights reserved. // </copyright> // <author id="shkyrockett">Shkyrockett</author> // <license> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </license> // <summary></summary> // <remarks></remarks> namespace GenericMathPlayground.Mathematics { /// <summary> /// The overflows enum. /// </summary> public enum Overflow { /// <summary> /// No Overflow protection. /// </summary> None, /// <summary> /// Clamp values between min and max. /// </summary> Clamp, /// <summary> /// Wrap values back to min, when past max. /// </summary> Wrap } }
24.441176
105
0.5716
[ "MIT" ]
Shkyrockett/GenericMathPlayground
GenericMathPlayground/Mathematics/Enums/Overflow.cs
834
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace ModernWpf.Toolkit.UI.Converters { /// <summary> /// This class converts a string value into a an object (if the value is null or empty returns the false value). /// Can be used to bind a visibility, a color or an image to the value of a string. /// </summary> public class EmptyStringToObjectConverter : EmptyObjectToObjectConverter { /// <summary> /// Checks string for emptiness. /// </summary> /// <param name="value">Value to be checked.</param> /// <returns>True if value is null or empty string, false otherwise.</returns> protected override bool CheckValueIsEmpty(object value) { return string.IsNullOrEmpty(value?.ToString()); } } }
39.958333
116
0.664234
[ "MIT" ]
ModernWpf-Community/ModernWpfCommunityToolkit
ModernWpf.Toolkit.UI/Converters/EmptyStringToObjectConverter.cs
959
C#
using Expr = System.Linq.Expressions.Expression; using ExprParam = System.Linq.Expressions.ParameterExpression; namespace KSoft { partial class EnumFlags<TEnum> { /// <summary> /// Implements the expressions by casting the enum parameters to their underlying integer types before /// doing a bitwise operation on them /// </summary> static class V1 { public static readonly ModifyDelegate kAddFlags = GenerateAddFlagsMethod(), kRemoveFlags = GenerateRemoveFlagsMethod(); public static readonly ModifyByRefDelegate kAddFlagsByRef = GenerateAddFlagsMethodByRef(), kRemoveFlagsByRef = GenerateRemoveFlagsMethodByRef(); public static readonly ModifyCondDelegate kModifyFlags = GenerateModifyFlagsMethod(); public static readonly ModifyByRefCondDelegate kModifyFlagsByRef = GenerateModifyFlagsMethodByRef(); public static readonly ReadDelegate kTestFlags = GenerateTestFlagsMethod(); static Expr GenerateAddFlagsGuts(ExprParam paramV, ExprParam paramF) { var v_as_int = Expr.Convert(paramV, kUnderlyingType); // integer v = (integer)value var f_as_int = Expr.Convert(paramF, kUnderlyingType); // integer f = (integer)flags return Expr.Convert(Expr.Or(v_as_int, f_as_int), kEnumType); // (TEnum)(v | f) } static Expr GenerateRemoveFlagsGuts(ExprParam paramV, ExprParam paramF) { var v_as_int = Expr.Convert(paramV, kUnderlyingType); // integer v = (integer)value var f_as_int = Expr.Convert(paramF, kUnderlyingType); // integer f = (integer)flags var f_complement = Expr.Not(f_as_int); // ~f return Expr.Convert(Expr.And(v_as_int, f_complement), kEnumType); // (TEnum)(v & ~f) } static Expr GenerateModifyFlagsGuts(ExprParam paramV, ExprParam paramF, ExprParam paramCond) { return Expr.Condition(paramCond, GenerateAddFlagsGuts(paramV, paramF), GenerateRemoveFlagsGuts(paramV, paramF)); } static ModifyDelegate GenerateAddFlagsMethod() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(false); var param_f = GenerateParamFlags(); ////////////////////////////////////////////////////////////////////////// // return value | flags var ret = GenerateAddFlagsGuts(param_v, param_f); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyDelegate>(ret, param_v, param_f); return lambda.Compile(); } static ModifyByRefDelegate GenerateAddFlagsMethodByRef() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(true); var param_f = GenerateParamFlags(); ////////////////////////////////////////////////////////////////////////// // value = value | flags var assign = Expr.Assign(param_v, GenerateAddFlagsGuts(param_v, param_f)); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyByRefDelegate>(assign, param_v, param_f); return lambda.Compile(); } static ModifyDelegate GenerateRemoveFlagsMethod() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(false); var param_f = GenerateParamFlags(); ////////////////////////////////////////////////////////////////////////// // return value & flags var ret = GenerateRemoveFlagsGuts(param_v, param_f); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyDelegate>(ret, param_v, param_f); return lambda.Compile(); } static ModifyByRefDelegate GenerateRemoveFlagsMethodByRef() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(true); var param_f = GenerateParamFlags(); ////////////////////////////////////////////////////////////////////////// // value = value & flags var assign = Expr.Assign(param_v, GenerateRemoveFlagsGuts(param_v, param_f)); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyByRefDelegate>(assign, param_v, param_f); return lambda.Compile(); } static ModifyCondDelegate GenerateModifyFlagsMethod() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(false); var param_f = GenerateParamFlags(); var param_c = GenerateParamAddOrRemove(); ////////////////////////////////////////////////////////////////////////// // return value & flags var ret = GenerateModifyFlagsGuts(param_v, param_f, param_c); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyCondDelegate>(ret, param_c, param_v, param_f); return lambda.Compile(); } static ModifyByRefCondDelegate GenerateModifyFlagsMethodByRef() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters var param_v = GenerateParamValue(true); var param_f = GenerateParamFlags(); var param_c = GenerateParamAddOrRemove(); ////////////////////////////////////////////////////////////////////////// // return value & flags var assign = Expr.Assign(param_v, GenerateModifyFlagsGuts(param_v, param_f, param_c)); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ModifyByRefCondDelegate>(assign, param_c, param_v, param_f); return lambda.Compile(); } static ReadDelegate GenerateTestFlagsMethod() { ////////////////////////////////////////////////////////////////////////// // Define the generated method's parameters and return constructs var param_v = GenerateParamValue(false); var param_f = GenerateParamFlags(); ////////////////////////////////////////////////////////////////////////// // return (value & flags) == flags var v_as_int = Expr.Convert(param_v, kUnderlyingType); var f_as_int = Expr.Convert(param_f, kUnderlyingType); var and = Expr.Convert(Expr.And(v_as_int, f_as_int), kEnumType); var equ = Expr.Equal(and, param_f); ////////////////////////////////////////////////////////////////////////// // Generate a method based on the expression tree we've built var lambda = Expr.Lambda<ReadDelegate>(equ, param_v, param_f); return lambda.Compile(); } }; }; }
42.33908
105
0.542283
[ "MIT" ]
KornnerStudios/KSoft
KSoft/Enum/_Details/EnumFlags.V1.cs
7,369
C#
namespace CSInputs.Enums { public enum RawInputType { Mouse, Keyboard } }
12.333333
29
0.513514
[ "MIT" ]
trksyln/CSInputs
Enums/Input/RawInputType.cs
113
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using NR.RTS.Units; namespace NR.RTS.Buildings.Player { public class PlayerBuilding : MonoBehaviour, IDamageable { public BuildingStatTypes.Base baseStats; public Image healthBarAmount; public float currentHealth = 1; public Transform target; private IDamageable targetUnit; private bool hasTarget = false; private Collider2D[] rangeColliders; private const float aggroDistance = 5; public float attackCooldown; public float currentAttackCooldown; public AudioSource effectsSource; public List<AudioClip> clipQueue; public bool isBuilt = false; private void Update() { if (!isBuilt) { return; } if (!effectsSource.isPlaying && clipQueue.Count > 0) { PlaySound(); } currentAttackCooldown -= Time.deltaTime; if (!hasTarget) { CheckForEnemyTargets(); } else { Attack(); } } private void LateUpdate() { if (Combat.HandleHealth(healthBarAmount, currentHealth, baseStats.health)) { Die(); } } private void PlaySound() { effectsSource.clip = clipQueue[0]; effectsSource.Play(); clipQueue.Remove(clipQueue[0]); } private void Die() { InputManager.InputHandler.instance.selectedBuilding = null; transform.GetComponent<Interactable.IBuilding>().OnInteractExit(); RTS.Player.VoiceAssistant.instance.PlayBuildingDestroyed(); Destroy(gameObject); } public void TakeDamage(float damage, int armorPiercing) { currentHealth = Combat.TakeDamage(damage, armorPiercing, 0, 0, currentHealth); if (clipQueue.Count<=2) { clipQueue.Add(baseStats.damagedSounds[Random.Range(0, baseStats.damagedSounds.Length - 1)]); } } private void CheckForEnemyTargets() { rangeColliders = Physics2D.OverlapCircleAll(transform.position, aggroDistance); //Distance cant be greater than 10 because thats the radius of the collision checking circle so 50 just to be sure float clossestDistance = 50; int clossestCollision = 0; for (int i = 0; i < rangeColliders.Length; i++) { if (rangeColliders[i].gameObject.layer == UnitHandler.instance.eUnitLayer) { float newDistance = Vector2.Distance(transform.position, rangeColliders[i].gameObject.transform.position); if (clossestDistance > newDistance) { clossestDistance = newDistance; clossestCollision = i; } hasTarget = true; } } if (hasTarget) { target = rangeColliders[clossestCollision].gameObject.transform; targetUnit = target.gameObject.GetComponent<Units.Enemy.EnemyUnit>(); /*Uncomment when enemy buildings are added if (aggroUnit == null) { aggroUnit = aggroTarget.gameObject.GetComponent<Buildings.Player.EnemyBuilding>(); }*/ } } protected void Attack() { if (target == null) { hasTarget = false; return; } float distance = Vector2.Distance(target.position, transform.position); UnitStats.Base baseStats = new UnitStats.Base(); baseStats.rangedAttack = this.baseStats.attack; baseStats.rangedArmorPiercing = this.baseStats.armorPiercing; baseStats.precission = this.baseStats.precission; baseStats.range = this.baseStats.range; baseStats.shootingSpeed = this.baseStats.shootingSpeed; float temp = Combat.Attack(currentAttackCooldown, distance, attackCooldown, targetUnit, baseStats, true); if (temp >= 0) { clipQueue.Add(this.baseStats.firingSounds[Random.Range(0, this.baseStats.firingSounds.Length - 1)]); currentAttackCooldown = temp; } else if (temp == -2) { hasTarget = false; return; } } public float Repair() { currentHealth = Mathf.Min(baseStats.health, currentHealth + RTS.Player.PlayerManager.instance.buildSpeed); if (currentHealth == baseStats.health) { if (!isBuilt) { isBuilt = true; RTS.Player.VoiceAssistant.instance.PlayConstructionComplete(); } return -1f; } return 0f; } } }
34.012903
126
0.537178
[ "MIT" ]
Nikolar1/Seminarski_rad_C_RTS_Igra
RTS/Assets/_Scripts/Buildings/Player/PlayerBuilding.cs
5,272
C#
using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; namespace GISShare.Controls.WinForm { public interface IButtonX : WFNew.IBaseItem { WFNew.ImageSizeStyle eImageSizeStyle { get;set; } Size ImageSize { get;set; } bool ShowNomalState { get; set; } bool Checked { get; set; } bool AutoPlanTextRectangle { get; set; } int ITSpace { get; set; } int LeftTopRadius { get;set; } int RightTopRadius { get; set; } int LeftBottomRadius { get; set; } int RightBottomRadius { get; set; } Image Image { get; } ContentAlignment ImageAlign { get; } ContentAlignment TextAlign { get; } Rectangle TextRectangle { get;} Rectangle ImageRectangle { get;} //Rectangle TextRectangle { get;} Rectangle ITDrawRectangle { get; }//IT = Image Text Rectangle ButtonRectangle { get; } } }
20.918367
59
0.621463
[ "MIT" ]
gisshare2015/GISShare.Controls.WinForm
GISShare.Controls.WinForm/WinForm/Interface/IButtonX.cs
1,025
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace pxr { public class PcpNodeRef_ChildrenReverseIterator : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal PcpNodeRef_ChildrenReverseIterator(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PcpNodeRef_ChildrenReverseIterator obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~PcpNodeRef_ChildrenReverseIterator() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; UsdCsPINVOKE.delete_PcpNodeRef_ChildrenReverseIterator(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public PcpNodeRef_ChildrenReverseIterator() : this(UsdCsPINVOKE.new_PcpNodeRef_ChildrenReverseIterator__SWIG_0(), true) { } public PcpNodeRef_ChildrenReverseIterator(PcpNodeRef_ChildrenIterator arg0) : this(UsdCsPINVOKE.new_PcpNodeRef_ChildrenReverseIterator__SWIG_1(PcpNodeRef_ChildrenIterator.getCPtr(arg0)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } public PcpNodeRef_ChildrenReverseIterator(PcpNodeRef node, bool end) : this(UsdCsPINVOKE.new_PcpNodeRef_ChildrenReverseIterator__SWIG_2(PcpNodeRef.getCPtr(node), end), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } public PcpNodeRef_ChildrenReverseIterator(PcpNodeRef node) : this(UsdCsPINVOKE.new_PcpNodeRef_ChildrenReverseIterator__SWIG_3(PcpNodeRef.getCPtr(node)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } } }
41.622951
196
0.720756
[ "Apache-2.0" ]
MrDice/usd-unity-sdk
src/USD.NET/generated/pxr/usd/pcp/PcpNodeRef_ChildrenReverseIterator.cs
2,539
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class FoodControl : MonoBehaviour { public float maxHunger = 100; [Range(0,100)] public float hunger = 100; public float hungerReduce = 0.0001f; private Slider slider; private HPManager HpSControl; void Start() { slider = GetComponent<Slider>(); HpSControl = transform.parent.Find("HP").GetComponent<HPManager>(); } // Update is called once per frame void FixedUpdate() { hunger = Mathf.Clamp(hunger, 0, maxHunger); if(hunger > 0) { hunger -= hungerReduce*Sleep.sleepingComsumeRate; slider.value = hunger / maxHunger; } else { HpSControl.HpAdd(-hungerReduce); } } public void AddFood(float value) { hunger += value; } }
22.268293
75
0.60241
[ "MIT" ]
EnderHorror/TravalWander
Assets/Script/FoodControl.cs
915
C#
namespace loginv2 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.label2 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button2 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Times New Roman", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(74, 96); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(64, 16); this.label2.TabIndex = 1; this.label2.Text = "Password"; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(157, 45); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 22); this.textBox1.TabIndex = 2; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(157, 90); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(100, 22); this.textBox2.TabIndex = 3; this.textBox2.UseSystemPasswordChar = true; // // button1 // this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image"))); this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button1.Location = new System.Drawing.Point(159, 163); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(98, 23); this.button1.TabIndex = 6; this.button1.Text = "Connect"; this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // checkBox1 // this.checkBox1.AutoSize = true; this.checkBox1.Location = new System.Drawing.Point(159, 118); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(129, 21); this.checkBox1.TabIndex = 7; this.checkBox1.Text = "Show Password"; this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // button2 // this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image"))); this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button2.Location = new System.Drawing.Point(159, 212); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(82, 23); this.button2.TabIndex = 8; this.button2.Text = "Exit"; this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // comboBox1 // this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "Username", "Email"}); this.comboBox1.Location = new System.Drawing.Point(17, 45); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(121, 24); this.comboBox1.TabIndex = 9; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Times New Roman", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(15, 26); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(42, 16); this.label1.TabIndex = 0; this.label1.Text = "Select"; this.label1.Click += new System.EventHandler(this.label1_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(2, 118); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(151, 165); this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; // // groupBox1 // this.groupBox1.Controls.Add(this.button2); this.groupBox1.Controls.Add(this.pictureBox1); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.comboBox1); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.textBox1); this.groupBox1.Controls.Add(this.checkBox1); this.groupBox1.Controls.Add(this.textBox2); this.groupBox1.Controls.Add(this.button1); this.groupBox1.Location = new System.Drawing.Point(23, 21); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(302, 289); this.groupBox1.TabIndex = 11; this.groupBox1.TabStop = false; this.groupBox1.Text = "SignIn"; // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(331, 21); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(339, 289); this.pictureBox2.TabIndex = 12; this.pictureBox2.TabStop = false; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(681, 310); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.groupBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Button button1; private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.Button button2; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.Label label1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.PictureBox pictureBox2; } }
46.736318
162
0.591548
[ "Apache-2.0" ]
kelvindong1608/Csharp
windows_form/loginv2/loginv2/Form1.Designer.cs
9,396
C#
// **************************************************************** // Copyright 2007, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 // **************************************************************** using System; using System.Reflection; [assembly: CLSCompliant(true)] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("../../nunit.snk")] [assembly: AssemblyKeyName("")]
32.933333
68
0.536437
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/nunit24/NUnitExtensions/framework/AssemblyInfo.cs
494
C#
using System; using System.Collections.Generic; using Mvis.Plugin.Sandbox.Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Primitives; using osuTK; namespace Mvis.Plugin.Sandbox.Components.Visualizers.Circular { public class FallMusicVisualizerDrawable : CircularMusicVisualizerDrawable { private float[] currentRawFallAudioData; private float[] maxFallBarValues; private float[] smoothFallAudioData; protected override void ResetArrays() { base.ResetArrays(); currentRawFallAudioData = new float[AdjustedBarCount]; maxFallBarValues = new float[AdjustedBarCount]; smoothFallAudioData = new float[AdjustedBarCount]; } protected override void ApplyData(int index, float newRawAudioDataAtIndex) { base.ApplyData(index, newRawAudioDataAtIndex); if (newRawAudioDataAtIndex > currentRawFallAudioData[index]) { currentRawFallAudioData[index] = newRawAudioDataAtIndex; maxFallBarValues[index] = currentRawFallAudioData[index]; } } protected override void UpdateData(int index, float timeDifference) { base.UpdateData(index, timeDifference); currentRawFallAudioData[index] -= maxFallBarValues[index] / (Decay.Value * 4) * timeDifference; smoothFallAudioData[index] = currentRawFallAudioData[index] * HeightMultiplier.Value; } protected override void PostUpdate() { base.PostUpdate(); if (Smoothness.Value > 0) smoothFallAudioData.Smooth(Math.Min(Smoothness.Value, AdjustedBarCount / 2)); } protected override CircularVisualizerDrawNode CreateCircularVisualizerDrawNode() => new FallVisualizerDrawNode(this); private class FallVisualizerDrawNode : CircularVisualizerDrawNode { protected new FallMusicVisualizerDrawable Source => (FallMusicVisualizerDrawable)base.Source; public FallVisualizerDrawNode(FallMusicVisualizerDrawable source) : base(source) { } private readonly List<float> fallAudioData = new List<float>(); public override void ApplyState() { base.ApplyState(); fallAudioData.Clear(); fallAudioData.AddRange(Source.smoothFallAudioData); } protected override void DrawBar(int index, float data, float spacing, Vector2 inflation) { float rotation = MathHelper.DegreesToRadians(index * spacing - 90); float rotationCos = MathF.Cos(rotation); float rotationSin = MathF.Sin(rotation); var barPosition = new Vector2(rotationCos / 2 + 0.5f, rotationSin / 2 + 0.5f) * Size.X; var barSize = new Vector2((float)BarWidth, 2 + data); var bottomOffset = new Vector2(-rotationSin * barSize.X / 2, rotationCos * barSize.X / 2); var amplitudeOffset = new Vector2(rotationCos * barSize.Y, rotationSin * barSize.Y); var rectangle = new Quad( Vector2Extensions.Transform(barPosition - bottomOffset, DrawInfo.Matrix), Vector2Extensions.Transform(barPosition - bottomOffset + amplitudeOffset, DrawInfo.Matrix), Vector2Extensions.Transform(barPosition + bottomOffset, DrawInfo.Matrix), Vector2Extensions.Transform(barPosition + bottomOffset + amplitudeOffset, DrawInfo.Matrix) ); DrawQuad( Texture, rectangle, DrawColourInfo.Colour, null, VertexBatch.AddAction, Vector2.Divide(inflation, barSize.Yx)); // Fall bar var fallBarData = Reversed ? fallAudioData[fallAudioData.Count - 1 - index] : fallAudioData[index]; var scale = (fallBarData * 2 + Size.X) / Size.X; var multiplier = 1f / (scale * 2); var fallBarPosition = new Vector2(rotationCos / 2 + multiplier, rotationSin / 2 + multiplier) * Size.X * scale; var fallBarSize = new Vector2((float)BarWidth, 2); var fallBarAmplitudeOffset = new Vector2(rotationCos * fallBarSize.Y, rotationSin * fallBarSize.Y); var fallBarRectangle = new Quad( Vector2Extensions.Transform(fallBarPosition - bottomOffset, DrawInfo.Matrix), Vector2Extensions.Transform(fallBarPosition - bottomOffset + fallBarAmplitudeOffset, DrawInfo.Matrix), Vector2Extensions.Transform(fallBarPosition + bottomOffset, DrawInfo.Matrix), Vector2Extensions.Transform(fallBarPosition + bottomOffset + fallBarAmplitudeOffset, DrawInfo.Matrix) ); DrawQuad( Texture, fallBarRectangle, DrawColourInfo.Colour, null, VertexBatch.AddAction, Vector2.Divide(inflation, fallBarSize.Yx)); } } } }
42.176923
128
0.589458
[ "MIT" ]
MATRIX-feather/LLin
Mvis.Plugin.SandboxToPanel/Components/Visualizers/Circular/FallMusicVisualizerDrawable.cs
5,485
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ using Aliyun.Acs.Core; using System.Collections.Generic; namespace Aliyun.Acs.Mts.Model.V20140618 { public class QueryAsrPipelineListResponse : AcsResponse { private string requestId; private List<QueryAsrPipelineList_Pipeline> pipelineList; private List<string> nonExistIds; public string RequestId { get { return requestId; } set { requestId = value; } } public List<QueryAsrPipelineList_Pipeline> PipelineList { get { return pipelineList; } set { pipelineList = value; } } public List<string> NonExistIds { get { return nonExistIds; } set { nonExistIds = value; } } public class QueryAsrPipelineList_Pipeline { private string id; private string name; private string state; private string priority; private QueryAsrPipelineList_NotifyConfig notifyConfig; public string Id { get { return id; } set { id = value; } } public string Name { get { return name; } set { name = value; } } public string State { get { return state; } set { state = value; } } public string Priority { get { return priority; } set { priority = value; } } public QueryAsrPipelineList_NotifyConfig NotifyConfig { get { return notifyConfig; } set { notifyConfig = value; } } public class QueryAsrPipelineList_NotifyConfig { private string topic; private string queueName; public string Topic { get { return topic; } set { topic = value; } } public string QueueName { get { return queueName; } set { queueName = value; } } } } } }
16.342857
63
0.582867
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-mts/Mts/Model/V20140618/QueryAsrPipelineListResponse.cs
2,860
C#
namespace NugetVisualizer.Core.Domain { public class Snapshot { public string Name { get; set; } public int Version { get; set; } } }
16.4
40
0.591463
[ "Apache-2.0" ]
sepharg/NugetVisualizer
NugetVisualizer/Core/Domain/Snapshot.cs
166
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Repository; using Repository.Framework; using Simptom.Framework; using Simptom.Framework.Models; using Simptom.Framework.Repositories; namespace Simptom.Test.Unit.Core.Repositories { public abstract class IActivityCategoryRepositoryTest { protected IList<Mock<IActivityCategory>> activityCategories; protected Mock<IActivityCategory> activityCategory; protected Mock<IActivityCategoryKey> key; protected IList<Mock<IActivityCategoryKey>> keys; protected Mock<IModelFactory> modelFactory; protected IActivityCategoryRepository repository; protected Mock<IActivityCategorySearch> search; protected Mock<IActivityCategoriesSearch> searchMultiple; protected TestContext testContext; protected Mock<IDbTransaction> transaction; public TestContext TestContext { get { return this.testContext; } set { this.testContext = value; } } [TestInitialize] public virtual void TestInitialize() { this.key = new Mock<IActivityCategoryKey>(); this.key.Setup(_key => _key.ID).Returns(Guid.NewGuid()); this.keys = new List<Mock<IActivityCategoryKey>>() { this.key }; this.activityCategory = new Mock<IActivityCategory>(); this.activityCategory.SetupAllProperties(); this.activityCategory.Setup(_model => _model.Key).Returns(() => { return this.key.Object; }); this.activityCategory.Setup(_model => _model.Name).Returns("rwVpoPZrecFqsSJodEVWuKCo"); this.activityCategories = new List<Mock<IActivityCategory>>() { activityCategory }; this.modelFactory = new Mock<IModelFactory>(); this.modelFactory.Setup(mf => mf.GenerateActivityCategoryKey(It.IsAny<Guid>())).Returns(this.key.Object); this.modelFactory.Setup(mf => mf.GenerateActivityCategory(It.IsAny<IActivityCategoryKey>())).Returns(this.activityCategory.Object); this.search = new Mock<IActivityCategorySearch>(); this.searchMultiple = new Mock<IActivityCategoriesSearch>(); this.transaction = new Mock<IDbTransaction>(); } [TestCleanup] public virtual void TestCleanup() { this.transaction = null; } public virtual void AddRow(IActivityCategory activityCategory) { throw new NotImplementedException(); } public virtual void AddRows(IEnumerable<IActivityCategory> activityCategories) { foreach(IActivityCategory activityCategory in activityCategories) AddRow(activityCategory); } #region Delete [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Delete_ActivityCategory_Test_Throws_Error_When_Key_Is_Null() { //Arrange IActivityCategoryKey injected = null; //Act this.repository.Delete(injected, this.transaction.Object); //Assert } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Delete_Multiple_ActivityCategories_Test_Throws_Error_When_Any_Key_Is_Null() { //Arrange IList<IActivityCategoryKey> injected = new List<IActivityCategoryKey>() { new Mock<IActivityCategoryKey>().Object, null }; //Act this.repository.Delete(injected, this.transaction.Object); //Assert } #endregion Delete #region Exists [TestMethod] public virtual void Exists_ActivityCategories_Test_Returns_Empty_List_When_Keys_Were_Not_Found() { //Arrange int actual; int expected = 0; IEnumerable<IActivityCategoryKey> injected = this.keys.Select(_key => _key.Object).ToList(); //Act actual = this.repository.Exists(injected).Count(); //Assert Assert.AreEqual(expected, actual); } [TestMethod] public virtual void Exists_ActivityCategories_Test_Returns_List_Of_Keys_When_They_Were_Found() { //Arrange int actual; int expected = 1; IEnumerable<IActivityCategoryKey> injected = this.keys.Select(_key => _key.Object).ToList(); AddRow(this.activityCategory.Object); //Act actual = this.repository.Exists(injected).Count(); //Assert Assert.AreEqual(expected, actual); } [TestMethod] public virtual void Exists_ActivityCategories_Test_Returns_Non_Null_List_When_Keys_Were_Not_Found() { //Arrange IEnumerable<IActivityCategoryKey> actual; IEnumerable<IActivityCategoryKey> injected = this.keys.Select(_key => _key.Object).ToList(); //Act actual = this.repository.Exists(injected); //Assert Assert.IsNotNull(actual); } [TestMethod] public virtual void Exists_ActivityCategory_Test_Returns_False_When_Key_Was_Not_Found() { //Arrange bool actual; bool expected = false; IActivityCategoryKey injected = this.key.Object; //Act actual = this.repository.Exists(injected); //Assert Assert.AreEqual(expected, actual); } [TestMethod] public virtual void Exists_ActivityCategory_Test_Returns_True_When_Key_Was_Found() { //Arrange bool actual; bool expected = true; IActivityCategoryKey injected = this.key.Object; AddRow(this.activityCategory.Object); //Act actual = this.repository.Exists(injected); //Assert Assert.AreEqual(expected, actual); } #endregion Exists #region Insert [TestMethod] public virtual void Insert_ActivityCategory_Test_Gets_ActivityCategory_Name() { //Arrange Mock<IActivityCategory> expected = this.activityCategory; //Act this.repository.Insert(expected.Object, this.transaction.Object); //Assert expected.VerifyGet(e => e.Name, Times.AtLeast(1)); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Insert_ActivityCategory_Test_Throws_Error_When_ActivityCategory_Is_Null() { //Arrange IActivityCategory injected = null; //Act this.repository.Insert(injected, this.transaction.Object); //Assert } [TestMethod] public virtual void Insert_Multiple_ActivityCategories_Test_Gets_Name_For_Every_ActivityCategory() { //Arrange IList<Mock<IActivityCategory>> expected = new List<Mock<IActivityCategory>>() { this.activityCategory }; IList<IActivityCategory> injected = this.activityCategories.Select(e => e.Object).ToList(); //Act this.repository.Insert(injected, this.transaction.Object); //Assert foreach(Mock<IActivityCategory> activityCategory in expected) activityCategory.VerifyGet(_activityCategory => _activityCategory.Name, Times.AtLeast(1)); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Insert_Multiple_ActivityCategories_Test_Throws_Error_When_ActivityCategory_Is_Null() { //Arrange IEnumerable<IActivityCategory> injected = null; //Act this.repository.Insert(injected, this.transaction.Object); //Assert } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Insert_Multiple_ActivityCategories_Test_Throws_Error_When_Any_ActivityCategory_Is_Null() { //Arrange IEnumerable<IActivityCategory> injected = new List<IActivityCategory>() { this.activityCategory.Object, null }; //Act this.repository.Insert(injected, this.transaction.Object); //Assert } #endregion Insert #region Select [TestMethod] public virtual void Select_ActivityCategories_Test_Calls_Generate_On_ModelFactory() { //Arrange Mock<IModelFactory> expected = this.modelFactory; Mock<IActivityCategoriesSearch> injected = this.searchMultiple; AddRow(this.activityCategory.Object); //Act this.repository.Select(injected.Object); //Assert expected.Verify(e => e.GenerateActivityCategory(It.IsAny<IActivityCategoryKey>())); } [TestMethod] public virtual void Select_ActivityCategories_Test_Calls_GenerateActivityCategoryKey_On_ModelFactory() { //Arrange Mock<IModelFactory> expected = this.modelFactory; Mock<IActivityCategoriesSearch> injected = this.searchMultiple; AddRow(this.activityCategory.Object); //Act this.repository.Select(injected.Object); //Assert expected.Verify(e => e.GenerateActivityCategoryKey(It.IsAny<Guid>())); } #endregion Select #region Select Single [TestMethod] public virtual void SelectSingle_ActivityCategory_Test_Calls_Generate_On_ModelFactory() { //Arrange Mock<IModelFactory> expected = this.modelFactory; Mock<IActivityCategorySearch> injected = this.search; AddRow(this.activityCategory.Object); //Act this.repository.Select(injected.Object); //Assert expected.Verify(e => e.GenerateActivityCategory(It.IsAny<IActivityCategoryKey>())); } [TestMethod] public virtual void SelectSingle_ActivityCategory_Test_Calls_GenerateActivityCategoryKey_On_ModelFactory() { //Arrange Mock<IModelFactory> expected = this.modelFactory; Mock<IActivityCategorySearch> injected = this.search; AddRow(this.activityCategory.Object); //Act this.repository.Select(injected.Object); //Assert expected.Verify(e => e.GenerateActivityCategoryKey(It.IsAny<Guid>())); } [TestMethod] public virtual void SelectSingle_ActivityCategory_Test_Returns_ActivityCategory_When_Is_Found() { //Arrange IActivityCategory actual; Mock<IActivityCategory> expected = this.activityCategory; Mock<IActivityCategorySearch> injected = this.search; AddRow(expected.Object); //Act actual = this.repository.Select(injected.Object); //Assert Assert.IsNotNull(actual); } [TestMethod] public virtual void SelectSingle_ActivityCategory_Test_Returns_Null_When_ActivityCategory_Is_Not_Found() { //Arrange IActivityCategory actual; Mock<IActivityCategorySearch> injected = this.search; //Act actual = this.repository.Select(injected.Object); //Assert Assert.IsNull(actual); } [TestMethod] public virtual void SelectSingle_ActivityCategory_Test_Sets_ActivityCategory_Name() { //Arrange Mock<IActivityCategory> expected = this.activityCategory; Mock<IActivityCategorySearch> injected = this.search; AddRow(expected.Object); //Act this.repository.Select(injected.Object); //Assert expected.VerifySet(e => e.Name = It.IsAny<string>()); } #endregion Select Single #region Update [TestMethod] public virtual void Update_ActivityCategory_Test_Gets_ActivityCategory_Key() { //Arrange Mock<IActivityCategory> expected = this.activityCategory; AddRow(expected.Object); //Act expected.Invocations.Clear(); this.repository.Update(expected.Object, this.transaction.Object); //Assert expected.VerifyGet(e => e.Key, Times.AtLeast(1)); } [TestMethod] public virtual void Update_ActivityCategory_Test_Gets_ActivityCategory_Name() { //Arrange Mock<IActivityCategory> expected = this.activityCategory; AddRow(expected.Object); //Act expected.Invocations.Clear(); this.repository.Update(expected.Object, this.transaction.Object); //Assert expected.VerifyGet(e => e.Name, Times.AtLeast(1)); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Update_ActivityCategory_Test_Throws_Error_When_ActivityCategory_Is_Null() { //Arrange IActivityCategory injected = null; //Act this.repository.Update(injected, this.transaction.Object); //Assert } [TestMethod] public virtual void Update_Multiple_ActivityCategories_Test_Gets_Key_For_ActivityCategory() { //Arrange IList<Mock<IActivityCategory>> expected = new List<Mock<IActivityCategory>>() { this.activityCategory }; IList<IActivityCategory> injected = expected.Select(e => e.Object).ToList(); AddRow(this.activityCategory.Object); //Act foreach(Mock<IActivityCategory> activityCategory in expected) activityCategory.Invocations.Clear(); this.repository.Update(injected, this.transaction.Object); //Assert foreach(Mock<IActivityCategory> activityCategory in expected) activityCategory.VerifyGet(m => m.Key, Times.AtLeast(1)); } [TestMethod] public virtual void Update_Multiple_ActivityCategories_Test_Gets_Name_For_ActivityCategory() { //Arrange IList<Mock<IActivityCategory>> expected = new List<Mock<IActivityCategory>>() { this.activityCategory }; AddRow(this.activityCategory.Object); //Act foreach(Mock<IActivityCategory> activityCategory in expected) activityCategory.Invocations.Clear(); this.repository.Update(expected.Select(e => e.Object).ToList(), this.transaction.Object); //Assert foreach(Mock<IActivityCategory> activityCategory in expected) activityCategory.VerifyGet(m => m.Name, Times.AtLeast(1)); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Update_Multiple_ActivityCategories_Test_Throws_Error_When_ActivityCategory_Is_Null() { //Arrange IEnumerable<IActivityCategory> expected = null; //Act this.repository.Update(expected, this.transaction.Object); //Assert } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public virtual void Update_Multiple_ActivityCategories_Test_Throws_Error_When_Any_ActivityCategory_Is_Null() { //Arrange IEnumerable<IActivityCategory> expected = new List<IActivityCategory>() { this.activityCategory.Object, null }; //Act this.repository.Update(expected, this.transaction.Object); //Assert } #endregion Update } }
27.744898
134
0.739904
[ "MIT" ]
billynieto/Simptom
Simptom.Test.Unit/Core/Repositories/IActivityCategoryRepositoryTest.cs
13,595
C#
using System; namespace BookTask { class Program { //Vähän sekava kun mukana muistiinpanoja! static void Main(string[] args) { Console.OutputEncoding = System.Text.Encoding.UTF8; Book book = new Book(); // new:llä luodaan aina uusi olio, object,instanssi,Muodostin funktiota kutsutaan instanssin muodostuksen yhteydessä new-lauseella book.PrintBookInfo(); // tulostaa kirjan tiedot Book newBook = new Book("C#- Ohjelmointi", "Ghodrat Moghadampour", 97895, 29.90); newBook.PrintBookInfo(); // tulostaa uuden kirjan tiedot Console.WriteLine(newBook.CompareBook(book)); //vertaa hintoja Console.ReadKey(); } } }
32.086957
166
0.639566
[ "MIT" ]
SannaNaTu/object-orientated-programming
object method/Book task/Program.cs
744
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.EntityFrameworkCore.TestUtilities; namespace Microsoft.EntityFrameworkCore { public class MusicStoreSqliteTest : MusicStoreTestBase<MusicStoreSqliteTest.MusicStoreSqliteFixture> { public MusicStoreSqliteTest(MusicStoreSqliteFixture fixture) : base(fixture) { } public class MusicStoreSqliteFixture : MusicStoreFixtureBase { protected override ITestStoreFactory TestStoreFactory => SqliteTestStoreFactory.Instance; } } }
36.052632
111
0.737226
[ "Apache-2.0" ]
belav/efcore
test/EFCore.Sqlite.FunctionalTests/MusicStoreSqliteTest.cs
685
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the OpenSimulator Project nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following // attributes. // // change them to the information which is associated with the assembly // you compile. [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("http://opensimulator.org")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("Copyright (c) OpenSimulator.org Developers 2007-2009")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // The assembly version has following format : // // Major.Minor.Build.Revision // // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): [assembly: AssemblyVersion("0.6.3.*")] // The following attributes specify the key for the sign of your assembly. See the // .NET Framework documentation for more information about signing. // This is not required, if you don't want signing let these attributes like they're. [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")]
46.066667
85
0.756512
[ "BSD-3-Clause" ]
Ideia-Boa/diva-distribution
OpenSim/Grid/Manager/OpenGridServices.Manager/AssemblyInfo.cs
2,764
C#
using PropertyChanged; using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace NegativeEncoder.Presets { [AddINotifyPropertyChangedInterface] public class Preset : INotifyPropertyChanged { public Preset() { PropertyChanged += PresetProvider.CurrentPreset_PropertyChanged; } /// <summary> /// 预设标题 /// </summary> public string PresetName { get; set; } = "Default"; /// <summary> /// 编码器 /// </summary> public Encoder Encoder { get; set; } = Encoder.NVENC; /// <summary> /// 目标编码 /// </summary> public Codec Codec { get; set; } = Codec.AVC; /// <summary> /// 编码模式 /// </summary> public EncodeMode EncodeMode { get; set; } = EncodeMode.VBR; public string CqpParam { get; set; } = "24:26:27"; public string CbrParam { get; set; } = "6500"; public string VbrParam { get; set; } = "6500"; public string LaParam { get; set; } = "6500"; public string LaicqParam { get; set; } = "23"; public string QvbrParam { get; set; } = "6500"; /// <summary> /// 编码质量预设 /// (预设名-说明=NVENC/QSV/VCE) /// Performance-性能优先=performance/faster/fast /// Balanced-平衡=default/balanced/default /// Quality-质量优先=quality/best/slow /// </summary> public QualityPreset QualityPreset { get; set; } = QualityPreset.Balanced; /// <summary> /// 色深 /// </summary> public ColorDepth ColorDepth { get; set; } = ColorDepth.C8Bit; /// <summary> /// VBR质量,当使用VBR模式(NVENC)/QVBR模式(QSV)时,可以指定目标质量(0~51,默认23) /// </summary> public string VbrQuailty { get; set; } = "23"; /// <summary> /// 是否设置最大GOP /// </summary> public bool IsSetMaxGop { get; set; } = false; /// <summary> /// 最大GOP的设置值 /// </summary> public string MaxGop { get; set; } = "600"; /// <summary> /// 是否使用固定GOP /// </summary> public bool IsStrictGop { get; set; } = false; /// <summary> /// 是否设置显示比例 /// </summary> public bool IsSetDar { get; set; } = false; /// <summary> /// 显示比例 /// </summary> public string Dar { get; set; } = "16:9"; /// <summary> /// 是否设置限制最大码率 /// </summary> public bool IsSetMaxBitrate { get; set; } = false; /// <summary> /// 最大码率 /// </summary> public string MaxBitrate { get; set; } = "22000"; /// <summary> /// 解码器 (avhw-avformat+cuvid硬解 avsw-avformat+ffmpeg软解) /// </summary> public Decoder Decoder { get; set; } = Decoder.AVHW; /// <summary> /// D3D显存模式(仅QSV) /// </summary> public D3DMode D3DMode { get; set; } = D3DMode.Auto; /// <summary> /// 是否设置音频同步 /// </summary> public bool IsSetAvSync { get; set; } = false; /// <summary> /// 音频同步 /// </summary> public AVSync AVSync { get; set; } = AVSync.Cfr; /// <summary> /// 是否启用反交错 /// </summary> public bool IsUseDeInterlace { get; set; } = false; /// <summary> /// 交错源场顺序 /// </summary> public FieldOrder FieldOrder { get; set; } = FieldOrder.TFF; /// <summary> /// 硬件反交错模式 /// </summary> public DeInterlaceMethodPreset DeInterlaceMethodPreset { get; set; } = DeInterlaceMethodPreset.HwNormal; /// <summary> /// 是否设置输出分辨率(调整大小) /// </summary> public bool IsSetOutputRes { get; set; } = false; public string OutputResWidth { get; set; } = "1920"; public string OUtputResHeight { get; set; } = "1080"; /// <summary> /// 音频编码选项 /// </summary> public AudioEncode AudioEncode { get; set; } = AudioEncode.Copy; public string AudioBitrate { get; set; } = "192"; /// <summary> /// 输出格式 /// </summary> public OutputFormat OutputFormat { get; set; } = OutputFormat.MP4; /// <summary> /// 使用自定义参数 /// </summary> public bool IsUseCustomParameters { get; set; } = false; public string CustomParameters { get; set; } = ""; /// <summary> /// 是否输出带有HDR标记的视频 /// </summary> public bool IsOutputHdr { get; set; } = false; /// <summary> /// 输出HDR格式 /// </summary> public HdrType OutputHdrType { get; set; } = HdrType.HLG; /// <summary> /// 是否在每个IDR帧重复输出Header /// </summary> public bool IsRepeatHeaders { get; set; } = false; /// <summary> /// 是否进行HDR格式转换 /// </summary> public bool IsConvertHdrType { get; set; } = false; public HdrType OldHdrType { get; set; } = HdrType.HLG; public HdrType NewHdrType { get; set; } = HdrType.HDR10; /// <summary> /// HDR转SDR算法 /// </summary> public Hdr2Sdr Hdr2SdrMethod { get; set; } = Hdr2Sdr.None; public string Hdr2SdrDeSatStrength { get; set; } = "0.75"; /// <summary> /// 封装格式 /// </summary> public OutputFormat MuxFormat { get; set; } = OutputFormat.MP4; public event PropertyChangedEventHandler PropertyChanged; } }
28.127551
112
0.514058
[ "MIT" ]
hoshinohikari/NegativeEncoder
NegativeEncoder/Presets/Preset.cs
5,973
C#
// <copyright file="DomainMetadata.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // </copyright> using System; namespace OpenTelemetry.AutoInstrumentation.Util; /// <summary> /// Dedicated helper class for consistently referencing Process and AppDomain information. /// </summary> internal static class DomainMetadata { private const string UnknownName = "unknown"; private static bool _initialized; private static string _currentProcessName; private static string _currentProcessMachineName; private static int _currentProcessId; private static bool _processDataUnavailable; private static bool _domainDataPoisoned; private static bool? _isAppInsightsAppDomain; static DomainMetadata() { TrySetProcess(); } public static string ProcessName { get { return !_processDataUnavailable ? _currentProcessName : UnknownName; } } public static string MachineName { get { return !_processDataUnavailable ? _currentProcessMachineName : UnknownName; } } public static int ProcessId { get { return !_processDataUnavailable ? _currentProcessId : -1; } } public static string AppDomainName { get { try { return !_domainDataPoisoned ? AppDomain.CurrentDomain.FriendlyName : UnknownName; } catch { _domainDataPoisoned = true; return UnknownName; } } } public static int AppDomainId { get { try { return !_domainDataPoisoned ? AppDomain.CurrentDomain.Id : -1; } catch { _domainDataPoisoned = true; return -1; } } } public static bool ShouldAvoidAppDomain() { if (_isAppInsightsAppDomain == null) { _isAppInsightsAppDomain = AppDomainName.IndexOf("ApplicationInsights", StringComparison.OrdinalIgnoreCase) >= 0; } return _isAppInsightsAppDomain.Value; } private static void TrySetProcess() { try { if (!_processDataUnavailable && !_initialized) { _initialized = true; ProcessHelpers.GetCurrentProcessInformation(out _currentProcessName, out _currentProcessMachineName, out _currentProcessId); } } catch { _processDataUnavailable = true; } } }
26.467213
140
0.613193
[ "Apache-2.0" ]
Kielek/opentelemetry-dotnet-instrumentation
src/OpenTelemetry.AutoInstrumentation/Util/DomainMetadata.cs
3,229
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace TasksExample.Api.Models { public class ErrorItem { public int HttpCode { get; set; } public int InternalCode { get; set; } public string Message { get; set; } } }
18.5625
45
0.653199
[ "MIT" ]
devdaves/TasksExample
TasksExample.Api/Models/ErrorItem.cs
299
C#
//===================================================================================== // All Rights Reserved , Copyright © Murphy //===================================================================================== using Rbac.Entity; using Rbac.IData; using Rbac.Core; using Rbac.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rbac.Data.SQLServer { /// <summary> /// /// <author> /// <name>lixinyu</name> /// <date></date> /// </author> /// </summary> public class WorkFlow_BillFieldDal : BaseDAL<WorkFlow_BillField>,IWorkFlow_BillFieldDal { /// <summary> /// 创建公共方法 /// </summary> /// <param name="where"></param> /// <param name="orderBy"></param> /// <returns></returns> /// </summary> protected override string CreateSQL(string where, string orderBy) { where = where.IsNullOrEmpty() ? " 1=1 " : where; orderBy = orderBy.IsNullOrEmpty() ? "order by SortCode" : " order by " + orderBy; return string.Format(@"select * from WorkFlow_BillField where {0} {1}", where, orderBy); } } }
32.575
101
0.479662
[ "MIT" ]
codeyu/codeyu.rbac.web
src/RbacWeb/Rbac.Data.SQLServer/WorkFlow/WorkFlow_BillFieldDal.cs
1,316
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SuperGlue.Logging.NLog")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SuperGlue.Logging.NLog")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("34c4b64c-e571-4fa1-b1c8-b9ad14271d05")]
43.909091
84
0.772257
[ "MIT" ]
MattiasJakobsson/Jajo.Web
src/SuperGlue.Logging.NLog/Properties/AssemblyInfo.cs
969
C#
namespace SlightUrl.Data.Tests { using System; using System.Data.Common; using System.Data.Entity; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Effort; using FluentAssertions; using Ploeh.AutoFixture; using SlightUrl.Data.Interfaces; using Xunit; [SuppressMessage("ReSharper", "PossibleInvalidOperationException")] public class AuditableEntityFacts { private static readonly Fixture AutoFixture = new Fixture(); private readonly AuditableSlightContext _context; public AuditableEntityFacts() { var connection = DbConnectionFactory.CreateTransient(); _context = new AuditableSlightContext(connection); } [Fact] public void When_new_entity_is_saved_update_created_date_and_updated_date() { var entity = new AuditableEntity(); // Act _context.AuditableEntities.Add(entity); _context.SaveChanges().Should().Be(1); // Assert entity.CreatedOn.Should().HaveValue(); entity.ModifiedOn.Should().HaveValue(); } [Fact] public void When_updated_entity_is_saved_update_updated_date() { var oldEntity = new AuditableEntity(); _context.AuditableEntities.Add(oldEntity); _context.SaveChanges(); var oldCreatedOn = oldEntity.CreatedOn; var oldModifiedOn = oldEntity.ModifiedOn.Value; Thread.Sleep(10); // Act var entity = _context.AuditableEntities.Find(oldEntity.Id); entity.Value = AutoFixture.Create<string>(); _context.SaveChanges().Should().Be(1); // Assert entity.CreatedOn.Should().Be(oldCreatedOn); entity.ModifiedOn.Should().BeAfter(oldModifiedOn); } [Fact] public async Task When_new_entity_is_saved_update_created_date_and_updated_date_async() { var entity = new AuditableEntity(); // Act _context.AuditableEntities.Add(entity); (await _context.SaveChangesAsync()).Should().Be(1); // Assert entity.CreatedOn.Should().HaveValue(); entity.ModifiedOn.Should().HaveValue(); } [Fact] public async Task When_updated_entity_is_saved_update_updated_date_async() { var oldEntity = new AuditableEntity(); _context.AuditableEntities.Add(oldEntity); await _context.SaveChangesAsync(); var oldCreatedOn = oldEntity.CreatedOn; var oldModifiedOn = oldEntity.ModifiedOn.Value; await Task.Delay(10); // Act var entity = _context.AuditableEntities.Find(oldEntity.Id); entity.Value = AutoFixture.Create<string>(); (await _context.SaveChangesAsync()).Should().Be(1); // Assert entity.CreatedOn.Should().Be(oldCreatedOn); entity.ModifiedOn.Should().BeAfter(oldModifiedOn); } } public class AuditableSlightContext : SlightContext { public DbSet<AuditableEntity> AuditableEntities { get; set; } public AuditableSlightContext(DbConnection connection) : base(connection) { } } public class AuditableEntity : IAuditableEntity { public int Id { get; set; } public string Value { get; set; } public DateTimeOffset? CreatedOn { get; set; } public DateTimeOffset? ModifiedOn { get; set; } } }
29.516129
95
0.613388
[ "MIT" ]
Silvenga/SlightUrl
tests/SlightUrl.Data.Tests/AuditableEntityFacts.cs
3,662
C#