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 |
|---|---|---|---|---|---|---|---|---|
using System;
namespace GreatingbyName
{
class Program
{
static void Main(string[] args)
{
string name = Console.ReadLine();
Console.WriteLine($"Hello, {name}!");
}
}
}
| 16.5 | 49 | 0.519481 | [
"MIT"
] | DumanBG/C-Sharp-SoftUni | JustCSharp/greetingByName/Program.cs | 233 | 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 AdventureText.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;
}
}
}
}
| 32.774194 | 149 | 0.612205 | [
"MIT"
] | JoshuaLamusga/Adventure-Text | AdventureText/Properties/Settings.Designer.cs | 1,018 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using HexCS.Core;
using UnityEngine;
namespace HexUN.Math
{
/// <summary>
/// Serializable version of a DVector2
/// </summary>
[Serializable]
public struct DVector2
{
/// <summary>
/// The X value of the coordinate
/// </summary>
public int X;
/// <summary>
/// The Y value of the coordinate
/// </summary>
public int Y;
/// <summary>
/// Make DVector2 with two int coordinates
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
public DVector2(int x, int y)
{
X = x;
Y = y;
}
/// <summary>
/// Returns new GridCoordinate2 with x and y values summed
/// </summary>
/// <param name="vec1">First GridCoordinate2</param>
/// <param name="vec2">Second GridCoordinate2</param>
/// <returns>addition</returns>
public static DVector2 operator +(DVector2 vec1, DVector2 vec2)
{
return new DVector2(vec1.X + vec2.X, vec1.Y + vec2.Y);
}
/// <summary>
/// Returns new GridCoordinate2 with x and y values subtracted.
/// </summary>
/// <param name="vec1">Minuhend</param>
/// <param name="vec2">Subtrahend</param>
/// <returns>difference</returns>
public static DVector2 operator -(DVector2 vec1, DVector2 vec2)
{
return new DVector2(vec1.X - vec2.X, vec1.Y - vec2.Y);
}
/// <inheritdoc />
public static bool operator ==(DVector2 vec1, DVector2 vec2) => vec1.X == vec2.X && vec1.Y == vec2.Y;
/// <inheritdoc />
public static bool operator !=(DVector2 vec1, DVector2 vec2) => !(vec1.X == vec2.X && vec1.Y == vec2.Y);
/// <inheritdoc />
public override bool Equals(object obj) => obj is DVector2 vector && X == vector.X && Y == vector.Y;
/// <inheritdoc />
public override int GetHashCode() => UTHash.BasicHash(X, Y);
public static implicit operator DiscreteVector2(DVector2 v) => new DiscreteVector2(v.X, v.Y);
public static implicit operator DVector2(DiscreteVector2 v) => new DVector2(v.X, v.Y);
}
} | 31.418919 | 112 | 0.556559 | [
"MIT"
] | atomata/VClassroom_Proto_VSolar_ApparatusUPackageDevelopment | Assets/Dependencies/Hex/UN/Runtime/Scripts/Engine/Math/DVector2.cs | 2,327 | C# |
// ==========================================================================
// CommandContextTests.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System;
using FakeItEasy;
using Xunit;
namespace Squidex.Infrastructure.CQRS.Commands
{
public class CommandContextTests
{
private readonly ICommand command = A.Dummy<ICommand>();
[Fact]
public void Should_instantiate_and_provide_command()
{
var sut = new CommandContext(command);
Assert.Equal(command, sut.Command);
Assert.False(sut.IsCompleted);
Assert.NotEqual(Guid.Empty, sut.ContextId);
}
[Fact]
public void Should_be_handled_when_succeeded()
{
var sut = new CommandContext(command);
sut.Complete();
Assert.True(sut.IsCompleted);
}
[Fact]
public void Should_provide_result_valid_when_succeeded_with_value()
{
var sut = new CommandContext(command);
sut.Complete("RESULT");
}
}
}
| 26.375 | 78 | 0.493681 | [
"MIT"
] | andrewhoi/squidex | tests/Squidex.Infrastructure.Tests/CQRS/Commands/CommandContextTests.cs | 1,268 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace EasyCondominio.Models
{
public class Condominio
{
public int CondominioId { get; set; }
[DisplayName("Condomínio")]
[Required(ErrorMessage = "Informe o nome do condomínio")]
[StringLength(100, ErrorMessage = "O campo aceita até no máximo 100 caracteres")]
public string NomeCondominio { get; set; }
[DisplayName("Quantidade de blocos")]
[Required(ErrorMessage = "Informe a quantidade de blocos para o condomínio")]
public int NumeroBlocos { get; set; }
[DisplayName("Endereço")]
[Required(ErrorMessage = "Informe o endereço do proprietário")]
[StringLength(150, ErrorMessage = "O campo aceita até no máximo 150 caracteres")]
public string Endereco { get; set; }
[StringLength(50, ErrorMessage = "O campo aceita até no máximo 50 caracteres")]
public string Complemento { get; set; }
[Required(ErrorMessage = "Informe o bairro do proprietário")]
[StringLength(100, ErrorMessage = "O campo aceita até no máximo 150 caracteres")]
public string Bairro { get; set; }
[Required(ErrorMessage = "Informe a cidade do proprietário")]
[StringLength(150, ErrorMessage = "O campo aceita até no máximo 150 caracteres")]
public string Cidade { get; set; }
[Required(ErrorMessage = "Informe o estado")]
[StringLength(150, ErrorMessage = "O campo aceita até no máximo 150 caracteres")]
public string UF { get; set; }
public virtual ICollection<Bloco> Blocos { get; set; }
}
} | 38.666667 | 89 | 0.668966 | [
"MIT"
] | Mualumene/Condominio | EasyCondominio/Models/Condominio.cs | 1,762 | C# |
using System;
using System.CommandLine;
using System.CommandLine.Parsing;
using System.Linq;
namespace rifftool
{
public static class CommandExtensions
{
/// <summary>
/// Add the options to the <cref see="Command"/>
/// </summary>
/// <param name="command">Command to add to</param>
/// <param name="options">Options to add</param>
public static void AddOptions(this Command command, params Option[] options)
{
foreach (var opt in options)
{
command.AddOption(opt);
}
}
/// <summary>
/// Add the options; 0 or 1 can be applied.
/// </summary>
/// <param name="command">Command to add to</param>
/// <param name="options">Options to add</param>
public static void AddMutuallyExclusive(this Command command, params Option[] options)
{
AddOptions(command, options);
command.AddValidator(result => ValidateMutualExclusion(result, options));
}
/// <summary>
/// Add the options; only 1 can be applied.
/// </summary>
/// <param name="command">Command to add to</param>
/// <param name="options">Options to add</param>
public static void AddMutuallyExclusiveRequired(this Command command, params Option[] options)
{
AddOptions(command, options);
command.AddValidator(result => ValidateMutualExclusion(result, options) ?? ValidateOnlyOne(result, options));
}
private static string ValidateMutualExclusion(CommandResult result, Option[] options)
{
if (options.Count(o => result.ValueForOption(o.Name)!=null)>1)
{
return "The options [" + ToString(options) + "] are mutually exclusive.";
}
return null;
}
private static string ValidateOnlyOne(CommandResult result, Option[] options)
{
if (options.Count(o => result.ValueForOption(o.Name)!=null)!=1)
{
return "One of the options [" + ToString(options) + "] is required.";
}
return null;
}
private static string ToString(Option[] options)
{
return String.Join(", ", options.AsEnumerable<Option>().Select(o => o.RawAliases.First()));
}
}
} | 34.314286 | 121 | 0.571191 | [
"Apache-2.0"
] | adbancroft/riff | rifftool/CommandExtensions.cs | 2,402 | C# |
namespace EfficientDynamoDb.Internal.Reader
{
internal readonly struct ReadResult<TValue> where TValue : class
{
public TValue? Value { get; }
public uint Crc { get; }
public ReadResult(TValue? value, uint crc)
{
Value = value;
Crc = crc;
}
}
} | 22 | 68 | 0.545455 | [
"MIT"
] | AllocZero/EfficientDynamoDb | src/EfficientDynamoDb/Internal/Reader/ReadResult.cs | 330 | C# |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
using Microsoft.DotNet.Maestro.Client.Models;
namespace Microsoft.DotNet.Maestro.Client
{
public partial interface ISubscriptions
{
Task<IImmutableList<Subscription>> ListSubscriptionsAsync(
int? channelId = default,
bool? enabled = default,
string sourceRepository = default,
string targetRepository = default,
CancellationToken cancellationToken = default
);
Task<Subscription> CreateAsync(
SubscriptionData body,
CancellationToken cancellationToken = default
);
Task<Subscription> GetSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
);
Task<Subscription> DeleteSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
);
Task<Subscription> UpdateSubscriptionAsync(
Guid id,
SubscriptionUpdate body = default,
CancellationToken cancellationToken = default
);
Task<Subscription> TriggerSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
);
Task TriggerDailyUpdateAsync(
CancellationToken cancellationToken = default
);
Task<PagedResponse<SubscriptionHistoryItem>> GetSubscriptionHistoryAsync(
Guid id,
int? page = default,
int? perPage = default,
CancellationToken cancellationToken = default
);
Task RetrySubscriptionActionAsyncAsync(
Guid id,
long timestamp,
CancellationToken cancellationToken = default
);
}
internal partial class Subscriptions : IServiceOperations<MaestroApi>, ISubscriptions
{
public Subscriptions(MaestroApi client)
{
Client = client ?? throw new ArgumentNullException(nameof(client));
}
public MaestroApi Client { get; }
partial void HandleFailedRequest(RestApiException ex);
partial void HandleFailedListSubscriptionsRequest(RestApiException ex);
public async Task<IImmutableList<Subscription>> ListSubscriptionsAsync(
int? channelId = default,
bool? enabled = default,
string sourceRepository = default,
string targetRepository = default,
CancellationToken cancellationToken = default
)
{
using (var _res = await ListSubscriptionsInternalAsync(
channelId,
enabled,
sourceRepository,
targetRepository,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnListSubscriptionsFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedListSubscriptionsRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<IImmutableList<Subscription>>> ListSubscriptionsInternalAsync(
int? channelId = default,
bool? enabled = default,
string sourceRepository = default,
string targetRepository = default,
CancellationToken cancellationToken = default
)
{
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions";
var _query = new QueryBuilder();
if (!string.IsNullOrEmpty(sourceRepository))
{
_query.Add("sourceRepository", Client.Serialize(sourceRepository));
}
if (!string.IsNullOrEmpty(targetRepository))
{
_query.Add("targetRepository", Client.Serialize(targetRepository));
}
if (channelId != default)
{
_query.Add("channelId", Client.Serialize(channelId));
}
if (enabled != default)
{
_query.Add("enabled", Client.Serialize(enabled));
}
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Get, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnListSubscriptionsFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<IImmutableList<Subscription>>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<IImmutableList<Subscription>>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedCreateRequest(RestApiException ex);
public async Task<Subscription> CreateAsync(
SubscriptionData body,
CancellationToken cancellationToken = default
)
{
using (var _res = await CreateInternalAsync(
body,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnCreateFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, content),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedCreateRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<Subscription>> CreateInternalAsync(
SubscriptionData body,
CancellationToken cancellationToken = default
)
{
if (body == default)
{
throw new ArgumentNullException(nameof(body));
}
if (!body.IsValid)
{
throw new ArgumentException("The parameter is not valid", nameof(body));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions";
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Post, _url);
string _requestContent = null;
if (body != default)
{
_requestContent = Client.Serialize(body);
_req.Content = new StringContent(_requestContent, Encoding.UTF8)
{
Headers =
{
ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"),
},
};
}
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnCreateFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<Subscription>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<Subscription>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedGetSubscriptionRequest(RestApiException ex);
public async Task<Subscription> GetSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
using (var _res = await GetSubscriptionInternalAsync(
id,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnGetSubscriptionFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedGetSubscriptionRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<Subscription>> GetSubscriptionInternalAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}";
_path = _path.Replace("{id}", Client.Serialize(id));
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Get, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnGetSubscriptionFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<Subscription>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<Subscription>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedDeleteSubscriptionRequest(RestApiException ex);
public async Task<Subscription> DeleteSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
using (var _res = await DeleteSubscriptionInternalAsync(
id,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnDeleteSubscriptionFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedDeleteSubscriptionRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<Subscription>> DeleteSubscriptionInternalAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}";
_path = _path.Replace("{id}", Client.Serialize(id));
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Delete, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnDeleteSubscriptionFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<Subscription>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<Subscription>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedUpdateSubscriptionRequest(RestApiException ex);
public async Task<Subscription> UpdateSubscriptionAsync(
Guid id,
SubscriptionUpdate body = default,
CancellationToken cancellationToken = default
)
{
using (var _res = await UpdateSubscriptionInternalAsync(
id,
body,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnUpdateSubscriptionFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, content),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedUpdateSubscriptionRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<Subscription>> UpdateSubscriptionInternalAsync(
Guid id,
SubscriptionUpdate body = default,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}";
_path = _path.Replace("{id}", Client.Serialize(id));
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(new HttpMethod("PATCH"), _url);
string _requestContent = null;
if (body != default)
{
_requestContent = Client.Serialize(body);
_req.Content = new StringContent(_requestContent, Encoding.UTF8)
{
Headers =
{
ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"),
},
};
}
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnUpdateSubscriptionFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<Subscription>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<Subscription>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedTriggerSubscriptionRequest(RestApiException ex);
public async Task<Subscription> TriggerSubscriptionAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
using (var _res = await TriggerSubscriptionInternalAsync(
id,
cancellationToken
).ConfigureAwait(false))
{
return _res.Body;
}
}
internal async Task OnTriggerSubscriptionFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedTriggerSubscriptionRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<Subscription>> TriggerSubscriptionInternalAsync(
Guid id,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}/trigger";
_path = _path.Replace("{id}", Client.Serialize(id));
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Post, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnTriggerSubscriptionFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<Subscription>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<Subscription>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedTriggerDailyUpdateRequest(RestApiException ex);
public async Task TriggerDailyUpdateAsync(
CancellationToken cancellationToken = default
)
{
using (await TriggerDailyUpdateInternalAsync(
cancellationToken
).ConfigureAwait(false))
{
return;
}
}
internal async Task OnTriggerDailyUpdateFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedTriggerDailyUpdateRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse> TriggerDailyUpdateInternalAsync(
CancellationToken cancellationToken = default
)
{
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/triggerDaily";
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Post, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnTriggerDailyUpdateFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse
{
Request = _req,
Response = _res,
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedGetSubscriptionHistoryRequest(RestApiException ex);
public async Task<PagedResponse<SubscriptionHistoryItem>> GetSubscriptionHistoryAsync(
Guid id,
int? page = default,
int? perPage = default,
CancellationToken cancellationToken = default
)
{
using (var _res = await GetSubscriptionHistoryInternalAsync(
id,
page,
perPage,
cancellationToken
).ConfigureAwait(false))
{
return new PagedResponse<SubscriptionHistoryItem>(Client, OnGetSubscriptionHistoryFailed, _res);
}
}
internal async Task OnGetSubscriptionHistoryFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedGetSubscriptionHistoryRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse<IImmutableList<SubscriptionHistoryItem>>> GetSubscriptionHistoryInternalAsync(
Guid id,
int? page = default,
int? perPage = default,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}/history";
_path = _path.Replace("{id}", Client.Serialize(id));
var _query = new QueryBuilder();
if (page != default)
{
_query.Add("page", Client.Serialize(page));
}
if (perPage != default)
{
_query.Add("perPage", Client.Serialize(perPage));
}
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Get, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnGetSubscriptionHistoryFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse<IImmutableList<SubscriptionHistoryItem>>
{
Request = _req,
Response = _res,
Body = Client.Deserialize<IImmutableList<SubscriptionHistoryItem>>(_responseContent),
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
partial void HandleFailedRetrySubscriptionActionAsyncRequest(RestApiException ex);
public async Task RetrySubscriptionActionAsyncAsync(
Guid id,
long timestamp,
CancellationToken cancellationToken = default
)
{
using (await RetrySubscriptionActionAsyncInternalAsync(
id,
timestamp,
cancellationToken
).ConfigureAwait(false))
{
return;
}
}
internal async Task OnRetrySubscriptionActionAsyncFailed(HttpRequestMessage req, HttpResponseMessage res)
{
var content = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var ex = new RestApiException<ApiError>(
new HttpRequestMessageWrapper(req, null),
new HttpResponseMessageWrapper(res, content),
Client.Deserialize<ApiError>(content)
);
HandleFailedRetrySubscriptionActionAsyncRequest(ex);
HandleFailedRequest(ex);
Client.OnFailedRequest(ex);
throw ex;
}
internal async Task<HttpOperationResponse> RetrySubscriptionActionAsyncInternalAsync(
Guid id,
long timestamp,
CancellationToken cancellationToken = default
)
{
if (id == default)
{
throw new ArgumentNullException(nameof(id));
}
if (timestamp == default)
{
throw new ArgumentNullException(nameof(timestamp));
}
const string apiVersion = "2019-01-16";
var _path = "/api/subscriptions/{id}/retry/{timestamp}";
_path = _path.Replace("{id}", Client.Serialize(id));
_path = _path.Replace("{timestamp}", Client.Serialize(timestamp));
var _query = new QueryBuilder();
_query.Add("api-version", Client.Serialize(apiVersion));
var _uriBuilder = new UriBuilder(Client.BaseUri);
_uriBuilder.Path = _uriBuilder.Path.TrimEnd('/') + _path;
_uriBuilder.Query = _query.ToString();
var _url = _uriBuilder.Uri;
HttpRequestMessage _req = null;
HttpResponseMessage _res = null;
try
{
_req = new HttpRequestMessage(HttpMethod.Post, _url);
if (Client.Credentials != null)
{
await Client.Credentials.ProcessHttpRequestAsync(_req, cancellationToken).ConfigureAwait(false);
}
_res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false);
if (!_res.IsSuccessStatusCode)
{
await OnRetrySubscriptionActionAsyncFailed(_req, _res);
}
string _responseContent = await _res.Content.ReadAsStringAsync().ConfigureAwait(false);
return new HttpOperationResponse
{
Request = _req,
Response = _res,
};
}
catch (Exception)
{
_req?.Dispose();
_res?.Dispose();
throw;
}
}
}
}
| 35.825275 | 128 | 0.545075 | [
"MIT"
] | dagood/arcade-services | src/Maestro/Client/src/Generated/Subscriptions.cs | 32,601 | C# |
/**
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* 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.
*
*/
using Newtonsoft.Json;
namespace IBM.WatsonDeveloperCloud.CompareComply.v1.Model
{
/// <summary>
/// The status and message of the deletion request.
/// </summary>
public class FeedbackDeleted : BaseModel
{
/// <summary>
/// HTTP return code.
/// </summary>
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
public long? Status { get; set; }
/// <summary>
/// Status message returned from the service.
/// </summary>
[JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
public string Message { get; set; }
}
}
| 31.525 | 79 | 0.676447 | [
"Apache-2.0"
] | anlblci/dotnetwatson | src/IBM.WatsonDeveloperCloud.CompareComply.v1/Model/FeedbackDeleted.cs | 1,261 | C# |
using System;
using System.IO;
namespace WebAssembly{
/// <summary>A WebAssembly elem_segment.</summary>
public class ElemSegment{
/// <summary>The table index.</summary>
public uint Index;
/// <summary>Computes the offset at which to place the elements.</summary>
public object Offset;
/// <summary>A sequence of function indices.</summary>
public uint[] Elems;
public ElemSegment(){}
public ElemSegment(Reader reader){
// Index:
Index=reader.VarUInt32();
// Offset:
Offset=reader.InitExpression();
// Elements:
Elems=new uint[ (int) reader.VarUInt32()];
for(int i=0;i<Elems.Length;i++){
// Read it:
Elems[i]=reader.VarUInt32();
}
}
}
} | 17.642857 | 76 | 0.626181 | [
"MIT"
] | Bablakeluke/WebAssembly.NET | Source/ElemSegment.cs | 741 | C# |
namespace DoctrineShips.Web.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Configuration;
using System.Web.Mvc;
using AutoMapper;
using DoctrineShips.Entities;
using DoctrineShips.Service;
using DoctrineShips.Validation;
using DoctrineShips.Web.ViewModels;
using Tools;
[Authorize(Roles = "SiteAdmin")]
public class SiteController : Controller
{
private readonly IDoctrineShipsServices doctrineShipsServices;
public SiteController(IDoctrineShipsServices doctrineShipsServices)
{
this.doctrineShipsServices = doctrineShipsServices;
}
public ActionResult Accounts()
{
SiteAccountsViewModel viewModel = new SiteAccountsViewModel();
viewModel.Accounts = this.doctrineShipsServices.GetAccounts();
// Set the ViewBag to the TempData status value passed from the Add & Delete methods.
ViewBag.Status = TempData["Status"];
return View(viewModel);
}
[HttpPost]
[ValidateAntiForgeryToken()]
public ActionResult AddAccount(SiteAccountsViewModel viewModel)
{
if (ModelState.IsValid)
{
string generatedKey = string.Empty;
int newAccountId = 0;
// Clean the passed description.
string cleanDescription = Server.HtmlEncode(viewModel.Description);
IValidationResult validationResult = this.doctrineShipsServices.AddAccount(cleanDescription, out generatedKey, out newAccountId);
// If the validationResult is not valid, something did not validate in the service layer.
if (validationResult.IsValid)
{
TempData["Status"] = "The account was successfully added.";
if (generatedKey != string.Empty && newAccountId != 0)
{
// Assign the new key to TempData to be passed to the accounts view.
string authUrl = this.doctrineShipsServices.Settings.WebsiteDomain + "/A/" + newAccountId + "/" + generatedKey;
TempData["Status"] += " The account admin auth url is: <a href=\"" + authUrl + "\">" + authUrl + "</a>";
}
}
else
{
TempData["Status"] = "Error: The account was not added, a validation error occured.<br /><b>Error Details: </b>";
foreach (var error in validationResult.Errors)
{
TempData["Status"] += error.Value + "<br />";
}
}
return RedirectToAction("Accounts");
}
else
{
// Re-populate the view model and return with any validation errors.
viewModel.Accounts = this.doctrineShipsServices.GetAccounts();
return View("~/Views/Site/Accounts.cshtml", viewModel);
}
}
[HttpPost]
[ValidateAntiForgeryToken()]
public ActionResult DeleteAccount(SiteAccountsViewModel viewModel)
{
if (viewModel.RemoveList != null)
{
IValidationResult validationResults = new ValidationResult();
foreach (var accountId in viewModel.RemoveList)
{
// Delete the current account and merge any validation errors in to a validation result object.
validationResults.Merge(this.doctrineShipsServices.DeleteAccount(accountId));
}
// If the validationResult is not valid, something did not validate in the service layer.
if (validationResults.IsValid)
{
TempData["Status"] = "All selected accounts were successfully removed.";
}
else
{
TempData["Status"] = "Error: One or more errors were detected while removing the selected accounts.<br /><b>Error Details: </b>";
foreach (var error in validationResults.Errors)
{
TempData["Status"] += error.Value + "<br />";
}
}
}
return RedirectToAction("Accounts");
}
public ActionResult Customers()
{
SiteCustomersViewModel viewModel = new SiteCustomersViewModel();
viewModel.Customers = this.doctrineShipsServices.GetCustomers();
// Set the ViewBag to the TempData status value passed from the Add & Delete methods.
ViewBag.Status = TempData["Status"];
return View(viewModel);
}
[HttpPost]
[ValidateAntiForgeryToken()]
public ActionResult AddCustomer(SiteCustomersViewModel viewModel)
{
if (ModelState.IsValid)
{
IValidationResult validationResult = this.doctrineShipsServices.AddCustomer(viewModel.Name, viewModel.Type);
// If the validationResult is not valid, something did not validate in the service layer.
if (validationResult.IsValid)
{
TempData["Status"] = "The customer was successfully added.";
}
else
{
TempData["Status"] = "Error: The customer was not added, a validation error occured.<br /><b>Error Details: </b>";
foreach (var error in validationResult.Errors)
{
TempData["Status"] += error.Value + "<br />";
}
}
return RedirectToAction("Customers");
}
else
{
// Re-populate the view model and return with any validation errors.
viewModel.Customers = this.doctrineShipsServices.GetCustomers();
return View("~/Views/Site/Customers.cshtml", viewModel);
}
}
[HttpPost]
[ValidateAntiForgeryToken()]
public ActionResult DeleteCustomer(SiteCustomersViewModel viewModel)
{
if (viewModel.RemoveList != null)
{
// Create a collection for the results of the delete operations.
ICollection<bool> resultList = new List<bool>();
foreach (var customerId in viewModel.RemoveList)
{
resultList.Add(this.doctrineShipsServices.DeleteCustomer(customerId));
}
// If any of the deletions failed, output an error message.
if (resultList.Contains(false))
{
TempData["Status"] = "Error: One or more customers were not removed.";
}
else
{
TempData["Status"] = "All selected customers were successfully removed.";
}
}
return RedirectToAction("Customers");
}
public ActionResult Log()
{
SiteLogViewModel viewModel = new SiteLogViewModel();
TimeSpan logPeriod = TimeSpan.FromDays(7);
viewModel.LogMessages = this.doctrineShipsServices.GetLogMessages(logPeriod);
return View(viewModel);
}
[HttpPost]
[ValidateAntiForgeryToken()]
public ActionResult ClearLog()
{
this.doctrineShipsServices.ClearLog();
return RedirectToAction("Log");
}
public ActionResult UpdateAccountState(string accountId, string isActive)
{
// Clean the controller parameters.
int cleanAccountId = Conversion.StringToInt32(Server.HtmlEncode(accountId));
bool cleanIsActive = Conversion.StringToBool(Server.HtmlEncode(isActive));
// Update the state.
this.doctrineShipsServices.UpdateAccountState(cleanAccountId, cleanIsActive);
return RedirectToAction("Accounts");
}
}
}
| 37.108108 | 149 | 0.557295 | [
"MIT"
] | bravecollective/doctrine-contracts | DoctrineShips.Web/Controllers/SiteController.cs | 8,240 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using XeonComputers.Models;
namespace XeonComputers.Services.Contracts
{
public interface IUsersService
{
XeonUser GetUserByUsername(string username);
bool CreateCompany(Company company, string username);
IEnumerable<XeonUser> GetUsersWithPartnersRequsts();
bool AddUserToRole(string username, string role);
bool RemoveUserFromToRole(string name, string role);
IEnumerable<XeonUser> GetUsersByRole(string role);
Company GetUserCompanyByUsername(string name);
void EditFirstName(XeonUser user, string firstName);
void EditLastName(XeonUser user, string lastName);
}
} | 25.964286 | 61 | 0.730399 | [
"MIT"
] | EmORz/Simple_Example_Projects | XeonComputers-master/XeonComputers.Services/Contracts/IUsersService.cs | 729 | C# |
namespace StackExchange.Redis
{
/// <summary>
/// Describes a consumer within a consumer group, retrieved using the XINFO CONSUMERS command. <see cref="IDatabase.StreamConsumerInfo"/>
/// </summary>
public readonly struct StreamConsumerInfo
{
internal StreamConsumerInfo(string name, int pendingMessageCount, long idleTimeInMilliseconds)
{
Name = name;
PendingMessageCount = pendingMessageCount;
IdleTimeInMilliseconds = idleTimeInMilliseconds;
}
/// <summary>
/// The name of the consumer.
/// </summary>
public string Name { get; }
/// <summary>
/// The number of pending messages for the consumer. A pending message is one that has been
/// received by the consumer but not yet acknowledged.
/// </summary>
public int PendingMessageCount { get; }
/// <summary>
/// The idle time, if any, for the consumer.
/// </summary>
public long IdleTimeInMilliseconds { get; }
}
}
| 32.272727 | 141 | 0.613146 | [
"Apache-2.0"
] | 100star/StackExchange.Redis | src/StackExchange.Redis/StreamConsumerInfo.cs | 1,067 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SuspirarDoces.Domain.Entities
{
public class Usuario: Base
{
public string Email { get; set; }
public string Senha { get; set; }
}
}
| 20.2 | 42 | 0.656766 | [
"MIT"
] | GabrielBarbosaBizerra/SuspirarDoces | SuspirarDoces.Domain/Entities/Usuario.cs | 305 | C# |
using System.Collections.Specialized;
namespace DataGridAsyncDemo.filtersort
{
public class FilterDescriptionList : DescriptionList<FilterDescription>
{
public void OnCollectionReset()
{
this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
}
} | 28.5 | 112 | 0.736842 | [
"MIT"
] | KodiakBuildingPartners/VirtualizingObservableCollection | DataGridAsyncDemo/filtersort/FilterDescriptionList.cs | 342 | C# |
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using Quobject.EngineIoClientDotNet.Modules;
using Quobject.EngineIoClientDotNet.Parser;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Quobject.EngineIoClientDotNet_Tests.ParserTests
{
[TestClass]
public class TestsParser
{
public interface IPacketTest
{
Packet GetPacket();
}
[TestMethod]
public void EncodeTests()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var testList = new List<IPacketTest>()
{
new EncodeAsStringCallback(),
new DecodeAsPacketCallback(),
new NoDataCallback(),
new EncodeOpenPacket(),
new EncodeClosePacket(),
new EncodePingPacket(),
new EncodePongPacket(),
new EncodeMessagePacket(),
new EncodeUTF8SpecialCharsPacket(),
new EncodeUpgradePacket(),
new EncodeFormat1(),
new EncodeFormat2(),
};
foreach (var test in testList)
{
Parser.EncodePacket(test.GetPacket(), (IEncodeCallback) test);
}
}
public class EncodeAsStringCallback : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Assert.IsInstanceOfType(data, typeof(string));
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE, "test");
}
}
public class DecodeAsPacketCallback : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Assert.IsInstanceOfType(Parser.DecodePacket((string)data), typeof(Packet));
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE, "test");
}
}
public class NoDataCallback : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.MESSAGE, p.Type);
Assert.IsNull(p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE);
}
}
public class EncodeOpenPacket : IEncodeCallback, IPacketTest
{
private static string Json = "{\"some\":\"json\"}";
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.OPEN, p.Type);
Assert.AreEqual(Json, p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.OPEN, Json);
}
}
public class EncodeClosePacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.CLOSE, p.Type);
}
public Packet GetPacket()
{
return new Packet(Packet.CLOSE);
}
}
public class EncodePingPacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.PING, p.Type);
Assert.AreEqual("1", p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.PING, "1");
}
}
public class EncodePongPacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.PONG, p.Type);
Assert.AreEqual("1", p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.PONG, "1");
}
}
public class EncodeMessagePacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.MESSAGE, p.Type);
Assert.AreEqual("aaa", p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE, "aaa");
}
}
public class EncodeUTF8SpecialCharsPacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.MESSAGE, p.Type);
Assert.AreEqual("utf8 — string", p.Data);
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE, "utf8 — string");
}
}
public class EncodeUpgradePacket : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
Packet p = Parser.DecodePacket((string) data);
Assert.AreEqual(Packet.UPGRADE, p.Type);
}
public Packet GetPacket()
{
return new Packet(Packet.UPGRADE);
}
}
public class EncodeFormat1 : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
var dataString = data as string;
var r = new Regex(@"[0-9]", RegexOptions.IgnoreCase);
Assert.IsTrue(r.Match(dataString).Success);
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE);
}
}
public class EncodeFormat2 : IEncodeCallback, IPacketTest
{
public void Call(object data)
{
var dataString = data as string;
Assert.AreEqual("4test", dataString);
}
public Packet GetPacket()
{
return new Packet(Packet.MESSAGE, "test");
}
}
public class EncodePayloadsCallback : IEncodeCallback
{
public void Call(object data)
{
Assert.IsInstanceOfType(data, typeof(byte[]));
}
}
[TestMethod]
public void EncodePayloads()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var packets = new Packet[] {new Packet(Packet.PING), new Packet(Packet.PONG),};
Parser.EncodePayload(packets, new EncodePayloadsCallback());
}
public class EncodeAndDecodePayloads_EncodeCallback : IEncodeCallback
{
public void Call(object data)
{
Parser.DecodePayload((byte[]) data, new EncodeAndDecodePayloads_DecodeCallback());
}
public class EncodeAndDecodePayloads_DecodeCallback : IDecodePayloadCallback
{
public bool Call(Packet packet, int index, int total)
{
bool isLast = index + 1 == total;
Assert.IsTrue(isLast);
return true;
}
}
}
[TestMethod]
public void EncodeAndDecodePayloads()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var packets = new Packet[] {new Packet(Packet.MESSAGE, "a"),};
Parser.EncodePayload(packets, new EncodeAndDecodePayloads_EncodeCallback());
}
public class EncodeAndDecodePayloads_EncodeCallback2 : IEncodeCallback
{
public void Call(object data)
{
Parser.DecodePayload((byte[]) data, new EncodeAndDecodePayloads_DecodeCallback2());
}
public class EncodeAndDecodePayloads_DecodeCallback2 : IDecodePayloadCallback
{
public bool Call(Packet packet, int index, int total)
{
var isLast = index + 1 == total;
Assert.AreEqual(isLast ? Packet.PING : Packet.MESSAGE, packet.Type);
return true;
}
}
}
[TestMethod]
public void EncodeAndDecodePayloads2()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var packets = new Packet[] {new Packet(Packet.MESSAGE, "a"), new Packet(Packet.PING),};
Parser.EncodePayload(packets, new EncodeAndDecodePayloads_EncodeCallback2());
}
public class EncodeAndDecodeEmptyPayloads_EncodeCallback : IEncodeCallback
{
public void Call(object data)
{
Parser.DecodePayload((byte[]) data, new EncodeAndDecodeEmptyPayloads_DecodeCallback());
}
public class EncodeAndDecodeEmptyPayloads_DecodeCallback : IDecodePayloadCallback
{
public bool Call(Packet packet, int index, int total)
{
Assert.AreEqual(Packet.OPEN, packet.Type);
var isLast = index + 2 == total;
Assert.IsNull(isLast);
return true;
}
}
}
[TestMethod]
public void EncodeAndDecodeEmptyPayloads()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var packets = new Packet[] {};
Parser.EncodePayload(packets, new EncodeAndDecodeEmptyPayloads_EncodeCallback());
}
public class EncodeAndDecodeBinaryContents_EncodeCallback : IEncodeCallback
{
public void Call(object data)
{
Parser.DecodePayload((byte[]) data, new EncodeAndDecodeBinaryContents_DecodeCallback());
}
public class EncodeAndDecodeBinaryContents_DecodeCallback : IDecodePayloadCallback
{
public bool Call(Packet packet, int index, int total)
{
Assert.AreEqual(Packet.MESSAGE, packet.Type);
var isLast = index + 1 == total;
if (!isLast)
{
//Assert.AreEqual(FirstBuffer(), packet.Data);
CollectionAssert.AreEqual(FirstBuffer(), (byte[]) packet.Data);
}
else
{
//Assert.AreEqual(SecondBuffer(), packet.Data);
CollectionAssert.AreEqual(SecondBuffer(), (byte[])packet.Data);
}
return true;
}
}
}
[TestMethod]
public void EncodeAndDecodeBinaryContents()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var firstBuffer = FirstBuffer();
var secondBuffer = SecondBuffer();
var packets = new Packet[]
{new Packet(Packet.MESSAGE, firstBuffer), new Packet(Packet.MESSAGE, secondBuffer)};
Parser.EncodePayload(packets, new EncodeAndDecodeBinaryContents_EncodeCallback());
}
private static byte[] SecondBuffer()
{
var secondBuffer = new byte[4];
for (int i = 0; i < secondBuffer.Length; i++)
{
secondBuffer[i] = (byte) (5 + i);
}
return secondBuffer;
}
private static byte[] FirstBuffer()
{
var firstBuffer = new byte[5];
for (int i = 0; i < firstBuffer.Length; i++)
{
firstBuffer[i] = (byte) i;
}
return firstBuffer;
}
private static byte[] ThirdBuffer()
{
var result = new byte[123];
for (int i = 0; i < result.Length; i++)
{
result[i] = (byte) i;
}
return result;
}
public class EncodeMixedBinaryAndStringContents_EncodeCallback : IEncodeCallback
{
public void Call(object data)
{
Parser.DecodePayload((byte[]) data, new EncodeMixedBinaryAndStringContents_DecodeCallback());
}
public class EncodeMixedBinaryAndStringContents_DecodeCallback : IDecodePayloadCallback
{
public bool Call(Packet packet, int index, int total)
{
if (index == 0)
{
Assert.AreEqual(Packet.MESSAGE, packet.Type);
//Assert.AreEqual(ThirdBuffer(), packet.Data);
CollectionAssert.AreEqual(ThirdBuffer(), (byte[])packet.Data);
}
else if (index == 1)
{
Assert.AreEqual(Packet.MESSAGE, packet.Type);
Assert.AreEqual("hello", packet.Data);
}
else
{
Assert.AreEqual(Packet.CLOSE, packet.Type);
}
return true;
}
}
}
[TestMethod]
public void EncodeMixedBinaryAndStringContents()
{
LogManager.SetupLogManager();
var log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod());
log.Info("Start");
var packets = new Packet[]
{
new Packet(Packet.MESSAGE, ThirdBuffer()),
new Packet(Packet.MESSAGE, "hello"),
new Packet(Packet.CLOSE),
};
Parser.EncodePayload(packets, new EncodeMixedBinaryAndStringContents_EncodeCallback());
}
}
}
| 30.748441 | 109 | 0.513049 | [
"MIT"
] | marcochavezf/EngineIoClientDotNet | Src/EngineIoClientDotNet.Tests.windowsphone8.UnitTestApp/ParserTests/TestsParser.cs | 14,802 | C# |
/**
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
**/
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PhpSerializerNET.Test.DataTypes;
namespace PhpSerializerNET.Test.Deserialize.Options {
[TestClass]
public class EnableTypeLookupTest {
[TestMethod]
public void Enabled_Finds_Class() {
var result = PhpSerialization.Deserialize(
"O:11:\"MappedClass\":2:{s:2:\"en\";s:12:\"Hello World!\";s:2:\"de\";s:11:\"Hallo Welt!\";}",
new PhpDeserializationOptions() { EnableTypeLookup = true }
);
Assert.IsInstanceOfType(result, typeof(MappedClass));
// Check that everything was deserialized onto the properties:
var mappedClass = result as MappedClass;
Assert.AreEqual("Hello World!", mappedClass.English);
Assert.AreEqual("Hallo Welt!", mappedClass.German);
}
[TestMethod]
public void Disabled_UseStdClass() {
var result = PhpSerialization.Deserialize(
"O:11:\"MappedClass\":2:{s:2:\"en\";s:12:\"Hello World!\";s:2:\"de\";s:11:\"Hallo Welt!\";}",
new PhpDeserializationOptions() {
EnableTypeLookup = false,
StdClass = StdClassOption.Dictionary,
}
);
Assert.IsInstanceOfType(result, typeof(PhpSerializerNET.PhpObjectDictionary));
// Check that everything was deserialized onto the properties:
var dictionary = result as PhpObjectDictionary;
Assert.AreEqual("Hello World!", dictionary["en"]);
Assert.AreEqual("Hallo Welt!", dictionary["de"]);
}
}
} | 33.957447 | 97 | 0.70802 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | StringEpsilon/PhpSerializerNET | PhpSerializerNET.Test/Deserialize/Options/EnableTypeLookup.cs | 1,596 | C# |
using System;
using System.Configuration;
using Xunit;
using System.Threading.Tasks;
namespace Shift.UnitTest
{
public class JobServerTest
{
private string connectionString;
private string processID;
public JobServerTest()
{
var appSettingsReader = new AppSettingsReader();
connectionString = appSettingsReader.GetValue("RedisConnectionString", typeof(string)) as string;
processID = this.ToString();
}
[Fact]
public void JobServerConfigNullTest()
{
var ex = Assert.Throws<ArgumentNullException>(() => { var jobServer = new JobServer(null); });
}
[Fact]
public void JobServerStorageModeNullTest()
{
var config = new ServerConfig();
config.StorageMode = "";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
var ex = Assert.Throws<ArgumentNullException>(() => { var jobServer = new JobServer(config); });
}
[Fact]
public void JobServerProcessIDTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = "";
var jobServer = new JobServer(config);
Assert.NotNull(config.ProcessID);
}
[Fact]
public void JobServerDBConnectionStringNullTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = "";
config.ProcessID = processID;
var ex = Assert.Throws<ArgumentNullException>(() => { var jobServer = new JobServer(config); });
}
//Should get no Exception
[Fact]
public void JobServerMaxRunnableJobsZeroTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 0;
var jobServer = new JobServer(config);
Assert.True(true);
}
[Fact]
public void RunServerTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
var jobServer = new JobServer(config);
jobServer.RunServer();
Assert.True(true);
}
[Fact]
public async Task RunServerAsyncTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
var jobServer = new JobServer(config);
await jobServer.RunServerAsync();
Assert.True(true);
}
[Fact]
public void StopServerTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
config.ForceStopServer = true;
config.StopServerDelay = 1000;
var jobServer = new JobServer(config);
jobServer.StopServer();
Assert.True(true);
}
[Fact]
public async Task StopServerAsyncTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
config.ForceStopServer = true;
config.StopServerDelay = 1000;
var jobServer = new JobServer(config);
await jobServer.StopServerAsync();
Assert.True(true);
}
[Fact]
public void StopServerWaitForAllRunningJobsTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
config.ForceStopServer = false;
config.StopServerDelay = 1000;
var jobServer = new JobServer(config);
jobServer.StopServer();
Assert.True(true);
}
[Fact]
public async Task StopServerWaitForAllRunningJobsAsyncTest()
{
var config = new ServerConfig();
config.StorageMode = "redis";
config.DBConnectionString = connectionString;
config.ProcessID = processID;
config.MaxRunnableJobs = 1;
config.ForceStopServer = false;
config.StopServerDelay = 1000;
var jobServer = new JobServer(config);
await jobServer.StopServerAsync();
Assert.True(true);
}
}
}
| 31.810651 | 110 | 0.545573 | [
"MIT"
] | hhalim/Shift | Shift.UnitTest/JobServerTest.cs | 5,378 | C# |
/*
* Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
*/
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using UnityEngine;
// Image 66: Assembly-CSharp.dll - Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - Types 8552-8785
public static class SoundManager // TypeDefIndex: 8673
{
// Fields
private static readonly string soundPath; // 0x00
private static readonly float minPitch; // 0x08
private static readonly float maxPitch; // 0x0C
// Constructors
static SoundManager(); // 0x0000000180B53EF0-0x0000000180B53F70
// Methods
public static void PlaySound(string clipName, Vector3 position, float volume, float pitch, float defaultPitch = 1f /* Metadata: 0x003A6D06 */, float spatialBlend = 1f /* Metadata: 0x003A6D0A */); // 0x0000000180B53AB0-0x0000000180B53EF0
public static void SwitchMusic(); // 0x0000000180265310-0x0000000180265320
}
| 35.814815 | 237 | 0.768356 | [
"MIT"
] | TotalJTM/PrimitierModdingFramework | Dumps/PrimitierDumpV1.0.1/SoundManager.cs | 969 | C# |
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
* for more information concerning the license and the contributors participating to this project.
*/
using System.Net.Http.Headers;
using System.Security.Claims;
using System.Text.Encodings.Web;
using System.Text.Json;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
namespace AspNet.Security.OAuth.Vimeo;
public partial class VimeoAuthenticationHandler : OAuthHandler<VimeoAuthenticationOptions>
{
public VimeoAuthenticationHandler(
[NotNull] IOptionsMonitor<VimeoAuthenticationOptions> options,
[NotNull] ILoggerFactory logger,
[NotNull] UrlEncoder encoder,
[NotNull] ISystemClock clock)
: base(options, logger, encoder, clock)
{
}
protected override async Task<AuthenticationTicket> CreateTicketAsync(
[NotNull] ClaimsIdentity identity,
[NotNull] AuthenticationProperties properties,
[NotNull] OAuthTokenResponse tokens)
{
using var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", tokens.AccessToken);
using var response = await Backchannel.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, Context.RequestAborted);
if (!response.IsSuccessStatusCode)
{
await Log.UserProfileErrorAsync(Logger, response, Context.RequestAborted);
throw new HttpRequestException("An error occurred while retrieving the user profile.");
}
using var payload = JsonDocument.Parse(await response.Content.ReadAsStringAsync(Context.RequestAborted));
var principal = new ClaimsPrincipal(identity);
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
context.RunClaimActions();
await Events.CreatingTicket(context);
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
}
private static partial class Log
{
internal static async Task UserProfileErrorAsync(ILogger logger, HttpResponseMessage response, CancellationToken cancellationToken)
{
UserProfileError(
logger,
response.StatusCode,
response.Headers.ToString(),
await response.Content.ReadAsStringAsync(cancellationToken));
}
[LoggerMessage(1, LogLevel.Error, "An error occurred while retrieving the user profile: the remote server returned a {Status} response with the following payload: {Headers} {Body}.")]
private static partial void UserProfileError(
ILogger logger,
System.Net.HttpStatusCode status,
string headers,
string body);
}
}
| 42.916667 | 191 | 0.718123 | [
"Apache-2.0"
] | AnthonyYates/AspNet.Security.OAuth.Providers | src/AspNet.Security.OAuth.Vimeo/VimeoAuthenticationHandler.cs | 3,092 | C# |
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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 System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.S3.Model
{
/// <summary>
/// The parameters to request upload of a part in a multipart upload operation.
/// </summary>
/// <remarks>
/// <para>
/// If PartSize is not specified then the rest of the content from the file
/// or stream will be sent to Amazon S3.
/// </para>
/// <para>
/// You must set either the FilePath or InputStream. If FilePath is set then the FilePosition
/// property must be set.
/// </para>
/// </remarks>
public partial class UploadPartRequest : AmazonWebServiceRequest
{
private Stream inputStream;
private string bucketName;
private string key;
private int? partNumber;
private string uploadId;
private long? partSize;
private string md5Digest;
private ServerSideEncryptionCustomerMethod serverSideCustomerEncryption;
private string serverSideEncryptionCustomerProvidedKey;
private string serverSideEncryptionCustomerProvidedKeyMD5;
private string filePath;
private long? filePosition;
private bool lastPart;
internal int IVSize { get; set; }
/// <summary>
/// Caller needs to set this to true when uploading the last part. This property only needs to be set
/// when using the AmazonS3EncryptionClient.
/// </summary>
public bool IsLastPart
{
get { return this.lastPart; }
set { this.lastPart = value; }
}
/// <summary>
/// Input stream for the request; content for the request will be read from the stream.
/// </summary>
public Stream InputStream
{
get { return this.inputStream; }
set { this.inputStream = value; }
}
// Check to see if Body property is set
internal bool IsSetInputStream()
{
return this.inputStream != null;
}
/// <summary>
/// The name of the bucket containing the object to receive the part.
/// </summary>
public string BucketName
{
get { return this.bucketName; }
set { this.bucketName = value; }
}
// Check to see if Bucket property is set
internal bool IsSetBucketName()
{
return this.bucketName != null;
}
/// <summary>
/// The key of the object.
/// </summary>
public string Key
{
get { return this.key; }
set { this.key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this.key != null;
}
/// <summary>
/// Part number of part being uploaded.
///
/// </summary>
public int PartNumber
{
get { return this.partNumber.GetValueOrDefault(); }
set { this.partNumber = value; }
}
// Check to see if PartNumber property is set
internal bool IsSetPartNumber()
{
return this.partNumber.HasValue;
}
/// <summary>
/// The size of the part to be uploaded.
/// </summary>
public long PartSize
{
get { return this.partSize.GetValueOrDefault(); }
set { this.partSize = value; }
}
/// <summary>
/// Checks if PartSize property is set.
/// </summary>
/// <returns>true if PartSize property is set.</returns>
internal bool IsSetPartSize()
{
return this.partSize.HasValue;
}
/// <summary>
/// Upload ID identifying the multipart upload whose part is being uploaded.
///
/// </summary>
public string UploadId
{
get { return this.uploadId; }
set { this.uploadId = value; }
}
// Check to see if UploadId property is set
internal bool IsSetUploadId()
{
return this.uploadId != null;
}
/// <summary>
/// An MD5 digest for the part.
/// </summary>
public string MD5Digest
{
get { return this.md5Digest; }
set { this.md5Digest = value; }
}
/// <summary>
/// The Server-side encryption algorithm to be used with the customer provided key.
///
/// </summary>
public ServerSideEncryptionCustomerMethod ServerSideEncryptionCustomerMethod
{
get { return this.serverSideCustomerEncryption; }
set { this.serverSideCustomerEncryption = value; }
}
// Check to see if ServerSideEncryptionCustomerMethod property is set
internal bool IsSetServerSideEncryptionCustomerMethod()
{
return this.serverSideCustomerEncryption != null && this.serverSideCustomerEncryption != ServerSideEncryptionCustomerMethod.None;
}
/// <summary>
/// The base64-encoded encryption key for Amazon S3 to use to encrypt the object
/// <para>
/// Using the encryption key you provide as part of your request Amazon S3 manages both the encryption, as it writes
/// to disks, and decryption, when you access your objects. Therefore, you don't need to maintain any data encryption code. The only
/// thing you do is manage the encryption keys you provide.
/// </para>
/// <para>
/// When you retrieve an object, you must provide the same encryption key as part of your request. Amazon S3 first verifies
/// the encryption key you provided matches, and then decrypts the object before returning the object data to you.
/// </para>
/// <para>
/// Important: Amazon S3 does not store the encryption key you provide.
/// </para>
/// </summary>
public string ServerSideEncryptionCustomerProvidedKey
{
get { return this.serverSideEncryptionCustomerProvidedKey; }
set { this.serverSideEncryptionCustomerProvidedKey = value; }
}
/// <summary>
/// Checks if ServerSideEncryptionCustomerProvidedKey property is set.
/// </summary>
/// <returns>true if ServerSideEncryptionCustomerProvidedKey property is set.</returns>
internal bool IsSetServerSideEncryptionCustomerProvidedKey()
{
return !System.String.IsNullOrEmpty(this.serverSideEncryptionCustomerProvidedKey);
}
/// <summary>
/// The MD5 of the customer encryption key specified in the ServerSideEncryptionCustomerProvidedKey property. The MD5 is
/// base 64 encoded. This field is optional, the SDK will calculate the MD5 if this is not set.
/// </summary>
public string ServerSideEncryptionCustomerProvidedKeyMD5
{
get { return this.serverSideEncryptionCustomerProvidedKeyMD5; }
set { this.serverSideEncryptionCustomerProvidedKeyMD5 = value; }
}
/// <summary>
/// Checks if ServerSideEncryptionCustomerProvidedKeyMD5 property is set.
/// </summary>
/// <returns>true if ServerSideEncryptionCustomerProvidedKey property is set.</returns>
internal bool IsSetServerSideEncryptionCustomerProvidedKeyMD5()
{
return !System.String.IsNullOrEmpty(this.serverSideEncryptionCustomerProvidedKeyMD5);
}
/// <summary>
/// <para>
/// Full path and name of a file from which the content for the part is retrieved.
/// </para>
/// <para>
/// For WinRT and Windows Phone this property must be in the form of "ms-appdata:///local/file.txt".
/// </para>
/// </summary>
public string FilePath
{
get { return this.filePath; }
set { this.filePath = value; }
}
/// <summary>
/// Checks if the FilePath property is set.
/// </summary>
/// <returns>true if FilePath property is set.</returns>
internal bool IsSetFilePath()
{
return !string.IsNullOrEmpty(this.filePath);
}
/// <summary>
/// Position in the file specified by FilePath from which to retrieve the content of the part.
/// This field is required when a file path is specified. It is ignored when using the InputStream property.
/// </summary>
public long FilePosition
{
get { return this.filePosition.GetValueOrDefault(); }
set { this.filePosition = value; }
}
/// <summary>
/// Checks if the FilePosition property is set.
/// </summary>
/// <returns>true if FilePosition property is set.</returns>
internal bool IsSetFilePosition()
{
return this.filePosition.HasValue;
}
/// <summary>
/// Checks if the MD5Digest property is set.
/// </summary>
/// <returns>true if Md5Digest property is set.</returns>
internal bool IsSetMD5Digest()
{
return !string.IsNullOrEmpty(this.md5Digest);
}
/// <summary>
/// Attach a callback that will be called as data is being sent to the AWS Service.
/// </summary>
public EventHandler<Amazon.Runtime.StreamTransferProgressArgs> StreamTransferProgress
{
get
{
return ((Amazon.Runtime.Internal.IAmazonWebServiceRequest)this).StreamUploadProgressCallback;
}
set
{
((Amazon.Runtime.Internal.IAmazonWebServiceRequest)this).StreamUploadProgressCallback = value;
}
}
/// <summary>
/// Overriden to turn off sending SHA256 header.
/// </summary>
protected override bool IncludeSHA256Header
{
get
{
return false;
}
}
/// <summary>
/// Overriden to turn on Expect 100 continue.
/// </summary>
protected override bool Expect100Continue
{
get
{
return true;
}
}
}
}
| 33.445455 | 141 | 0.586935 | [
"Apache-2.0"
] | SaschaHaertel/AmazonAWS | sdk/src/Services/S3/Custom/Model/UploadPartRequest.cs | 11,037 | C# |
using System;
using System.Linq.Expressions;
namespace AutoOperator
{
/// <summary>
/// </summary>
/// <typeparam name="T1">The type of the 1.</typeparam>
/// <typeparam name="T2">The type of the 2.</typeparam>
/// <seealso cref="AutoOperator.IOperatorExpression"/>
public interface IRelationalOperaton<T1, T2> : IOperatorExpression
{
/// <summary>
/// Operations the specified a.
/// </summary>
/// <typeparam name="TReturn1">The type of the return1.</typeparam>
/// <typeparam name="TReturn2">The type of the return2.</typeparam>
/// <param name="a">a.</param>
/// <param name="b">The b.</param>
/// <returns></returns>
IRelationalOperaton<T1, T2> Operation<TReturn1, TReturn2>(Expression<Func<T1, TReturn1>> a, Expression<Func<T2, TReturn2>> b);
}
} | 33.913043 | 128 | 0.675641 | [
"MIT"
] | sdedalus/AutoOperator | src/AutoOperator/IRelationalOperaton.cs | 782 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerQuickJump : MonoBehaviour
{
[SerializeField] float jumpHeight = 5;
[SerializeField] GroundChecker _groundChecker;
Rigidbody _rigidbody;
CommandContainer _commandContainer;
void Awake(){
_rigidbody = GetComponent<Rigidbody>();
_commandContainer = GetComponentInChildren<CommandContainer>();
if (GetComponent<GroundChecker>() != null){
_groundChecker = GetComponent<GroundChecker>();
}
}
void Update(){
//Jump
if (_commandContainer.jumpCommand && _groundChecker.IsGrounded){
_rigidbody.AddForce(Vector3.up * jumpHeight);
}
}
}
| 26.821429 | 72 | 0.664447 | [
"MIT"
] | Honestflunky8/gp21-game-engine-and-scripting-course | GE & Scripting Course/Assets/Scripts/Player Scripts/PlayerQuickJump.cs | 751 | C# |
using BEDA.CIB.Contracts.Responses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BEDA.CIB.Contracts.Requests
{
/// <summary>
/// 3.12.5.2定活互转智能通知存款协议查询请求主体
/// </summary>
public class V1_ICAGMTTRNRQ : IRequest<V1_ICAGMTTRNRS>
{
/// <summary>
/// 3.12.5.2定活互转智能通知存款协议查询请求主体
/// </summary>
public ICAGMTTRNRQ ICAGMTTRNRQ { get; set; }
}
/// <summary>
/// 3.12.5.2定活互转智能通知存款协议查询请求主体
/// </summary>
public class ICAGMTTRNRQ : BIZRQBASE
{
}
}
| 22.259259 | 58 | 0.633943 | [
"MIT"
] | fdstar/BankEnterpriseDirectAttach | src/BEDA.CIB/Contracts/Requests/3.12/V1_ICAGMTTRNRQ.cs | 711 | C# |
#region using statements
#endregion
namespace ImageSorter
{
#region class MainForm
/// <summary>
/// This is the designer for this form.
/// </summary>
partial class MainForm
{
#region Private Variables
private System.ComponentModel.IContainer components = null;
private DataJuggler.Win.Controls.LabelTextBoxBrowserControl SourceControl;
private DataJuggler.Win.Controls.LabelTextBoxBrowserControl OutputControl;
private DataJuggler.Win.Controls.Button StartButton;
private System.Windows.Forms.ProgressBar Graph;
private System.Windows.Forms.Label StatusLabel;
#endregion
#region Methods
#region Dispose(bool disposing)
/// <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);
}
#endregion
#region InitializeComponent()
/// <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(MainForm));
this.SourceControl = new DataJuggler.Win.Controls.LabelTextBoxBrowserControl();
this.OutputControl = new DataJuggler.Win.Controls.LabelTextBoxBrowserControl();
this.StartButton = new DataJuggler.Win.Controls.Button();
this.Graph = new System.Windows.Forms.ProgressBar();
this.StatusLabel = new System.Windows.Forms.Label();
this.FastFactorControl = new DataJuggler.Win.Controls.LabelTextBoxControl();
this.FastFactorInfo = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// SourceControl
//
this.SourceControl.BackColor = System.Drawing.Color.Transparent;
this.SourceControl.BrowseType = DataJuggler.Win.Controls.Enumerations.BrowseTypeEnum.Folder;
this.SourceControl.ButtonImage = ((System.Drawing.Image)(resources.GetObject("SourceControl.ButtonImage")));
this.SourceControl.ButtonWidth = 48;
this.SourceControl.DarkMode = false;
this.SourceControl.DisabledLabelColor = System.Drawing.Color.Empty;
this.SourceControl.Editable = true;
this.SourceControl.EnabledLabelColor = System.Drawing.Color.Empty;
this.SourceControl.Filter = null;
this.SourceControl.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.SourceControl.HideBrowseButton = false;
this.SourceControl.LabelBottomMargin = 0;
this.SourceControl.LabelColor = System.Drawing.Color.LemonChiffon;
this.SourceControl.LabelFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.SourceControl.LabelText = "Source Folder:";
this.SourceControl.LabelTopMargin = 0;
this.SourceControl.LabelWidth = 140;
this.SourceControl.Location = new System.Drawing.Point(47, 28);
this.SourceControl.Name = "SourceControl";
this.SourceControl.OnTextChangedListener = null;
this.SourceControl.OpenCallback = null;
this.SourceControl.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.SourceControl.SelectedPath = null;
this.SourceControl.Size = new System.Drawing.Size(700, 32);
this.SourceControl.StartPath = null;
this.SourceControl.TabIndex = 0;
this.SourceControl.TextBoxBottomMargin = 0;
this.SourceControl.TextBoxDisabledColor = System.Drawing.Color.Empty;
this.SourceControl.TextBoxEditableColor = System.Drawing.Color.Empty;
this.SourceControl.TextBoxFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.SourceControl.TextBoxTopMargin = 0;
this.SourceControl.Theme = DataJuggler.Win.Controls.Enumerations.ThemeEnum.Dark;
//
// OutputControl
//
this.OutputControl.BackColor = System.Drawing.Color.Transparent;
this.OutputControl.BrowseType = DataJuggler.Win.Controls.Enumerations.BrowseTypeEnum.Folder;
this.OutputControl.ButtonImage = ((System.Drawing.Image)(resources.GetObject("OutputControl.ButtonImage")));
this.OutputControl.ButtonWidth = 48;
this.OutputControl.DarkMode = false;
this.OutputControl.DisabledLabelColor = System.Drawing.Color.Empty;
this.OutputControl.Editable = true;
this.OutputControl.EnabledLabelColor = System.Drawing.Color.Empty;
this.OutputControl.Filter = null;
this.OutputControl.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.OutputControl.HideBrowseButton = false;
this.OutputControl.LabelBottomMargin = 0;
this.OutputControl.LabelColor = System.Drawing.Color.LemonChiffon;
this.OutputControl.LabelFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.OutputControl.LabelText = "Output Folder:";
this.OutputControl.LabelTopMargin = 0;
this.OutputControl.LabelWidth = 140;
this.OutputControl.Location = new System.Drawing.Point(47, 88);
this.OutputControl.Name = "OutputControl";
this.OutputControl.OnTextChangedListener = null;
this.OutputControl.OpenCallback = null;
this.OutputControl.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.OutputControl.SelectedPath = null;
this.OutputControl.Size = new System.Drawing.Size(700, 32);
this.OutputControl.StartPath = null;
this.OutputControl.TabIndex = 1;
this.OutputControl.TextBoxBottomMargin = 0;
this.OutputControl.TextBoxDisabledColor = System.Drawing.Color.Empty;
this.OutputControl.TextBoxEditableColor = System.Drawing.Color.Empty;
this.OutputControl.TextBoxFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.OutputControl.TextBoxTopMargin = 0;
this.OutputControl.Theme = DataJuggler.Win.Controls.Enumerations.ThemeEnum.Dark;
//
// StartButton
//
this.StartButton.BackColor = System.Drawing.Color.Transparent;
this.StartButton.ButtonText = "Start";
this.StartButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.StartButton.ForeColor = System.Drawing.Color.LemonChiffon;
this.StartButton.Location = new System.Drawing.Point(627, 368);
this.StartButton.Name = "StartButton";
this.StartButton.Size = new System.Drawing.Size(120, 48);
this.StartButton.TabIndex = 2;
this.StartButton.Theme = DataJuggler.Win.Controls.Enumerations.ThemeEnum.Dark;
this.StartButton.Click += new System.EventHandler(this.StartButton_Click);
this.StartButton.MouseEnter += new System.EventHandler(this.Button_MouseEnter);
this.StartButton.MouseLeave += new System.EventHandler(this.Button_MouseLeave);
//
// Graph
//
this.Graph.Location = new System.Drawing.Point(47, 324);
this.Graph.Name = "Graph";
this.Graph.Size = new System.Drawing.Size(700, 23);
this.Graph.TabIndex = 3;
this.Graph.Visible = false;
//
// StatusLabel
//
this.StatusLabel.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.StatusLabel.ForeColor = System.Drawing.Color.LemonChiffon;
this.StatusLabel.Location = new System.Drawing.Point(47, 295);
this.StatusLabel.Name = "StatusLabel";
this.StatusLabel.Size = new System.Drawing.Size(700, 23);
this.StatusLabel.TabIndex = 4;
this.StatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelTextBoxControl1
//
this.FastFactorControl.BackColor = System.Drawing.Color.Transparent;
this.FastFactorControl.BottomMargin = 0;
this.FastFactorControl.Editable = true;
this.FastFactorControl.Encrypted = false;
this.FastFactorControl.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.FastFactorControl.LabelBottomMargin = 0;
this.FastFactorControl.LabelColor = System.Drawing.Color.LemonChiffon;
this.FastFactorControl.LabelFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.FastFactorControl.LabelText = "* Fast Factor:";
this.FastFactorControl.LabelTopMargin = 0;
this.FastFactorControl.LabelWidth = 140;
this.FastFactorControl.Location = new System.Drawing.Point(47, 148);
this.FastFactorControl.MultiLine = false;
this.FastFactorControl.Name = "labelTextBoxControl1";
this.FastFactorControl.OnTextChangedListener = null;
this.FastFactorControl.PasswordMode = false;
this.FastFactorControl.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.FastFactorControl.Size = new System.Drawing.Size(200, 32);
this.FastFactorControl.TabIndex = 5;
this.FastFactorControl.TextBoxBottomMargin = 0;
this.FastFactorControl.TextBoxDisabledColor = System.Drawing.Color.LightGray;
this.FastFactorControl.TextBoxEditableColor = System.Drawing.Color.White;
this.FastFactorControl.TextBoxFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.FastFactorControl.TextBoxTopMargin = 0;
this.FastFactorControl.Theme = DataJuggler.Win.Controls.Enumerations.ThemeEnum.Dark;
//
// FastFactorInfo
//
this.FastFactorInfo.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.FastFactorInfo.ForeColor = System.Drawing.Color.LemonChiffon;
this.FastFactorInfo.Location = new System.Drawing.Point(47, 193);
this.FastFactorInfo.Name = "FastFactorInfo";
this.FastFactorInfo.Size = new System.Drawing.Size(700, 47);
this.FastFactorInfo.TabIndex = 6;
this.FastFactorInfo.Text = "* Optional - enter a number such as 4, and every 4th pixel is inspected.\r\nThis is" +
" much faster, although not as accurate.\r\n";
this.FastFactorInfo.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// MainForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.Black;
this.BackgroundImage = global::ImageSorter.Properties.Resources.BlackImage;
this.ClientSize = new System.Drawing.Size(785, 441);
this.Controls.Add(this.FastFactorInfo);
this.Controls.Add(this.FastFactorControl);
this.Controls.Add(this.StatusLabel);
this.Controls.Add(this.Graph);
this.Controls.Add(this.StartButton);
this.Controls.Add(this.OutputControl);
this.Controls.Add(this.SourceControl);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Image Sorter";
this.ResumeLayout(false);
}
#endregion
#endregion
private DataJuggler.Win.Controls.LabelTextBoxControl FastFactorControl;
private System.Windows.Forms.Label FastFactorInfo;
}
#endregion
}
| 55.606838 | 158 | 0.65186 | [
"MIT"
] | DataJuggler/ImageSorter | MainForm.Designer.cs | 13,014 | C# |
namespace MLSoftware.OTA
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.opentravel.org/OTA/2003/05")]
public partial class ViewershipsTypeViewershipDistributorType
{
private string _distributorCode;
private string _distributorTypeCode;
private string _value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public string DistributorCode
{
get
{
return this._distributorCode;
}
set
{
this._distributorCode = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public string DistributorTypeCode
{
get
{
return this._distributorTypeCode;
}
set
{
this._distributorTypeCode = value;
}
}
[System.Xml.Serialization.XmlTextAttribute()]
public string Value
{
get
{
return this._value;
}
set
{
this._value = value;
}
}
}
} | 26.767857 | 118 | 0.526351 | [
"MIT"
] | Franklin89/OTA-Library | src/OTA-Library/ViewershipsTypeViewershipDistributorType.cs | 1,499 | 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.
#if WIN32
using System;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
namespace Microsoft.Toolkit.Uwp.Notifications
{
internal class Win32AppInfo
{
/// <summary>
/// If an AUMID is greater than 129 characters, scheduled toast notification APIs will throw an exception.
/// </summary>
private const int AUMID_MAX_LENGTH = 129;
public string Aumid { get; set; }
public string DisplayName { get; set; }
public string IconPath { get; set; }
public static Win32AppInfo Get()
{
var process = Process.GetCurrentProcess();
// First get the app ID
IApplicationResolver appResolver = (IApplicationResolver)new CAppResolver();
appResolver.GetAppIDForProcess(Convert.ToUInt32(process.Id), out string appId, out _, out _, out _);
// Use app ID (or hashed app ID) as AUMID
string aumid = appId.Length > AUMID_MAX_LENGTH ? HashAppId(appId) : appId;
// Then try to get the shortcut (for display name and icon)
IShellItem shortcutItem = null;
try
{
appResolver.GetBestShortcutForAppID(appId, out shortcutItem);
}
catch
{
}
string displayName = null;
string iconPath = null;
// First we attempt to use display assets from the shortcut itself
if (shortcutItem != null)
{
try
{
shortcutItem.GetDisplayName(0, out displayName);
((IShellItemImageFactory)shortcutItem).GetImage(new SIZE(48, 48), SIIGBF.IconOnly | SIIGBF.BiggerSizeOk, out IntPtr nativeHBitmap);
if (nativeHBitmap != IntPtr.Zero)
{
try
{
Bitmap bmp = Bitmap.FromHbitmap(nativeHBitmap);
if (IsAlphaBitmap(bmp, out var bmpData))
{
var alphaBitmap = GetAlphaBitmapFromBitmapData(bmpData);
iconPath = SaveIconToAppPath(alphaBitmap, appId);
}
else
{
iconPath = SaveIconToAppPath(bmp, appId);
}
}
catch
{
}
NativeMethods.DeleteObject(nativeHBitmap);
}
}
catch
{
}
}
// If we didn't get a display name from shortcut
if (string.IsNullOrWhiteSpace(displayName))
{
// We use the one from the process
displayName = GetDisplayNameFromCurrentProcess(process);
}
// If we didn't get an icon from shortcut
if (string.IsNullOrWhiteSpace(iconPath))
{
// We use the one from the process
iconPath = ExtractAndObtainIconFromCurrentProcess(process, appId);
}
return new Win32AppInfo()
{
Aumid = aumid,
DisplayName = displayName,
IconPath = iconPath
};
}
private static string HashAppId(string appId)
{
using (SHA1 sha1 = SHA1.Create())
{
byte[] hashedBytes = sha1.ComputeHash(Encoding.UTF8.GetBytes(appId));
return string.Join(string.Empty, hashedBytes.Select(b => b.ToString("X2")));
}
}
private static string GetDisplayNameFromCurrentProcess(Process process)
{
// If AssemblyTitle is set, use that
var assemblyTitleAttr = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyTitleAttribute>();
if (assemblyTitleAttr != null)
{
return assemblyTitleAttr.Title;
}
// Otherwise, fall back to process name
return process.ProcessName;
}
private static string ExtractAndObtainIconFromCurrentProcess(Process process, string appId)
{
return ExtractAndObtainIconFromPath(process.MainModule.FileName, appId);
}
private static string ExtractAndObtainIconFromPath(string pathToExtract, string appId)
{
try
{
// Extract the icon
var icon = Icon.ExtractAssociatedIcon(pathToExtract);
using (var bmp = icon.ToBitmap())
{
return SaveIconToAppPath(bmp, appId);
}
}
catch
{
return null;
}
}
private static string SaveIconToAppPath(Bitmap bitmap, string appId)
{
try
{
var path = Path.Combine(GetAppDataFolderPath(appId), "Icon.png");
// Ensure the directories exist
Directory.CreateDirectory(Path.GetDirectoryName(path));
bitmap.Save(path, ImageFormat.Png);
return path;
}
catch
{
return null;
}
}
/// <summary>
/// Gets the app data folder path within the ToastNotificationManagerCompat folder, used for storing icon assets and any additional data.
/// </summary>
/// <returns>Returns a string of the absolute folder path.</returns>
public static string GetAppDataFolderPath(string appId)
{
string conciseAumid = appId.Contains("\\") ? GenerateGuid(appId) : appId;
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ToastNotificationManagerCompat", "Apps", conciseAumid);
}
// From https://stackoverflow.com/a/9291151
private static Bitmap GetAlphaBitmapFromBitmapData(BitmapData bmpData)
{
return new Bitmap(
bmpData.Width,
bmpData.Height,
bmpData.Stride,
PixelFormat.Format32bppArgb,
bmpData.Scan0);
}
// From https://stackoverflow.com/a/9291151
private static bool IsAlphaBitmap(Bitmap bmp, out BitmapData bmpData)
{
var bmBounds = new Rectangle(0, 0, bmp.Width, bmp.Height);
bmpData = bmp.LockBits(bmBounds, ImageLockMode.ReadOnly, bmp.PixelFormat);
try
{
for (int y = 0; y <= bmpData.Height - 1; y++)
{
for (int x = 0; x <= bmpData.Width - 1; x++)
{
var pixelColor = Color.FromArgb(
Marshal.ReadInt32(bmpData.Scan0, (bmpData.Stride * y) + (4 * x)));
if (pixelColor.A > 0 & pixelColor.A < 255)
{
return true;
}
}
}
}
finally
{
bmp.UnlockBits(bmpData);
}
return false;
}
/// <summary>
/// From https://stackoverflow.com/a/41622689/1454643
/// Generates Guid based on String. Key assumption for this algorithm is that name is unique (across where it it's being used)
/// and if name byte length is less than 16 - it will be fetched directly into guid, if over 16 bytes - then we compute sha-1
/// hash from string and then pass it to guid.
/// </summary>
/// <param name="name">Unique name which is unique across where this guid will be used.</param>
/// <returns>For example "706C7567-696E-7300-0000-000000000000" for "plugins"</returns>
public static string GenerateGuid(string name)
{
byte[] buf = Encoding.UTF8.GetBytes(name);
byte[] guid = new byte[16];
if (buf.Length < 16)
{
Array.Copy(buf, guid, buf.Length);
}
else
{
using (SHA1 sha1 = SHA1.Create())
{
byte[] hash = sha1.ComputeHash(buf);
// Hash is 20 bytes, but we need 16. We loose some of "uniqueness", but I doubt it will be fatal
Array.Copy(hash, guid, 16);
}
}
// Don't use Guid constructor, it tends to swap bytes. We want to preserve original string as hex dump.
string guidS = $"{guid[0]:X2}{guid[1]:X2}{guid[2]:X2}{guid[3]:X2}-{guid[4]:X2}{guid[5]:X2}-{guid[6]:X2}{guid[7]:X2}-{guid[8]:X2}{guid[9]:X2}-{guid[10]:X2}{guid[11]:X2}{guid[12]:X2}{guid[13]:X2}{guid[14]:X2}{guid[15]:X2}";
return guidS;
}
}
}
#endif | 35.29368 | 233 | 0.521909 | [
"MIT"
] | togeljoss/toolkit | Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/Desktop/Win32AppInfo.cs | 9,496 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
/*
* Do not modify this file. This file is generated from the iotsitewise-2019-12-02.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.IoTSiteWise.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.IoTSiteWise.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDisassociateProjectAssets Request Marshaller
/// </summary>
public class BatchDisassociateProjectAssetsRequestMarshaller : IMarshaller<IRequest, BatchDisassociateProjectAssetsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((BatchDisassociateProjectAssetsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchDisassociateProjectAssetsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.IoTSiteWise");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-12-02";
request.HttpMethod = "POST";
if (!publicRequest.IsSetProjectId())
throw new AmazonIoTSiteWiseException("Request object does not have required field ProjectId set");
request.AddPathResource("{projectId}", StringUtils.FromString(publicRequest.ProjectId));
request.ResourcePath = "/projects/{projectId}/assets/disassociate";
request.MarshallerVersion = 2;
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAssetIds())
{
context.Writer.WritePropertyName("assetIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestAssetIdsListValue in publicRequest.AssetIds)
{
context.Writer.Write(publicRequestAssetIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
request.HostPrefix = $"monitor.";
return request;
}
private static BatchDisassociateProjectAssetsRequestMarshaller _instance = new BatchDisassociateProjectAssetsRequestMarshaller();
internal static BatchDisassociateProjectAssetsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDisassociateProjectAssetsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 39.024194 | 175 | 0.617483 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/IoTSiteWise/Generated/Model/Internal/MarshallTransformations/BatchDisassociateProjectAssetsRequestMarshaller.cs | 4,839 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace TextAdventures.Quest
{
public static class Utility
{
private const string k_spaceReplacementString = "___SPACE___";
public static string GetParameter(string script)
{
string afterParameter;
return GetParameter(script, out afterParameter);
}
public static string GetParameter(string script, out string afterParameter)
{
return GetParameterInt(script, '(', ')', out afterParameter);
}
public static string GetScript(string script)
{
string afterScript;
return GetScript(script, out afterScript);
}
public static string GetScript(string script, out string afterScript)
{
afterScript = null;
string obscuredScript = ObscureStrings(script);
int bracePos = obscuredScript.IndexOf('{');
int crlfPos = obscuredScript.IndexOf("\n", StringComparison.Ordinal);
int commentPos = obscuredScript.IndexOf("//", StringComparison.Ordinal);
if (crlfPos == -1) return script;
if (bracePos == -1 || crlfPos < bracePos || (commentPos != -1 && commentPos < bracePos && commentPos < crlfPos))
{
afterScript = script.Substring(crlfPos + 1);
return script.Substring(0, crlfPos);
}
string beforeBrace = script.Substring(0, bracePos);
string insideBraces = GetParameterInt(script, '{', '}', out afterScript);
string result;
if (insideBraces.Contains("\n"))
{
result = beforeBrace + "{" + insideBraces + "}";
}
else
{
// maybe not necessary or correct, maybe always have it in braces
result = beforeBrace + insideBraces;
}
return result;
}
private static string GetParameterInt(string text, char open, char close, out string afterParameter)
{
afterParameter = null;
string obscuredText = ObscureStrings(text);
int start = obscuredText.IndexOf(open);
if (start == -1) return null;
bool finished = false;
int braceCount = 1;
int pos = start;
while (!finished)
{
pos++;
string curChar = obscuredText.Substring(pos, 1);
if (curChar == open.ToString()) braceCount++;
if (curChar == close.ToString()) braceCount--;
if (braceCount == 0 || pos == obscuredText.Length - 1) finished = true;
}
if (braceCount != 0)
{
throw new Exception(string.Format("Missing '{0}'", close));
}
afterParameter = text.Substring(pos + 1);
return text.Substring(start + 1, pos - start - 1);
}
public static string RemoveSurroundingBraces(string input)
{
input = input.Trim();
if (input.StartsWith("{") && input.EndsWith("}"))
{
return input.Substring(1, input.Length - 2);
}
else
{
return input;
}
}
public static string GetTextAfter(string text, string startsWith)
{
return text.Substring(startsWith.Length);
}
public static List<string> SplitParameter(string text)
{
List<string> result = new List<string>();
bool inQuote = false;
bool processThisCharacter;
bool processNextCharacter = true;
int bracketCount = 0;
string curParam = string.Empty;
for (int i = 0; i < text.Length; i++)
{
processThisCharacter = processNextCharacter;
processNextCharacter = true;
string curChar = text.Substring(i, 1);
if (processThisCharacter)
{
if (curChar == "\\")
{
// Don't process the character after a backslash
processNextCharacter = false;
}
else if (curChar == "\"")
{
inQuote = !inQuote;
}
else
{
if (!inQuote)
{
if (curChar == "(") bracketCount++;
if (curChar == ")") bracketCount--;
if (bracketCount == 0 && curChar == ",")
{
result.Add(curParam.Trim());
curParam = string.Empty;
continue;
}
}
}
}
curParam += curChar;
}
result.Add(curParam.Trim());
return result;
}
public static void ResolveVariableName(ref string name, out string obj, out string variable)
{
int eqPos = name.LastIndexOf(".");
if (eqPos == -1)
{
obj = null;
variable = name;
return;
}
obj = name.Substring(0, eqPos);
variable = name.Substring(eqPos + 1);
}
private static Regex s_detectComments = new Regex("//");
public static string ReplaceRegexMatchesRespectingQuotes(string input, Regex regex, string replaceWith, bool replaceInsideQuote)
{
return ReplaceRespectingQuotes(input, replaceInsideQuote, text => regex.Replace(text, replaceWith));
}
public static string ReplaceRespectingQuotes(string input, string searchFor, string replaceWith)
{
return ReplaceRespectingQuotes(input, false, text => text.Replace(searchFor, replaceWith));
}
public static string ConvertVariableNamesWithSpaces(string input)
{
return ReplaceRespectingQuotes(input, false, text =>
{
// Split the text up into a word array, for example
// "my variable = 12" becomes "my", "variable", "=", "12".
// If any two adjacent elements end and begin with word characters,
// (in this case, "my" and "variable" because "y" and "v" match
// regex "\w"), then we remove the space and replace it with
// our space placeholder. However, if one of the two words is a
// keyword ("and", "not" etc.), we don't convert it.
string[] words = text.Split(' ');
string result = words[0];
if (words.Length == 1) return result;
for (int i = 1; i < words.Length; i++)
{
if (IsSplitVariableName(words[i - 1], words[i]))
{
result += k_spaceReplacementString;
}
else
{
result += " ";
}
result += words[i];
}
return result;
});
}
public static string SpaceReplacementString { get { return k_spaceReplacementString; } }
// Given two words e.g. "my" and "variable", see if they together comprise a variable name
private static Regex s_wordRegex1 = new System.Text.RegularExpressions.Regex(@"(\w+)$");
private static Regex s_wordRegex2 = new System.Text.RegularExpressions.Regex(@"^(\w+)");
private static List<string> s_keywords = new List<string> { "and", "or", "xor", "not", "if", "in" };
private static bool IsSplitVariableName(string word1, string word2)
{
if (!(s_wordRegex1.IsMatch(word1) && s_wordRegex2.IsMatch(word2))) return false;
string word1last = s_wordRegex1.Match(word1).Groups[1].Value;
string word2first = s_wordRegex2.Match(word2).Groups[1].Value;
if (s_keywords.Contains(word1last)) return false;
if (s_keywords.Contains(word2first)) return false;
return true;
}
public static IList<string> ExpressionKeywords
{
get { return s_keywords.AsReadOnly(); }
}
private static string ReplaceRespectingQuotes(string input, bool replaceInsideQuote, Func<string, string> replaceFunction)
{
// We ignore regex matches which appear within quotes by splitting the string
// at the position of quote marks, and then alternating whether we replace or not.
string[] sections = SplitQuotes(input);
string result = string.Empty;
bool insideQuote = false;
for (int i = 0; i <= sections.Length - 1; i++)
{
string section = sections[i];
bool doReplace = (insideQuote && replaceInsideQuote) || (!insideQuote && !replaceInsideQuote);
if (doReplace)
{
result += replaceFunction(section);
}
else
{
result += section;
}
if (i < sections.Length - 1) result += "\"";
insideQuote = !insideQuote;
}
return result;
}
private static string[] SplitQuotes(string text)
{
List<string> result = new List<string>();
bool processThisCharacter;
bool processNextCharacter = true;
string curParam = string.Empty;
for (int i = 0; i < text.Length; i++)
{
processThisCharacter = processNextCharacter;
processNextCharacter = true;
string curChar = text.Substring(i, 1);
if (processThisCharacter)
{
if (curChar == "\\")
{
// Don't process the character after a backslash
processNextCharacter = false;
}
else
{
if (curChar == "\"")
{
result.Add(curParam);
curParam = string.Empty;
continue;
}
}
}
curParam += curChar;
}
result.Add(curParam);
return result.ToArray();
}
public static string RemoveComments(string input)
{
if (!input.Contains("//")) return input;
if (input.Contains("\n"))
{
return RemoveCommentsMultiLine(input);
}
// Replace any occurrences of "//" which are inside string expressions. Then any occurrences of "//"
// which remain mark the beginning of a comment.
string obfuscateDoubleSlashesInsideStrings = ReplaceRegexMatchesRespectingQuotes(input, s_detectComments, "--", true);
if (obfuscateDoubleSlashesInsideStrings.Contains("//"))
{
return input.Substring(0, obfuscateDoubleSlashesInsideStrings.IndexOf("//"));
}
return input;
}
private static string RemoveCommentsMultiLine(string input)
{
List<string> output = new List<string>();
foreach (string inputLine in (input.Split(new string[] { "\n" }, StringSplitOptions.None)))
{
output.Add(RemoveComments(inputLine));
}
return string.Join("\n", output.ToArray());
}
public static List<string> SplitIntoLines(string text)
{
List<string> lines = new List<string>(text.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries));
List<string> result = new List<string>();
foreach (string line in lines)
{
string trimLine = line.Trim();
if (trimLine.Length > 0) result.Add(trimLine);
}
return result;
}
public static string SafeXML(string input)
{
return input.Replace("&", "&").Replace("<", "<").Replace(">", ">");
}
private static string[] s_listSplitDelimiters = new string[] { "; ", ";" };
public static string[] ListSplit(string value)
{
return value.Split(s_listSplitDelimiters, StringSplitOptions.None);
}
public static string ObscureStrings(string input)
{
string[] sections = SplitQuotes(input);
string result = string.Empty;
bool insideQuote = false;
for (int i = 0; i <= sections.Length - 1; i++)
{
string section = sections[i];
if (insideQuote)
{
result = result + new string('-', section.Length);
}
else
{
result = result + section;
}
if (i < sections.Length - 1) result += "\"";
insideQuote = !insideQuote;
}
return result;
}
public static bool IsRegexMatch(string regexPattern, string input)
{
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(regexPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
return regex.IsMatch(input);
}
public static int GetMatchStrength(string regexPattern, string input)
{
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(regexPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
if (!regex.IsMatch(input)) throw new Exception(string.Format("String '{0}' is not a match for Regex '{1}'", input, regexPattern));
// The idea is that you have a regex like
// look at (?<object>.*)
// And you have a string like
// look at thing
// The strength is the length of the "fixed" bit of the string, in this case "look at ".
// So we calculate this as the length of the input string, minus the length of the
// text that matches the named groups.
int lengthOfTextMatchedByGroups = 0;
foreach (string groupName in regex.GetGroupNames())
{
// exclude group names like "0", we only want the explicitly named groups
if (!TextAdventures.Utility.Strings.IsNumeric(groupName))
{
string groupMatch = regex.Match(input).Groups[groupName].Value;
lengthOfTextMatchedByGroups += groupMatch.Length;
}
}
return input.Length - lengthOfTextMatchedByGroups;
}
public static QuestDictionary<string> Populate(string regexPattern, string input)
{
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(regexPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
if (!regex.IsMatch(input)) throw new Exception(string.Format("String '{0}' is not a match for Regex '{1}'", input, regexPattern));
QuestDictionary<string> result = new QuestDictionary<string>();
foreach (string groupName in regex.GetGroupNames())
{
if (!TextAdventures.Utility.Strings.IsNumeric(groupName))
{
string groupMatch = regex.Match(input).Groups[groupName].Value;
result.Add(groupName, groupMatch);
}
}
return result;
}
public static string ConvertVerbSimplePattern(string pattern)
{
// For verbs, we replace "eat; consume; munch" with
// "^eat (?<object>.*)$|^consume (?<object>.*)$|^munch (?<object>.*)$"
// Optionally the position of the object can be specified, for example
// "switch #object# on" would become "^switch (?<object>.*) on$"
string[] verbs = Utility.ListSplit(pattern);
string result = string.Empty;
foreach (string verb in verbs)
{
if (result.Length > 0) result += "|";
const string objectRegex = "(?<object>.*)";
string textToAdd;
if (verb.Contains("#object#"))
{
textToAdd = "^" + verb.Replace("#object#", objectRegex) + "$";
}
else
{
textToAdd = "^" + verb + " " + objectRegex + "$";
}
result += textToAdd;
}
return result;
}
public static string ConvertVerbSimplePatternForEditor(string pattern)
{
// For verbs, we replace "eat; consume; munch" with
// "eat #object#; consume #object#; munch #object#"
string[] verbs = Utility.ListSplit(pattern);
string result = string.Empty;
foreach (string verb in verbs)
{
if (result.Length > 0) result += "; ";
string textToAdd;
if (verb.Contains("#object#"))
{
textToAdd = verb;
}
else
{
textToAdd = verb + " #object#";
}
result += textToAdd;
}
return result;
}
// Valid attribute names:
// - must not start with a number
// - must not contain keywords "and", "or" etc.
// - can contain spaces, but not at the beginning or end
private static Regex s_validAttributeName = new Regex(@"^[A-Za-z][\w ]*\w$");
public static bool IsValidAttributeName(string name)
{
if (!s_validAttributeName.IsMatch(name)) return false;
if (name.Split(' ').Any(w => s_keywords.Contains(w))) return false;
return true;
}
private static List<string> s_jsKeywords = new List<string> { "var", "continue", "default" };
private static List<Regex> s_jsKeywordsRegex = null;
public static string ReplaceReservedVariableNames(string input)
{
if (s_jsKeywordsRegex == null)
{
s_jsKeywordsRegex = CreateKeywordRegexList(s_jsKeywords);
}
return ReplaceVariableNames(input, s_jsKeywordsRegex, "variable_");
}
private static List<string> s_overloadedFunctions = new List<string> { "TypeOf", "DynamicTemplate", "Eval" };
private static List<Regex> s_overloadedFunctionsRegex = null;
public static string ReplaceOverloadedFunctionNames(string input)
{
if (s_overloadedFunctionsRegex == null)
{
s_overloadedFunctionsRegex = CreateKeywordRegexList(s_overloadedFunctions);
}
return ReplaceVariableNames(input, s_overloadedFunctionsRegex, "overloadedFunctions.");
}
private static List<string> s_dynamicTemplateVariableNames = new List<string> { "object", "object1", "object2", "text", "exit" };
private static List<Regex> s_dynamicTemplateVariableRegex = null;
public static string ReplaceDynamicTemplateVariableNames(string input)
{
if (s_dynamicTemplateVariableRegex == null)
{
s_dynamicTemplateVariableRegex = CreateKeywordRegexList(s_dynamicTemplateVariableNames);
}
string result = input;
foreach (Regex regex in s_dynamicTemplateVariableRegex)
{
result = ReplaceRegexMatchesRespectingQuotes(result, regex, "params[\"$1\"]", false);
}
return result;
}
public static string ReplaceObjectNames(string input, IEnumerable<GameLoader.ElementNameReplacer> objectReplaceRegexes, List<string> objectNamesToIgnore)
{
string result = input;
foreach (var objectReplaceRegex in objectReplaceRegexes)
{
if (objectNamesToIgnore.Contains(objectReplaceRegex.ObjectName)) continue;
result = ReplaceRespectingQuotes(result, false, text => {
return objectReplaceRegex.Regex.Replace(text, match => {
// If match is immediately after a "." character, don't do the replacement as we don't
// want to replace attribute names that happen to be the same as object names.
if (match.Index == 0 || text.Substring(match.Index - 1, 1) != ".")
{
return objectReplaceRegex.ReplaceWith;
}
else
{
return match.Value;
}
});
});
}
return result;
}
public static List<Regex> CreateKeywordRegexList(IEnumerable<string> keywords)
{
return new List<Regex>(from keyword in keywords
select new Regex(@"\b(" + keyword + @")\b"));
}
private static string ReplaceVariableNames(string input, IEnumerable<Regex> keywordRegexes, string prefix)
{
string result = ReplaceVariableNames(input, keywordRegexes, (text, regex) => regex.Replace(text, prefix + "$1"));
// We don't want to change attribute names, so change back any that have been accidentally converted by the above
result = result.Replace("." + prefix, ".");
return result;
}
private static string ReplaceVariableNames(string input, IEnumerable<Regex> keywordRegexes, Func<string, Regex, string> replaceFunction)
{
string result = input;
foreach (Regex regex in keywordRegexes)
{
result = ReplaceRespectingQuotes(result, false, text => replaceFunction(text, regex));
}
return result;
}
public static string EscapeString(string input)
{
if (input == null) input = string.Empty;
return string.Format("\"{0}\"", input.Replace(@"\", @"\\").Replace("\"", "\\\"").Replace(Environment.NewLine, "\\n"));
}
}
}
| 37.976936 | 168 | 0.52182 | [
"MIT"
] | MakingBrowserGames/quest-js | Compiler/Utility.cs | 23,054 | C# |
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace Gooios.ActivityService.Migrations
{
public partial class AddFieldsForTopicImage : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "order",
table: "topic_images",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "order",
table: "topic_images");
}
}
}
| 26.730769 | 71 | 0.598561 | [
"Apache-2.0"
] | hccoo/gooios | netcoremicroservices/Gooios.ActivityService/Migrations/20180609040552_AddFieldsForTopicImage.cs | 697 | C# |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Net.NetworkInformation;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class OrderIII : System.Web.UI.Page
{
public string mac;
int cust;
System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection();
protected void Page_Load(object sender, EventArgs e)
{
//try{
con.ConnectionString = ConfigurationManager.ConnectionStrings["mayeDb"].ConnectionString;
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
mac = nics[0].GetPhysicalAddress().ToString();
if (con.State == System.Data.ConnectionState.Closed)
con.Open();
SqlCommand cmd = new SqlCommand("select count(id) from customer where mac_address like '" + mac + "'", con);
int count = Convert.ToInt16(cmd.ExecuteScalar());
macadd.Value = mac.ToString();
if (count > 0)
{
SqlCommand cmd1 = new SqlCommand("select top 1 concat(fname,' ',lname) from customer where mac_address like '" + mac + "' order by last_login desc", con);
SqlCommand cmd2 = new SqlCommand("select top 1 id from customer where mac_address like '" + mac + "' order by last_login desc", con);
String nameLog = cmd1.ExecuteScalar().ToString();
custId.Value = cmd2.ExecuteScalar().ToString();
name.Value = nameLog.ToString();
SqlCommand cmd5 = new SqlCommand("select count(custId) from cart where custId like '" + custId.Value + "'", con);
int countId = Convert.ToInt16(cmd5.ExecuteScalar());
if (countId == 0)
{
SqlCommand cmd4 = new SqlCommand("insert into cart (custId, mac , prodQty,price) values ('" + custId.Value + "', '" + mac + "', 0,0)", con);
cmd4.ExecuteScalar();
}
}
else
{
name.Value = "Guest User";
SqlCommand cmd3 = new SqlCommand("insert into customer (fname, mac_address, last_login) values ('Guest User', '" + mac + "', CURRENT_TIMESTAMP)", con);
SqlCommand cmd2 = new SqlCommand("select top 1 id from customer where mac_address like '" + mac + "' order by last_login desc", con);
cmd3.ExecuteNonQuery();
custId.Value = cmd2.ExecuteScalar().ToString();
SqlCommand cmd5 = new SqlCommand("select count(custId) from customer where Id like '" + custId.Value + "'", con);
int countId = Convert.ToInt16(cmd5.ExecuteScalar());
if (countId == 0)
{
SqlCommand cmd4 = new SqlCommand("insert into cart (custId, mac_address, prodQty,price) values ('" + custId.Value + "', '" + mac + "', 0,0", con);
cmd4.ExecuteScalar();
}
}
cust = Convert.ToInt16(custId.Value);
SqlCommand cmd6 = new SqlCommand("select sum(prodQty) from cart where custId like '" + custId.Value + "'", con);
int prodQty = Convert.ToInt16(cmd6.ExecuteScalar());
SqlCommand cmd7 = new SqlCommand("select sum(prodQty*price) from cart where custId like '" + custId.Value + "'", con);
double amtDue = Convert.ToDouble(cmd7.ExecuteScalar());
itemCount.Text = prodQty.ToString();
amt.Text = amtDue.ToString();
if (name.Value.ToString().Equals("Guest User ")) { Response.Redirect("orderI.aspx"); }
if (prodQty == 0)
{
Response.Redirect("index.aspx");
}
con.Close();
//}
//catch (Exception a) { Response.Redirect("index.aspx"); }
}
[System.Web.Services.WebMethod]
public static string logout()
{
System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection();
con.ConnectionString = ConfigurationManager.ConnectionStrings["mayeDb"].ConnectionString;
if (con.State == System.Data.ConnectionState.Closed)
con.Open();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
string mac = nics[0].GetPhysicalAddress().ToString();
SqlCommand cmd1 = new SqlCommand("update customer set mac_address=null where mac_address like '" + mac + "'", con);
cmd1.ExecuteNonQuery();
SqlCommand cmd2 = new SqlCommand("update cart set mac=null where mac like '" + mac + "'", con);
cmd2.ExecuteNonQuery();
return "out";
}
protected void RadioButtonList1_SelectedIndexChanged1(object sender, EventArgs e)
{
if (con.State == System.Data.ConnectionState.Closed)
con.Open();
SqlCommand cmd6 = new SqlCommand("select sum(prodQty) from cart where custId like '" + custId.Value + "'", con);
int prodQty = Convert.ToInt16(cmd6.ExecuteScalar());
double amt=0;
if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 1)
{
if (prodQty < 4)
{
amt = prodQty * 4.85;
}
else {
amt = 3 * 4.85;
}
RadioButtonList1.SelectedItem.Text = "Zone 1 ("+amt.ToString()+"): En France";
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 2)
{
amt = prodQty * 8.78;
if (prodQty < 4)
{
amt = prodQty * 8.78;
}
else
{
amt = 3 * 8.78;
}
RadioButtonList1.SelectedItem.Text = "Zone 2 (" + amt.ToString() + "): Guadeloupe (y compris Saint Barthélémy et St Martin), Martinique, Réunion, Guyane, Mayotte et Saint Pierre et Miquelon";
// ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 3)
{
amt = prodQty * 11.24;
if (prodQty < 4)
{
amt = prodQty * 11.24;
}
else
{
amt = 3 * 11.24;
}
RadioButtonList1.SelectedItem.Text = "Zone 3 (" + amt.ToString() + "): Nouvelle-Calédonie et dépendances, Polynésie française, Wallis-et- Futuna, française Terres australes et antarctiques";
// ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 4)
{
amt = prodQty * 10;
if (prodQty < 4)
{
amt = prodQty * 10;
}
else
{
amt = 3 * 10;
}
RadioButtonList1.SelectedItem.Text = "Zone 4 (" + amt.ToString() + "): Allemagne, Belgique, Pays-Bas, Luxembourg.";
// ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 5)
{
amt = prodQty * 11.19;
if (prodQty < 4)
{
amt = prodQty * 11.19;
}
else
{
amt = 3 * 11.19;
}
RadioButtonList1.SelectedItem.Text = "Zone 5 (" + amt.ToString() + "): Royaume-Uni, Irlande, Italie, Espagne, Portugal, Suisse, Autriche";
//ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 6)
{
amt = prodQty * 11.24;
if (prodQty < 4)
{
amt = prodQty * 11.24;
}
else
{
amt = 3 * 11.24;
}
RadioButtonList1.SelectedItem.Text = "Zone 6 (" + amt.ToString() + "): Danemark, la Hongrie, la Pologne, République tchèque, Slovaquie, Slovénie, L'Estonie, la Lettonie, la Lituanie";
//ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 7)
{
amt = prodQty * 13.78;
if (prodQty < 4)
{
amt = prodQty * 13.78;
}
else
{
amt = 3 * 13.78;
}
RadioButtonList1.SelectedItem.Text = "Zone 7 (" + amt.ToString() + "): La Grèce, l'Islande, la Finlande, la Norvège, La Suède, la Turquie, le Maghreb, Portugal et l'Espagne, Europe de l'Est.";
// ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 8)
{
amt = prodQty * 20.20;
if (prodQty < 4)
{
amt = prodQty * 20.20;
}
else
{
amt = 3 * 20.20;
}
RadioButtonList1.SelectedItem.Text = "Zone 8 (" + amt.ToString() + "): USA, Canada, Australie, Chine, le Japon, Hong Kong, Singapour, Corée du Sud, la Thaïlande, Taïwan, Viet Nam, l'Inde, la Russie, Israël";
// ship.Text = amt.ToString();
}
else if (Convert.ToInt16(RadioButtonList1.SelectedValue) == 9)
{
amt = prodQty * 23.47;
if (prodQty < 4)
{
amt = prodQty * 23.47;
}
else
{
amt = 3 * 23.47;
}
RadioButtonList1.SelectedItem.Text = "Zone 9 (" + amt.ToString() + "): Afrique (hors Afrique du Nord), le Moyen-Orient, Amériques, d'autres pays d'Asie, d'Océanie.";
//ship.Text = amt.ToString();
}
ship.Text = amt.ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
//if (ship.Text.Equals("0"))
//{ ship.Text = "Sélectionnez votre première zone."; }
//else
//{
if (con.State == System.Data.ConnectionState.Closed)
con.Open();
SqlCommand cmd = new SqlCommand("update cart set shipping=" + ship.Text + " where custId like '" + custId.Value.ToString() + "'", con);
cmd.ExecuteNonQuery();
Response.Redirect("OrderIV.aspx");
//}
}
} | 41.501992 | 222 | 0.525583 | [
"MIT"
] | narinder1993/french-ecommerce-asp | french/OrderIII.aspx.cs | 10,441 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MotorsportSite.API.Models
{
public class DriverCalculationInfo
{
public decimal TotalPoints { get; set; }
public decimal TotalPointsOfCurrentSeason { get; set; }
public int HighestResult { get; set; }
public int TotalNumOfHighestResult { get; set; }
public string BestTrack { get; set; }
public int NumRaceFastestLaps { get; set; }
public int NumOfRacesCompleted { get; set; }
public int NumDNFs { get; set; }
public int TotalLapsComplete { get; set; }
public int BestSeason { get; set; }
public int NumChapionships { get; set; }
public int TopTenFinishes { get; set; }
public int NumOfRaceWins { get; set; }
public int LeadLaps { get; set; }
public int Overtakes { get; set; }
}
}
| 34.185185 | 63 | 0.641387 | [
"MIT"
] | rustyrust/MotorsportSite | MotorsportSite/MotorsportSite.API/Models/DriverCalculationInfo.cs | 925 | C# |
using System;
using xe.bit.property.core.Ads;
using xe.bit.property.core.Errors;
using xe.bit.property.core.Lookups;
using xe.bit.property.core.Validators;
using Xunit;
namespace xe.bit.property.core.tests.Validators
{
public class ResidenceAdValidatorTests
{
[Fact]
public void SubTypeMustHaveValueWhenApartment()
{
var ad = CreateAd();
ad.ItemType = ResidenceItemType.APARTMENT;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.ResidenceSubTypeMustHaveValue, results.Errors[0].ErrorMessage);
}
[Theory]
[InlineData(ResidenceItemType.BUILDING)]
[InlineData(ResidenceItemType.HOUSE)]
[InlineData(ResidenceItemType.OIKEIA)]
[InlineData(ResidenceItemType.SPLIT_LEVEL)]
public void SubTypeMustNotHaveValueWhenNotApartment(ResidenceItemType itemType)
{
var ad = CreateAd();
ad.ItemType = itemType;
ad.SubType = ResidenceItemSubtype.FLOORFLAT;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.ResidenceSubTypeMustBeNull, results.Errors[0].ErrorMessage);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void ValidateArea(bool nullable)
{
var ad = CreateAd();
ad.Area = nullable ? (decimal?)null : 0;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(nullable ? Messages.AreaMustHaveValue : Messages.AreaMustHavePositiveValue, results.Errors[0].ErrorMessage);
}
[Fact]
public void ValidateLevel()
{
var ad = CreateAd();
ad.Level = null;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.LevelMustHaveValue, results.Errors[0].ErrorMessage);
}
[Theory]
[InlineData(1900)]
[InlineData(2048)]
public void ValidateConstructionYear(int year)
{
var ad = CreateAd();
ad.ConstructionYear = year;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.ConstructionYearOutOfBounds, results.Errors[0].ErrorMessage);
}
[Theory]
[InlineData(1900)]
[InlineData(2048)]
public void ValidateRefurbishmentYear(int year)
{
var ad = CreateAd();
ad.RefurbishmentYear = year;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.RefurbishmentYearOutOfBounds, results.Errors[0].ErrorMessage);
}
[Fact]
public void ValidateMoreBedroomsThanMasterBedrooms()
{
var ad = CreateAd();
ad.Bedrooms = 10;
ad.MasterBedrooms = 10;
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(Messages.BedroomsOutOfBound, results.Errors[0].ErrorMessage);
}
[Theory]
[InlineData(true, false, true, 1, null)]
[InlineData(false, true, false, 1, null)]
[InlineData(false, false, true, 1, null)]
[InlineData(true, false, false, 1, Messages.HasStorageConstraint)]
[InlineData(false, false, false, 1, Messages.HasStorageConstraint)]
public void StorageConstraint(bool isStorageFlagNull, bool value, bool isStorageAreaNull, decimal storageArea, string expectedError)
{
CheckFlagConstraints(isStorageFlagNull, ad => ad.HasStorage = value, isStorageAreaNull,
ad => ad.StorageArea = storageArea, expectedError);
}
[Theory]
[InlineData(true, false, true, 1, null)]
[InlineData(false, true, false, 1, null)]
[InlineData(false, false, true, 1, null)]
[InlineData(true, false, false, 1, Messages.HasSemiOpenSpacesConstraint)]
[InlineData(false, false, false, 1, Messages.HasSemiOpenSpacesConstraint)]
public void SemiOpenSpaceConstraint(bool isSemiOpenFlagNull, bool value, bool isSemiOpenSpaceNull, decimal semiOpenSpaceArea, string expectedError)
{
CheckFlagConstraints(isSemiOpenFlagNull, ad => ad.HasSemiOpenSpaces = value, isSemiOpenSpaceNull,
ad => ad.SemiOpenSpacesArea = semiOpenSpaceArea, expectedError);
}
[Theory]
[InlineData(true, false, true, 1, null)]
[InlineData(false, true, false, 1, null)]
[InlineData(false, false, true, 1, null)]
[InlineData(true, false, false, 1, Messages.HasGardenConstraint)]
[InlineData(false, false, false, 1, Messages.HasGardenConstraint)]
public void GardenConstraint(bool isGardenFlagNull, bool value, bool isGardenAreaNull, decimal gardenArea, string expectedError)
{
CheckFlagConstraints(isGardenFlagNull, ad => ad.HasGarden = value, isGardenAreaNull,
ad => ad.GardenArea = gardenArea, expectedError);
}
[Theory]
[InlineData(true, false, true, 1, null)]
[InlineData(false, true, false, 1, null)]
[InlineData(false, false, true, 1, null)]
[InlineData(true, false, false, 1, Messages.HasTerraceConstraint)]
[InlineData(false, false, false, 1, Messages.HasTerraceConstraint)]
public void TerraceConstraint(bool isTerraceFlagNull, bool value, bool isTerraceAreaNull, decimal terraceArea, string expectedError)
{
CheckFlagConstraints(isTerraceFlagNull, ad => ad.HasTerraceArea = value, isTerraceAreaNull,
ad => ad.TerraceArea = terraceArea, expectedError);
}
[Theory]
[InlineData(true, false, true, ParkingType.CLOSED, null)]
[InlineData(false, true, false, ParkingType.CLOSED, null)]
[InlineData(false, false, true, ParkingType.CLOSED, null)]
[InlineData(true, false, false, ParkingType.CLOSED, Messages.HasParkingConstraint)]
[InlineData(false, false, false, ParkingType.CLOSED, Messages.HasParkingConstraint)]
public void ParkingConstraint(bool isParkingFlagNull, bool value, bool isParkingTypeNull, ParkingType parkingType, string expectedError)
{
CheckFlagConstraints(isParkingFlagNull, ad => ad.HasParking = value, isParkingTypeNull,
ad => ad.ParkingType = parkingType, expectedError);
}
[Theory]
[InlineData(true, 1, true, 1, null)]
[InlineData(false, 1, false, 1, null)]
[InlineData(false, 1, true, 1, Messages.FloorsConstraint)]
[InlineData(true, 1, false, 1, null)]
[InlineData(false, 0, false, 1, null)]
public void FloorsConstraint(bool isFloorsFlagNull, int value, bool isFloorsAreaNull, decimal floorsArea, string expectedError)
{
CheckFlagConstraints(isFloorsFlagNull, ad => ad.Floors = value, isFloorsAreaNull,
ad => ad.FloorsArea = floorsArea, expectedError);
}
private void CheckFlagConstraints(bool isFlagSpecified, Action<ResidenceAd> flagAssignment,
bool isValueSpecified, Func<ResidenceAd, object> valueAssignment, string expectedError)
{
var ad = CreateAd();
if (!isFlagSpecified)
{
flagAssignment(ad);
}
if (!isValueSpecified)
{
valueAssignment(ad);
}
var validator = new ResidenceAdValidator();
var results = validator.Validate(ad);
if (string.IsNullOrEmpty(expectedError))
{
Assert.True(results.IsValid);
}
else
{
Assert.False(results.IsValid);
Assert.Equal(1, results.Errors.Count);
Assert.Equal(expectedError, results.Errors[0].ErrorMessage);
}
}
private ResidenceAd CreateAd()
{
return new ResidenceAd
{
ItemType = ResidenceItemType.BUILDING,
Area = 100,
Level = ProfLevel.L0,
Condition = Condition.USED,
ConstructionYear = 1970,
MasterBedrooms = 2,
Geo = { AreaId = "59-41" }
};
}
}
}
| 31.399194 | 149 | 0.730448 | [
"MIT"
] | xe-gr/xe.bit.property.dotnetclient | Tests/xe.bit.property.core.tests/Validators/ResidenceAdValidatorTests.cs | 7,789 | C# |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
namespace QuantConnect.Data.Custom
{
/********************************************************
* CLASS DEFINITIONS
*********************************************************/
/// <summary>
/// Quandl Data Type - Import generic data from quandl, without needing to define Reader methods.
/// This reads the headers of the data imported, and dynamically creates properties for the imported data.
/// </summary>
public class Quandl : DynamicData
{
/********************************************************
* CLASS PRIVATE VARIABLES
*********************************************************/
private bool _isInitialized = false;
private readonly List<string> _propertyNames = new List<string>();
private readonly string _valueColumn;
private static string _authCode = "";
/// <summary>
/// Is the auth
/// </summary>
public static bool IsAuthCodeSet
{
get;
private set;
}
/********************************************************
* CLASS CONSTRUCTOR
*********************************************************/
/// <summary>
/// Default quandl constructor uses Close as its value column
/// </summary>
public Quandl()
{
base.EndTime = Time + TimeSpan.FromDays(1);
_valueColumn = "Close";
}
/// <summary>
/// Constructor for creating customized quandl instance which doesn't use "Close" as its value item.
/// </summary>
/// <param name="valueColumnName"></param>
protected Quandl(string valueColumnName)
{
_valueColumn = valueColumnName;
}
/********************************************************
* CLASS METHODS
*********************************************************/
/// <summary>
/// Generic Reader Implementation for Quandl Data.
/// </summary>
/// <param name="config">Subscription configuration</param>
/// <param name="line">CSV line of data from the souce</param>
/// <param name="date">Date of the requested line</param>
/// <param name="datafeed">Datafeed type - live or backtest</param>
/// <returns></returns>
public override BaseData Reader(SubscriptionDataConfig config, string line, DateTime date, DataFeedEndpoint datafeed)
{
var data = new Quandl();
data.Symbol = config.Symbol;
var csv = line.Split(',');
if (!_isInitialized)
{
_isInitialized = true;
foreach (var propertyName in csv)
{
var property = propertyName.TrimStart().TrimEnd();
// should we remove property names like Time?
// do we need to alias the Time??
data.SetProperty(property, 0m);
_propertyNames.Add(property);
}
return data;
}
data.Time = DateTime.ParseExact(csv[0], "yyyy-MM-dd", CultureInfo.InvariantCulture);
for (var i = 1; i < csv.Length; i++)
{
var value = csv[i].ToDecimal();
data.SetProperty(_propertyNames[i], value);
}
// we know that there is a close property, we want to set that to 'Value'
data.Value = (decimal)data.GetProperty(_valueColumn);
return data;
}
/// <summary>
/// Quandl Source Locator: Using the Quandl V1 API automatically set the URL for the dataset.
/// </summary>
/// <param name="config">Subscription configuration object</param>
/// <param name="date">Date of the data file we're looking for</param>
/// <param name="datafeed"></param>
/// <returns>STRING API Url for Quandl.</returns>
public override string GetSource(SubscriptionDataConfig config, DateTime date, DataFeedEndpoint datafeed)
{
return @"https://www.quandl.com/api/v1/datasets/" + config.Symbol + ".csv?sort_order=asc&exclude_headers=false&auth_token=" + _authCode;
}
/// <summary>
/// Set the auth code for the quandl set to the QuantConnect auth code.
/// </summary>
/// <param name="authCode"></param>
public static void SetAuthCode(string authCode)
{
_authCode = authCode;
IsAuthCodeSet = true;
}
}
} // End QC Namespace
| 38.404255 | 148 | 0.535549 | [
"Apache-2.0"
] | solaristrading/Lean | Common/Data/Custom/Quandl.cs | 5,417 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
/*
* Do not modify this file. This file is generated from the apigatewayv2-2018-11-29.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ApiGatewayV2.Model
{
/// <summary>
/// Container for the parameters to the CreateStage operation.
/// Creates a Stage for an API.
/// </summary>
public partial class CreateStageRequest : AmazonApiGatewayV2Request
{
private AccessLogSettings _accessLogSettings;
private string _apiId;
private bool? _autoDeploy;
private string _clientCertificateId;
private RouteSettings _defaultRouteSettings;
private string _deploymentId;
private string _description;
private Dictionary<string, RouteSettings> _routeSettings = new Dictionary<string, RouteSettings>();
private string _stageName;
private Dictionary<string, string> _stageVariables = new Dictionary<string, string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property AccessLogSettings.
/// <para>
/// Settings for logging access in this stage.
/// </para>
/// </summary>
public AccessLogSettings AccessLogSettings
{
get { return this._accessLogSettings; }
set { this._accessLogSettings = value; }
}
// Check to see if AccessLogSettings property is set
internal bool IsSetAccessLogSettings()
{
return this._accessLogSettings != null;
}
/// <summary>
/// Gets and sets the property ApiId.
/// <para>
/// The API identifier.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ApiId
{
get { return this._apiId; }
set { this._apiId = value; }
}
// Check to see if ApiId property is set
internal bool IsSetApiId()
{
return this._apiId != null;
}
/// <summary>
/// Gets and sets the property AutoDeploy.
/// <para>
/// Specifies whether updates to an API automatically trigger a new deployment. The default
/// value is false.
/// </para>
/// </summary>
public bool AutoDeploy
{
get { return this._autoDeploy.GetValueOrDefault(); }
set { this._autoDeploy = value; }
}
// Check to see if AutoDeploy property is set
internal bool IsSetAutoDeploy()
{
return this._autoDeploy.HasValue;
}
/// <summary>
/// Gets and sets the property ClientCertificateId.
/// <para>
/// The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
/// </para>
/// </summary>
public string ClientCertificateId
{
get { return this._clientCertificateId; }
set { this._clientCertificateId = value; }
}
// Check to see if ClientCertificateId property is set
internal bool IsSetClientCertificateId()
{
return this._clientCertificateId != null;
}
/// <summary>
/// Gets and sets the property DefaultRouteSettings.
/// <para>
/// The default route settings for the stage.
/// </para>
/// </summary>
public RouteSettings DefaultRouteSettings
{
get { return this._defaultRouteSettings; }
set { this._defaultRouteSettings = value; }
}
// Check to see if DefaultRouteSettings property is set
internal bool IsSetDefaultRouteSettings()
{
return this._defaultRouteSettings != null;
}
/// <summary>
/// Gets and sets the property DeploymentId.
/// <para>
/// The deployment identifier of the API stage.
/// </para>
/// </summary>
public string DeploymentId
{
get { return this._deploymentId; }
set { this._deploymentId = value; }
}
// Check to see if DeploymentId property is set
internal bool IsSetDeploymentId()
{
return this._deploymentId != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description for the API stage.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property RouteSettings.
/// <para>
/// Route settings for the stage, by routeKey.
/// </para>
/// </summary>
public Dictionary<string, RouteSettings> RouteSettings
{
get { return this._routeSettings; }
set { this._routeSettings = value; }
}
// Check to see if RouteSettings property is set
internal bool IsSetRouteSettings()
{
return this._routeSettings != null && this._routeSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property StageName.
/// <para>
/// The name of the stage.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string StageName
{
get { return this._stageName; }
set { this._stageName = value; }
}
// Check to see if StageName property is set
internal bool IsSetStageName()
{
return this._stageName != null;
}
/// <summary>
/// Gets and sets the property StageVariables.
/// <para>
/// A map that defines the stage variables for a Stage. Variable names can have alphanumeric
/// and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
/// </para>
/// </summary>
public Dictionary<string, string> StageVariables
{
get { return this._stageVariables; }
set { this._stageVariables = value; }
}
// Check to see if StageVariables property is set
internal bool IsSetStageVariables()
{
return this._stageVariables != null && this._stageVariables.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 31.365079 | 110 | 0.570218 | [
"Apache-2.0"
] | ChristopherButtars/aws-sdk-net | sdk/src/Services/ApiGatewayV2/Generated/Model/CreateStageRequest.cs | 7,904 | C# |
using System;
using System.Collections.Generic;
using bv.common.Core;
using eidss.model.Core;
using eidss.model.Enums;
namespace eidss.model.Reports.Common
{
[Serializable]
public class DiagnosisModel : IDisposable
{
[LocalizedDisplayName("DiagnosisName")]
public long? DiagnosisId { get; set; }
public void Dispose()
{
if (ItemsList != null) ItemsList.Clear();
}
public List<SelectListItemSurrogate> ItemsList { get; private set; }
public void SetDiagnoses(List<SelectListItemSurrogate> diagnosisList)
{
ItemsList = diagnosisList;
}
public void LoadDiagnoses(int hascCode, List<long> filter = null, DiagnosisUsingTypeEnum? usingType = DiagnosisUsingTypeEnum.StandardCase)
{
var list = FilterHelper.GetDiagnosisList(Localizer.CurrentCultureLanguageID, hascCode, usingType);
if (filter != null)
{
for (var i = list.Count - 1; i >= 0; i++)
{
if (!filter.Contains(Convert.ToInt64(list[i].Value))) list.RemoveAt(i);
}
}
ItemsList = list;
}
}
}
| 30.487805 | 147 | 0.5768 | [
"BSD-2-Clause"
] | EIDSS/EIDSS-Legacy | EIDSS v6/eidss.model/Reports/Common/DiagnosisModel.cs | 1,252 | C# |
using DevSpatium.IO.TextReader.Operations;
namespace DevSpatium.IO.TextReader.Pattern.Parsing
{
public interface ICustomOperationParser
{
bool IsOperationSupported(char qualifyingToken);
BaseOperation Parse(IPatternReader reader, OperationType operationType);
}
} | 29.3 | 80 | 0.771331 | [
"MIT"
] | vbabit/text-reader-wrapper | src/DevSpatium.IO.TextReader/Pattern/Parsing/Operations/Custom/ICustomOperationParser.cs | 295 | C# |
using Should.Fluent;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace SampleFunctionApp.Test
{
public class Function1TestRunner
{
FakeTraceWriter fakeTraceWriter = new FakeTraceWriter();
[Fact]
async Task HttpTriggerWithoutParams()
{
HttpRequestMessage request = new HttpRequestMessage();
request.Content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.SetConfiguration(new System.Web.Http.HttpConfiguration());
var result = await Function1.Run(request, fakeTraceWriter);
(await result.Content.ReadAsStringAsync()).Should().Equal("\"Hello there! Welcome to Azure Functions!\"");
}
[Fact]
async Task HttpTriggerWithParams()
{
HttpRequestMessage request = new HttpRequestMessage();
request.Content = new StringContent("{'name': 'Bill'}", System.Text.Encoding.UTF8, "application/json");
request.SetConfiguration(new System.Web.Http.HttpConfiguration());
var result = await Function1.Run(request, fakeTraceWriter);
(await result.Content.ReadAsStringAsync()).Should().Equal($"\"Hello Bill! Welcome to Azure Functions!\"");
}
}
}
| 37.342857 | 118 | 0.65723 | [
"MIT"
] | 108425/DevOpsdotNet | dotnet/aspnet46/functionApp/Application/SampleFunctionApp.Test/Function1TestRunner.cs | 1,307 | C# |
/**************************************************************************
* *
* Description: ActressMas multi-agent framework *
* Website: https://github.com/florinleon/ActressMas *
* Copyright: (c) 2018, Florin Leon *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation. This program is distributed in the *
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even *
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR *
* PURPOSE. See the GNU General Public License for more details. *
* *
**************************************************************************/
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace ActressMas
{
/// <summary>
/// A message that the containers use to communicate.
/// </summary>
[Serializable]
internal class ContainerMessage
{
/// <summary>
/// Initializes a new instance of the ContainerMessage class.
/// </summary>
/// <param name="sender">The name of the container that sends the message</param>
/// <param name="receiver">The name of the container that needs to receive the message</param>
/// <param name="info">The high-level subject of the message</param>
/// <param name="content">The low-level content of the message, i.e. additional information</param>
public ContainerMessage(string sender, string receiver, string info, string content)
{
Sender = sender;
Receiver = receiver;
Info = info;
Content = content;
}
public string Content { get; set; }
public string Info { get; set; }
public string Receiver { get; set; }
public string Sender { get; set; }
/// <summary>
/// Deserializes an object.
/// </summary>
public static object Deserialize(string s)
{
byte[] bytes = Convert.FromBase64String(s);
var stream = new MemoryStream(bytes);
var bf = new BinaryFormatter();
return bf.Deserialize(stream);
}
/// <summary>
/// Serializes an object.
/// </summary>
public static string Serialize(object o)
{
if (!o.GetType().IsSerializable)
throw new Exception($"Object {o.GetType().FullName} is not serializable");
var stream = new MemoryStream();
var bf = new BinaryFormatter();
bf.Serialize(stream, o);
return Convert.ToBase64String(stream.ToArray());
}
/// <summary>
/// Converts the object to a string using the Serialize method.
/// </summary>
public override string ToString() =>
Serialize(this);
/// <summary>
/// Returns a string of the form "{Sender} -> {Receiver}: {Info} # {Content}"
/// </summary>
public string Format()
{
string mc = Content;
if (mc.Length > 20)
mc = mc.Substring(0, 20) + "...";
return $"{Sender} -> {Receiver}: {Info} # {mc}";
}
}
} | 40.088889 | 107 | 0.509424 | [
"Apache-2.0"
] | florinleon/ActressMas | ActressMAS v3.0/Source Code and Examples/ActressMas Framework/ActressMas/ContainerServer/ContainerMessage.cs | 3,610 | C# |
/*
* Copyright(c) 2021 Samsung Electronics Co., Ltd.
*
* 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.
*
*/
using System;
using Tizen.NUI;
namespace NUITizenGallery
{
internal class ImageTest5 : IExample
{
private Window window;
private ImageTest5Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
page = new ImageTest5Page();
window.Add(page);
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
page.Unparent();
page.Dispose();
}
}
} | 29.674419 | 94 | 0.640282 | [
"Apache-2.0",
"MIT"
] | SeonahMoon/TizenFX | test/NUITizenGallery/Examples/ImageTest5/ImageTest5.cs | 1,276 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Jewelry_Store_e.a.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
namespace Jewelry_Store_e.a.Controllers
{
[Authorize(Roles = "Admin")]
public class CustomersController : BaseController
{
public CustomersController(JewelryContext context): base(context)
{
}
// GET: Customers
public async Task<IActionResult> Index(string searchName,string searchLastName,string searchEmail)
{
var customers = from p in _context.Customers
select p;
if (!String.IsNullOrEmpty(searchName))
{
customers = customers.Where(s => s.FirstName.Contains(searchName));
}
if (!String.IsNullOrEmpty(searchLastName))
{
customers = customers.Where(s => s.LastName.Contains(searchLastName));
}
if (!String.IsNullOrEmpty(searchEmail))
{
customers = customers.Where(s => s.Email.Contains(searchEmail));
}
return View(await customers.ToListAsync());
}
// GET: Customers/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
{
return Redirect("/error/PageNotFound");
}
//thos will do joi i will sendt the view
var customer = await _context.Customers
.Include(s => s.Orders)
.ThenInclude(e => e.PurchaseProducts)
.SingleOrDefaultAsync(m => m.ID == id);
if (customer == null)
{
return Redirect("/error/PageNotFound");
}
return View(customer);
}
// GET: Customers/Create
public IActionResult Create()
{
return View();
}
// POST: Customers/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("ID,Email,FirstName,LastName,BirthDate,Password,IsAdmin")] Customer customer)
{
if (ModelState.IsValid)
{
_context.Add(customer);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(customer);
}
// GET: Customers/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
{
return Redirect("/error/PageNotFound");
}
var customer = await _context.Customers.FindAsync(id);
if (customer == null)
{
return Redirect("/error/PageNotFound");
}
return View(customer);
}
// POST: Customers/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("ID,Email,FirstName,LastName,BirthDate,Password,IsAdmin")] Customer customer)
{
if (id != customer.ID)
{
return Redirect("/error/PageNotFound");
}
if (ModelState.IsValid)
{
try
{
_context.Update(customer);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
{
if (!CustomerExists(customer.ID))
{
return Redirect("/error/PageNotFound");
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(customer);
}
// GET: Customers/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
{
return Redirect("/error/PageNotFound");
}
var customer = await _context.Customers
.FirstOrDefaultAsync(m => m.ID == id);
if (customer == null)
{
return Redirect("/error/PageNotFound");
}
return View(customer);
}
// POST: Customers/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var customer = await _context.Customers.FindAsync(id);
_context.Customers.Remove(customer);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool CustomerExists(int id)
{
return _context.Customers.Any(e => e.ID == id);
}
}
}
| 31.982353 | 137 | 0.526945 | [
"MIT"
] | ayelet-ron/jewelry_store_e.a | Jewelry_Store_e.a/Controllers/CustomersController.cs | 5,439 | C# |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace Workday.HumanResources
{
[GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:com.workday/bsvc")]
[Serializable]
public class Assign_Establishment_ResponseType : INotifyPropertyChanged
{
private Unique_IdentifierObjectType assign_Establishment_Event_ReferenceField;
private string versionField;
[method: CompilerGenerated]
[CompilerGenerated]
public event PropertyChangedEventHandler PropertyChanged;
[XmlElement(Order = 0)]
public Unique_IdentifierObjectType Assign_Establishment_Event_Reference
{
get
{
return this.assign_Establishment_Event_ReferenceField;
}
set
{
this.assign_Establishment_Event_ReferenceField = value;
this.RaisePropertyChanged("Assign_Establishment_Event_Reference");
}
}
[XmlAttribute(Form = XmlSchemaForm.Qualified)]
public string version
{
get
{
return this.versionField;
}
set
{
this.versionField = value;
this.RaisePropertyChanged("version");
}
}
protected void RaisePropertyChanged(string propertyName)
{
PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if (propertyChanged != null)
{
propertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
| 24.52459 | 136 | 0.766711 | [
"MIT"
] | matteofabbri/Workday.WebServices | Workday.HumanResources/Assign_Establishment_ResponseType.cs | 1,496 | C# |
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using InstructorIQ.Core.Domain.Models;
using InstructorIQ.Core.Multitenancy;
using InstructorIQ.WebApplication.Models;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace InstructorIQ.WebApplication.Pages.User
{
[Authorize]
public class ProfileModel : MediatorModelBase
{
private readonly SignInManager<Core.Data.Entities.User> _signInManager;
private readonly UserManager<Core.Data.Entities.User> _userManager;
public ProfileModel(
ITenant<TenantReadModel> tenant,
IMediator mediator,
ILoggerFactory loggerFactory,
UserManager<Core.Data.Entities.User> userManager,
SignInManager<Core.Data.Entities.User> signInManager)
: base(tenant, mediator, loggerFactory)
{
_userManager = userManager;
_signInManager = signInManager;
}
[BindProperty]
public InputModel Input { get; set; }
public string Username { get; set; }
public class InputModel
{
[Required]
[Display(Name = "Display Name")]
public string DisplayName { get; set; }
[Required]
[EmailAddress]
[Display(Name = "Email Address")]
public string Email { get; set; }
[Phone]
[Display(Name = "Phone number")]
public string PhoneNumber { get; set; }
}
public async Task<IActionResult> OnGetAsync()
{
var user = await _userManager.GetUserAsync(User);
if (user == null)
return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
var displayName = user.DisplayName;
var userName = await _userManager.GetUserNameAsync(user);
var email = await _userManager.GetEmailAsync(user);
var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
Username = userName;
Input = new InputModel
{
DisplayName = displayName,
Email = email,
PhoneNumber = phoneNumber
};
return Page();
}
public async Task<IActionResult> OnPostAsync()
{
if (!ModelState.IsValid)
return Page();
var user = await _userManager.GetUserAsync(User);
if (user == null)
return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
if (Input.DisplayName != user.DisplayName)
{
user.DisplayName = Input.DisplayName;
var updateResult = await _userManager.UpdateAsync(user);
if (!updateResult.Succeeded)
{
var userId = await _userManager.GetUserIdAsync(user);
throw new InvalidOperationException($"Unexpected error occurred updating display name for user with ID '{userId}'.");
}
}
var email = await _userManager.GetEmailAsync(user);
if (Input.Email != email)
{
var setEmailResult = await _userManager.SetEmailAsync(user, Input.Email);
if (!setEmailResult.Succeeded)
{
var userId = await _userManager.GetUserIdAsync(user);
throw new InvalidOperationException($"Unexpected error occurred setting email for user with ID '{userId}'.");
}
}
var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
if (Input.PhoneNumber != phoneNumber)
{
var setPhoneResult = await _userManager.SetPhoneNumberAsync(user, Input.PhoneNumber);
if (!setPhoneResult.Succeeded)
{
var userId = await _userManager.GetUserIdAsync(user);
throw new InvalidOperationException($"Unexpected error occurred setting phone number for user with ID '{userId}'.");
}
}
await _signInManager.RefreshSignInAsync(user);
ShowAlert("Your profile has been updated");
return RedirectToPage();
}
}
} | 34.882813 | 137 | 0.586114 | [
"Apache-2.0"
] | ejsmith/InstructorIQ | service/src/InstructorIQ.WebApplication/Pages/User/Profile.cshtml.cs | 4,467 | C# |
using System;
using System.Threading.Tasks;
using Akka.Streams.Kafka.Dsl;
using Akka.Streams.Kafka.Helpers;
using Akka.Streams.Kafka.Messages;
using Akka.Streams.Kafka.Settings;
using Akka.Streams.Kafka.Stages.Consumers.Abstract;
using Akka.Streams.Stage;
using Confluent.Kafka;
namespace Akka.Streams.Kafka.Stages.Consumers.Concrete
{
/// <summary>
/// This stage is used for <see cref="KafkaConsumer.CommittableSource{K,V}"/>
/// </summary>
/// <typeparam name="K">The key type</typeparam>
/// <typeparam name="V">The value type</typeparam>
internal class CommittableSourceStage<K, V> : KafkaSourceStage<K, V, CommittableMessage<K, V>>
{
private readonly Func<ConsumeResult<K, V>, string> _metadataFromMessage;
/// <summary>
/// Consumer settings
/// </summary>
public ConsumerSettings<K, V> Settings { get; }
/// <summary>
/// Subscription
/// </summary>
public ISubscription Subscription { get; }
/// <summary>
/// CommittableSourceStage
/// </summary>
/// <param name="settings">Consumer settings</param>
/// <param name="subscription">Subscription to be used</param>
/// <param name="metadataFromMessage">Function to extract string metadata from consumed message</param>
public CommittableSourceStage(ConsumerSettings<K, V> settings, ISubscription subscription,
Func<ConsumeResult<K, V>, string> metadataFromMessage = null)
: base("CommittableSource")
{
_metadataFromMessage = metadataFromMessage ?? (msg => string.Empty);
Settings = settings;
Subscription = subscription;
}
/// <summary>
/// Provides actual stage logic
/// </summary>
/// <param name="shape">Shape of the stage</param>
/// <param name="inheritedAttributes">Stage attributes</param>
/// <returns>Stage logic</returns>
protected override (GraphStageLogic, IControl) Logic(SourceShape<CommittableMessage<K, V>> shape, Attributes inheritedAttributes)
{
var logic = new SingleSourceStageLogic<K, V, CommittableMessage<K, V>>(shape, Settings, Subscription, inheritedAttributes, GetMessageBuilder);
return (logic, logic.Control);
}
private CommittableSourceMessageBuilder<K, V> GetMessageBuilder(BaseSingleSourceLogic<K, V, CommittableMessage<K, V>> logic)
{
var committer = new KafkaAsyncConsumerCommitter(() => logic.ConsumerActor, Settings.CommitTimeout);
return new CommittableSourceMessageBuilder<K, V>(committer, Settings.GroupId, _metadataFromMessage);
}
}
}
| 42.384615 | 154 | 0.648276 | [
"Apache-2.0"
] | Aaronontheweb/Akka.Streams.Kafka | src/Akka.Streams.Kafka/Stages/Consumers/Concrete/CommittableSourceStage.cs | 2,757 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReverseDNSGeolocation.Classification
{
public static class DistanceHelper
{
public const double NauticalMilesPerDegree = 60;
public const double NauticalMileToMiles = 1.1515; // 1.1508 for international Nautical Mile.
public const double MileToKilometer = 1.609344;
public const double MileToNauticalMiles = 0.8684;
/// <summary>
/// Great Circle Geocode distance according to:
/// http://sgowtham.net/ramblings/2009/08/04/php-calculating-distance-between-two-locations-given-their-gps-coordinates/
/// </summary>
/// <param name="lat1">The lat1.</param>
/// <param name="lon1">The lon1.</param>
/// <param name="lat2">The lat2.</param>
/// <param name="lon2">The lon2.</param>
/// <param name="unit">The unit. Mile is the default value</param>
/// <returns>The greater circle distance</returns>
public static double Distance(
double lat1, double lon1, double lat2, double lon2, DistanceUnit unit = DistanceUnit.Mile)
{
double theta = lon1 - lon2;
double dist = Math.Sin(DegreesToRadians(lat1)) * Math.Sin(DegreesToRadians(lat2))
+ Math.Cos(DegreesToRadians(lat1)) * Math.Cos(DegreesToRadians(lat2))
* Math.Cos(DegreesToRadians(theta));
if (dist > 1)
{
dist = 1;
}
dist = Math.Acos(dist);
dist = RadiansToDegrees(dist);
dist = dist * NauticalMilesPerDegree * NauticalMileToMiles;
switch (unit)
{
case DistanceUnit.Kilometer:
dist = dist * MileToKilometer;
break;
case DistanceUnit.NauticalMile:
dist = dist * MileToNauticalMiles;
break;
case DistanceUnit.Mile:
default:
// already in miles
break;
}
return dist;
}
private static double DegreesToRadians(double degrees)
{
return degrees * Math.PI / 180.0;
}
private static double RadiansToDegrees(double radians)
{
return radians / Math.PI * 180.0;
}
public static double ClosestToPower(double number, int power)
{
return Math.Pow(power, Math.Ceiling(Math.Log(number) / Math.Log(power)));
}
public static string GetDistanceBucketKM(int bucketSize, double distanceKilometers, int gteThreshold = 100)
{
var paddingWidth = gteThreshold.ToString().Length;
if (distanceKilometers < 0)
{
return "Distance-Invalid";
}
else if (distanceKilometers >= gteThreshold)
{
return string.Format(CultureInfo.InvariantCulture, "Distance-GTE-{0}-Km", gteThreshold.ToString().PadLeft(paddingWidth, '0'));
}
else
{
int lowerBucket = ((int)Math.Floor((1.0 * distanceKilometers) / (1.0 * bucketSize))) * bucketSize;
int upperBucket = lowerBucket + bucketSize;
return string.Format(CultureInfo.InvariantCulture, "Distance-GTE-{0}-LT-{1}-Km", lowerBucket.ToString().PadLeft(paddingWidth, '0'), upperBucket.ToString().PadLeft(paddingWidth, '0'));
}
}
}
}
| 35.320388 | 199 | 0.568719 | [
"MIT"
] | Bhaskers-Blu-Org2/ReverseDNSGeolocation | ReverseDNSGeolocation.Classification/DistanceHelper.cs | 3,640 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программным средством.
// Версия среды выполнения: 4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
// код создан повторно.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ClassApp.Properties
{
/// <summary>
/// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
/// </summary>
// Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
// класс с помощью таких средств, как ResGen или Visual Studio.
// Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
// с параметром /str или заново постройте свой VS-проект.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ClassApp.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Переопределяет свойство CurrentUICulture текущего потока для всех
/// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
| 40.861111 | 175 | 0.601971 | [
"MIT"
] | Yhtiyar/ClassApp | ClassApp/Properties/Resources.Designer.cs | 3,473 | C# |
namespace SmartCon
{
using System;
/// <summary>
/// The <c>TextIndent</c> class is responsible for the indentation of text.
/// </summary>
public class TextIndent
{
/// <summary>
/// The options used for this instance.
/// </summary>
private SmartConsoleOptions _options;
/// <summary>
/// The default indentation object.
/// </summary>
public static TextIndent DefaultIndent { get; private set; } = new TextIndent();
/// <summary>
/// Initializes a new instance of the <c>TextIndent</c> class.
/// </summary>
public TextIndent()
{
_options = SmartConsoleOptions.DefaultOptions;
}
/// <summary>
/// Initializes a new instance of the <c>TextIndent</c> class with the
/// specified options.
/// </summary>
/// <param name="options">The options to be used for this instance.</param>
public TextIndent(SmartConsoleOptions options)
{
_options = options;
}
/// <summary>
/// Increases the indentation level.
/// </summary>
public void IncreaseIndentationLevel()
{
_options.IncreaseIndent();
}
/// <summary>
/// Decreases the indentation level.
/// </summary>
public void DecreaseIndentationLevel()
{
_options.DecreaseIndent();
}
/// <summary>
/// Processes the specified text and adds an indentation at the beginning
/// of each line. The characters used for indentation are defined in the
/// <see cref="SmartConsoleOptions"/>.
/// </summary>
/// <param name="input">The text to be indented.</param>
/// <returns>The indented text.</returns>
public string IndentInput(string input)
{
var indent = String.Empty;
var builder = new System.Text.StringBuilder();
builder.Append(indent);
for (var i = 0; i < _options.IndentationLevel; i++)
{
builder.Append(_options.IndentationText);
}
indent = builder.ToString();
builder.Clear();
var indentedText = String.Empty;
var lines = SplitInput(input, _options.LineBreak);
var endsWithLineBreak = input.EndsWith(_options.LineBreak);
var row = 0;
foreach (var l in lines)
{
row++;
builder.Append(indent);
builder.Append(l);
if (row == lines.Length)
{
if (endsWithLineBreak) { builder.Append(_options.LineBreak); }
}
else
{
builder.Append(_options.LineBreak);
}
}
indentedText = builder.ToString();
return indentedText;
}
/// <summary>
/// Splits the given input by the specified linebreak.
/// </summary>
/// <param name="input">The text to be splitted.</param>
/// <param name="linebreak">The string used to identify the linebreak.</param>
/// <returns>An array containing a line per entry.</returns>
private static string[] SplitInput(string input, string linebreak)
{
var lines = input.Split(new[] { linebreak }, StringSplitOptions.None);
return lines;
}
}
} | 31.571429 | 88 | 0.529412 | [
"MIT"
] | kenareb/SmartCon | SmartCon/TextIndent.cs | 3,538 | 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 System.Linq;
using Microsoft.OData.Edm;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.OData.Common;
using Microsoft.OpenApi.OData.Edm;
namespace Microsoft.OpenApi.OData.PathItem
{
/// <summary>
/// Create the bound operations for the navigation source.
/// </summary>
internal class OperationPathItemHandler : PathItemHandler
{
/// <inheritdoc/>
protected override ODataPathKind HandleKind => ODataPathKind.Operation;
/// <summary>
/// Gets the Edm operation.
/// </summary>
public IEdmOperation EdmOperation { get; private set; }
/// <inheritdoc/>
protected override void SetOperations(OpenApiPathItem item)
{
if (EdmOperation.IsAction())
{
// The Path Item Object for a bound action contains the keyword post,
// The value of the operation keyword is an Operation Object that describes how to invoke the action.
AddOperation(item, OperationType.Post);
}
else
{
// The Path Item Object for a bound function contains the keyword get,
// The value of the operation keyword is an Operation Object that describes how to invoke the function.
AddOperation(item, OperationType.Get);
}
}
/// <inheritdoc/>
protected override void Initialize(ODataContext context, ODataPath path)
{
base.Initialize(context, path);
ODataOperationSegment operationSegment = path.LastSegment as ODataOperationSegment;
EdmOperation = operationSegment.Operation;
}
/// <inheritdoc/>
protected override void SetExtensions(OpenApiPathItem item)
{
if (!Context.Settings.ShowMsDosGroupPath)
{
return;
}
ODataNavigationSourceSegment navigationSourceSegment = Path.FirstSegment as ODataNavigationSourceSegment;
IEdmNavigationSource currentNavSource = navigationSourceSegment.NavigationSource;
IList<ODataPath> samePaths = new List<ODataPath>();
foreach (var path in Context.AllPaths.Where(p => p.Kind == ODataPathKind.Operation && p != Path))
{
navigationSourceSegment = path.FirstSegment as ODataNavigationSourceSegment;
if (currentNavSource != navigationSourceSegment.NavigationSource)
{
continue;
}
ODataOperationSegment operationSegment = path.LastSegment as ODataOperationSegment;
if (EdmOperation.FullName() != operationSegment.Operation.FullName())
{
continue;
}
samePaths.Add(path);
}
if (samePaths.Any())
{
OpenApiArray array = new OpenApiArray();
OpenApiConvertSettings settings = Context.Settings.Clone();
settings.EnableKeyAsSegment = Context.KeyAsSegment;
foreach (var p in samePaths)
{
array.Add(new OpenApiString(p.GetPathItemName(settings)));
}
item.Extensions.Add(Constants.xMsDosGroupPath, array);
}
}
/// <inheritdoc/>
protected override void SetBasicInfo(OpenApiPathItem pathItem)
{
base.SetBasicInfo(pathItem);
pathItem.Description = $"Provides operations to call the {EdmOperation.Name} method.";
}
}
}
| 37.838095 | 119 | 0.584193 | [
"MIT"
] | Microsoft/OpenAPI.NET.OData | src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs | 3,975 | C# |
using System;
using System.Threading.Tasks;
namespace CongratulatoryMoneyManagement.Activation
{
// For more information on application activation see https://github.com/Microsoft/WindowsTemplateStudio/blob/master/docs/activation.md
internal abstract class ActivationHandler
{
public abstract bool CanHandle(object args);
public abstract Task HandleAsync(object args);
}
internal abstract class ActivationHandler<T> : ActivationHandler
where T : class
{
protected abstract Task HandleInternalAsync(T args);
public override async Task HandleAsync(object args)
{
await HandleInternalAsync(args as T);
}
public override bool CanHandle(object args)
{
return args is T && CanHandleInternal(args as T);
}
protected virtual bool CanHandleInternal(T args)
{
return true;
}
}
}
| 26.971429 | 139 | 0.662076 | [
"MIT"
] | reastykim/CongratulatoryMoneyManagement | CongratulatoryMoneyManagement/Activation/ActivationHandler.cs | 946 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.Network.Models
{
public partial class LoadBalancerSku : IUtf8JsonSerializable
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
writer.WriteStartObject();
if (Name != null)
{
writer.WritePropertyName("name");
writer.WriteStringValue(Name.Value.ToString());
}
writer.WriteEndObject();
}
internal static LoadBalancerSku DeserializeLoadBalancerSku(JsonElement element)
{
LoadBalancerSkuName? name = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("name"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
continue;
}
name = new LoadBalancerSkuName(property.Value.GetString());
continue;
}
}
return new LoadBalancerSku(name);
}
}
}
| 28.488889 | 87 | 0.546022 | [
"MIT"
] | AzureDataBox/azure-sdk-for-net | sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerSku.Serialization.cs | 1,282 | C# |
// -----------------------------------------------------------------------------------------
// <copyright file="ProjectionAnalyzer.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// 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>
// -----------------------------------------------------------------------------------------
namespace Microsoft.WindowsAzure.Storage.Table.Queryable
{
#region Namespaces.
using Microsoft.WindowsAzure.Storage.Core;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
#endregion Namespaces.
internal static class ProjectionAnalyzer
{
#region Internal methods.
internal static bool Analyze(LambdaExpression le, ResourceExpression re, bool matchMembers)
{
Debug.Assert(le != null, "le != null");
if (le.Body.NodeType == ExpressionType.Constant)
{
if (CommonUtil.IsClientType(le.Body.Type))
{
throw new NotSupportedException(SR.ALinqCannotCreateConstantEntity);
}
re.Projection = new ProjectionQueryOptionExpression(le.Body.Type, le, new List<string>());
return true;
}
if (le.Body.NodeType == ExpressionType.Call)
{
MethodCallExpression mce = le.Body as MethodCallExpression;
if (mce.Method == ReflectionUtil.ProjectMethodInfo.MakeGenericMethod(le.Body.Type))
{
ConstantExpression paths = mce.Arguments[1] as ConstantExpression;
re.Projection = new ProjectionQueryOptionExpression(le.Body.Type, ProjectionQueryOptionExpression.DefaultLambda, new List<string>((string[])paths.Value));
return true;
}
}
if (le.Body.NodeType == ExpressionType.MemberInit || le.Body.NodeType == ExpressionType.New)
{
AnalyzeResourceExpression(le, re);
return true;
}
if (matchMembers)
{
Expression withoutConverts = SkipConverts(le.Body);
if (withoutConverts.NodeType == ExpressionType.MemberAccess)
{
AnalyzeResourceExpression(le, re);
return true;
}
}
return false;
}
internal static void Analyze(LambdaExpression e, PathBox pb)
{
bool knownEntityType = CommonUtil.IsClientType(e.Body.Type);
pb.PushParamExpression(e.Parameters.Last());
if (!knownEntityType)
{
NonEntityProjectionAnalyzer.Analyze(e.Body, pb);
}
else
{
switch (e.Body.NodeType)
{
case ExpressionType.MemberInit:
EntityProjectionAnalyzer.Analyze((MemberInitExpression)e.Body, pb);
break;
case ExpressionType.New:
throw new NotSupportedException(SR.ALinqCannotConstructKnownEntityTypes);
case ExpressionType.Constant:
throw new NotSupportedException(SR.ALinqCannotCreateConstantEntity);
default:
NonEntityProjectionAnalyzer.Analyze(e.Body, pb);
break;
}
}
pb.PopParamExpression();
}
internal static bool IsMethodCallAllowedEntitySequence(MethodCallExpression call)
{
Debug.Assert(call != null, "call != null");
return
ReflectionUtil.IsSequenceMethod(call.Method, SequenceMethod.ToList) ||
ReflectionUtil.IsSequenceMethod(call.Method, SequenceMethod.Select);
}
internal static void CheckChainedSequence(MethodCallExpression call, Type type)
{
if (ReflectionUtil.IsSequenceMethod(call.Method, SequenceMethod.Select))
{
MethodCallExpression insideCall = ResourceBinder.StripTo<MethodCallExpression>(call.Arguments[0]);
if (insideCall != null && ReflectionUtil.IsSequenceMethod(insideCall.Method, SequenceMethod.Select))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, type, call.ToString()));
}
}
}
#endregion Internal methods.
#region Private methods.
private static void Analyze(MemberInitExpression mie, PathBox pb)
{
Debug.Assert(mie != null, "mie != null");
Debug.Assert(pb != null, "pb != null");
bool knownEntityType = CommonUtil.IsClientType(mie.Type);
if (knownEntityType)
{
EntityProjectionAnalyzer.Analyze(mie, pb);
}
else
{
NonEntityProjectionAnalyzer.Analyze(mie, pb);
}
}
private static void AnalyzeResourceExpression(LambdaExpression lambda, ResourceExpression resource)
{
PathBox pb = new PathBox();
ProjectionAnalyzer.Analyze(lambda, pb);
resource.Projection = new ProjectionQueryOptionExpression(lambda.Body.Type, lambda, pb.ProjectionPaths.ToList());
resource.ExpandPaths = pb.ExpandPaths.Union(resource.ExpandPaths, StringComparer.Ordinal).ToList();
}
private static Expression SkipConverts(Expression expression)
{
Expression result = expression;
while (result.NodeType == ExpressionType.Convert || result.NodeType == ExpressionType.ConvertChecked)
{
result = ((UnaryExpression)result).Operand;
}
return result;
}
#endregion Private methods.
#region Inner types.
private class EntityProjectionAnalyzer : ALinqExpressionVisitor
{
#region Private fields.
private readonly PathBox box;
private readonly Type type;
#endregion Private fields.
private EntityProjectionAnalyzer(PathBox pb, Type type)
{
Debug.Assert(pb != null, "pb != null");
Debug.Assert(type != null, "type != null");
this.box = pb;
this.type = type;
}
internal static void Analyze(MemberInitExpression mie, PathBox pb)
{
Debug.Assert(mie != null, "mie != null");
var epa = new EntityProjectionAnalyzer(pb, mie.Type);
MemberAssignmentAnalysis targetEntityPath = null;
foreach (MemberBinding mb in mie.Bindings)
{
MemberAssignment ma = mb as MemberAssignment;
epa.Visit(ma.Expression);
if (ma != null)
{
var analysis = MemberAssignmentAnalysis.Analyze(pb.ParamExpressionInScope, ma.Expression);
if (analysis.IncompatibleAssignmentsException != null)
{
throw analysis.IncompatibleAssignmentsException;
}
Type targetType = GetMemberType(ma.Member);
Expression[] lastExpressions = analysis.GetExpressionsBeyondTargetEntity();
if (lastExpressions.Length == 0)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, targetType, ma.Expression));
}
MemberExpression lastExpression = lastExpressions[lastExpressions.Length - 1] as MemberExpression;
Debug.Assert(
!analysis.MultiplePathsFound,
"!analysis.MultiplePathsFound -- the initilizer has been visited, and cannot be empty, and expressions that can combine paths should have thrown exception during initializer analysis");
Debug.Assert(
lastExpression != null,
"lastExpression != null -- the initilizer has been visited, and cannot be empty, and the only expressions that are allowed can be formed off the parameter, so this is always correlatd");
if (lastExpression != null && (lastExpression.Member.Name != ma.Member.Name))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqPropertyNamesMustMatchInProjections, lastExpression.Member.Name, ma.Member.Name));
}
analysis.CheckCompatibleAssignments(mie.Type, ref targetEntityPath);
bool targetIsEntity = CommonUtil.IsClientType(targetType);
bool sourceIsEntity = CommonUtil.IsClientType(lastExpression.Type);
if (sourceIsEntity && !targetIsEntity)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, targetType, ma.Expression));
}
}
}
}
[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1100:DoNotPrefixCallsWithBaseUnlessLocalImplementationExists", Justification = "Reviewed. Suppression is OK here.")]
internal override Expression VisitUnary(UnaryExpression u)
{
Debug.Assert(u != null, "u != null");
if (ResourceBinder.PatternRules.MatchConvertToAssignable(u))
{
return base.VisitUnary(u);
}
if ((u.NodeType == ExpressionType.Convert) || (u.NodeType == ExpressionType.ConvertChecked))
{
Type sourceType = Nullable.GetUnderlyingType(u.Operand.Type) ?? u.Operand.Type;
Type targetType = Nullable.GetUnderlyingType(u.Type) ?? u.Type;
if (ClientConvert.IsKnownType(sourceType) && ClientConvert.IsKnownType(targetType))
{
return base.Visit(u.Operand);
}
}
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, u.ToString()));
}
internal override Expression VisitBinary(BinaryExpression b)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, b.ToString()));
}
internal override Expression VisitTypeIs(TypeBinaryExpression b)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, b.ToString()));
}
internal override Expression VisitConditional(ConditionalExpression c)
{
var nullCheck = ResourceBinder.PatternRules.MatchNullCheck(this.box.ParamExpressionInScope, c);
if (nullCheck.Match)
{
this.Visit(nullCheck.AssignExpression);
return c;
}
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, c.ToString()));
}
internal override Expression VisitConstant(ConstantExpression c)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, c.ToString()));
}
internal override Expression VisitMemberAccess(MemberExpression m)
{
Debug.Assert(m != null, "m != null");
if (!CommonUtil.IsClientType(m.Expression.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, m.ToString()));
}
PropertyInfo pi = null;
if (ResourceBinder.PatternRules.MatchNonPrivateReadableProperty(m, out pi))
{
Expression e = base.VisitMemberAccess(m);
this.box.AppendToPath(pi);
return e;
}
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, m.ToString()));
}
internal override Expression VisitMethodCall(MethodCallExpression m)
{
/*
if ((m.Object != null && ProjectionAnalyzer.IsDisallowedExpressionForMethodCall(m.Object))
|| m.Arguments.Any(a => ProjectionAnalyzer.IsDisallowedExpressionForMethodCall(a)))
{
throw new NotSupportedException(string.Format(SR.ALinqExpressionNotSupportedInProjection, this.type, m.ToString()));
}
*/
if (ProjectionAnalyzer.IsMethodCallAllowedEntitySequence(m))
{
ProjectionAnalyzer.CheckChainedSequence(m, this.type);
return base.VisitMethodCall(m);
}
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, m.ToString()));
}
internal override Expression VisitInvocation(InvocationExpression iv)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, iv.ToString()));
}
internal override Expression VisitLambda(LambdaExpression lambda)
{
ProjectionAnalyzer.Analyze(lambda, this.box);
return lambda;
}
internal override Expression VisitListInit(ListInitExpression init)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, init.ToString()));
}
internal override Expression VisitNewArray(NewArrayExpression na)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, na.ToString()));
}
internal override Expression VisitMemberInit(MemberInitExpression init)
{
ProjectionAnalyzer.Analyze(init, this.box);
return init;
}
internal override NewExpression VisitNew(NewExpression nex)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjectionToEntity, this.type, nex.ToString()));
}
internal override Expression VisitParameter(ParameterExpression p)
{
if (p != this.box.ParamExpressionInScope)
{
throw new NotSupportedException(SR.ALinqCanOnlyProjectTheLeaf);
}
this.box.StartNewPath();
return p;
}
private static Type GetMemberType(MemberInfo member)
{
Debug.Assert(member != null, "member != null");
PropertyInfo propertyInfo = member as PropertyInfo;
if (propertyInfo != null)
{
return propertyInfo.PropertyType;
}
FieldInfo fieldInfo = member as FieldInfo;
Debug.Assert(fieldInfo != null, "fieldInfo != null -- otherwise Expression.Member factory should have thrown an argument exception");
return fieldInfo.FieldType;
}
}
private class NonEntityProjectionAnalyzer : DataServiceALinqExpressionVisitor
{
private PathBox box;
private Type type;
private NonEntityProjectionAnalyzer(PathBox pb, Type type)
{
this.box = pb;
this.type = type;
}
internal static void Analyze(Expression e, PathBox pb)
{
var nepa = new NonEntityProjectionAnalyzer(pb, e.Type);
MemberInitExpression mie = e as MemberInitExpression;
if (mie != null)
{
foreach (MemberBinding mb in mie.Bindings)
{
MemberAssignment ma = mb as MemberAssignment;
if (ma != null)
{
nepa.Visit(ma.Expression);
}
}
}
else
{
nepa.Visit(e);
}
}
internal override Expression VisitUnary(UnaryExpression u)
{
Debug.Assert(u != null, "u != null");
if (!ResourceBinder.PatternRules.MatchConvertToAssignable(u))
{
if (CommonUtil.IsClientType(u.Operand.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, u.ToString()));
}
}
return base.VisitUnary(u);
}
internal override Expression VisitBinary(BinaryExpression b)
{
if (CommonUtil.IsClientType(b.Left.Type) || CommonUtil.IsClientType(b.Right.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, b.ToString()));
}
return base.VisitBinary(b);
}
internal override Expression VisitTypeIs(TypeBinaryExpression b)
{
if (CommonUtil.IsClientType(b.Expression.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, b.ToString()));
}
return base.VisitTypeIs(b);
}
internal override Expression VisitConditional(ConditionalExpression c)
{
var nullCheck = ResourceBinder.PatternRules.MatchNullCheck(this.box.ParamExpressionInScope, c);
if (nullCheck.Match)
{
this.Visit(nullCheck.AssignExpression);
return c;
}
if (CommonUtil.IsClientType(c.Test.Type) || CommonUtil.IsClientType(c.IfTrue.Type) || CommonUtil.IsClientType(c.IfFalse.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, c.ToString()));
}
return base.VisitConditional(c);
}
internal override Expression VisitMemberAccess(MemberExpression m)
{
Debug.Assert(m != null, "m != null");
if (ClientConvert.IsKnownNullableType(m.Expression.Type))
{
return base.VisitMemberAccess(m);
}
if (!CommonUtil.IsClientType(m.Expression.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, m.ToString()));
}
PropertyInfo pi = null;
if (ResourceBinder.PatternRules.MatchNonPrivateReadableProperty(m, out pi))
{
Expression e = base.VisitMemberAccess(m);
this.box.AppendToPath(pi);
return e;
}
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, m.ToString()));
}
internal override Expression VisitMethodCall(MethodCallExpression m)
{
if (ProjectionAnalyzer.IsMethodCallAllowedEntitySequence(m))
{
ProjectionAnalyzer.CheckChainedSequence(m, this.type);
return base.VisitMethodCall(m);
}
if ((m.Object != null ? CommonUtil.IsClientType(m.Object.Type) : false)
|| m.Arguments.Any(a => CommonUtil.IsClientType(a.Type)))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, m.ToString()));
}
return base.VisitMethodCall(m);
}
internal override Expression VisitInvocation(InvocationExpression iv)
{
if (CommonUtil.IsClientType(iv.Expression.Type)
|| iv.Arguments.Any(a => CommonUtil.IsClientType(a.Type)))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, iv.ToString()));
}
return base.VisitInvocation(iv);
}
internal override Expression VisitLambda(LambdaExpression lambda)
{
ProjectionAnalyzer.Analyze(lambda, this.box);
return lambda;
}
internal override Expression VisitMemberInit(MemberInitExpression init)
{
ProjectionAnalyzer.Analyze(init, this.box);
return init;
}
internal override NewExpression VisitNew(NewExpression nex)
{
if (CommonUtil.IsClientType(nex.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, nex.ToString()));
}
return base.VisitNew(nex);
}
internal override Expression VisitParameter(ParameterExpression p)
{
if (p != this.box.ParamExpressionInScope)
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, p.ToString()));
}
this.box.StartNewPath();
return p;
}
internal override Expression VisitConstant(ConstantExpression c)
{
if (CommonUtil.IsClientType(c.Type))
{
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, SR.ALinqExpressionNotSupportedInProjection, this.type, c.ToString()));
}
return base.VisitConstant(c);
}
}
#endregion Inner types.
}
}
| 42.037736 | 214 | 0.569936 | [
"Apache-2.0"
] | Hitcents/azure-storage-net | Lib/Common/Table/Queryable/ProjectionAnalyzer.cs | 24,510 | C# |
using Application.Behaviors;
using Autofac;
using MediatR;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace Application.AutofacModules
{
/// <summary>
/// MediatR相关注册模块
/// </summary>
public class MediatrModule : Autofac.Module
{
protected override void Load(ContainerBuilder builder)
{
//注册命令与处理器
builder.RegisterAssemblyTypes(Assembly.Load("Application"))
.AsClosedTypesOf(typeof(IRequestHandler<,>))
.InstancePerDependency();
//注册领域事件与处理器
builder.RegisterAssemblyTypes(Assembly.Load("Application"))
.AsClosedTypesOf(typeof(INotificationHandler<>))
.InstancePerDependency();
//管道-事务
builder.RegisterGeneric(typeof(ValidateBehavior<,>)).As(typeof(IPipelineBehavior<,>));
builder.RegisterGeneric(typeof(TransactionBehavior<,>)).As(typeof(IPipelineBehavior<,>));
base.Load(builder);
}
}
}
| 29.277778 | 101 | 0.635674 | [
"Apache-2.0"
] | leonken/LeonFrame | Application/AutofacModules/MediatrModule.cs | 1,112 | C# |
using System;
using System.Reflection;
using Xunit.Abstractions;
namespace LeanTest.Xunit
{
/// <summary>Xunit does not have a TestContext. The following gives us access to the name of the current test.</summary>
/// <remarks>This code is heavily inspired by https://github.com/SimonCropp/XunitContext#current-test.</remarks>
public class TestContext
{
private readonly ITestOutputHelper _testOutput;
private ITest _test;
/// <summary>ctor</summary>
/// <param name="testOutput">This is what you were passed in your Xunit test class ctor.</param>
public TestContext(ITestOutputHelper testOutput) => _testOutput = testOutput ?? throw new ArgumentNullException();
public string MethodName => GetTest().TestCase.TestMethod.Method.Name;
private ITest GetTest() => _test ??= (ITest)GetTestMethod().GetValue(_testOutput);
private FieldInfo GetTestMethod()
{
var testOutputType = _testOutput.GetType();
var testMethod = testOutputType.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic);
if (testMethod == null)
throw new Exception($"Unable to find 'test' field on {testOutputType.FullName}");
return testMethod;
}
}
} | 37.774194 | 121 | 0.748933 | [
"Apache-2.0"
] | RemyHa/Leantest | Source/xUnit/TestContext.cs | 1,173 | C# |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.UI.Xaml
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class DragUIOverride
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public bool IsGlyphVisible
{
get
{
throw new global::System.NotImplementedException("The member bool DragUIOverride.IsGlyphVisible is not implemented in Uno.");
}
set
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "bool DragUIOverride.IsGlyphVisible");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public bool IsContentVisible
{
get
{
throw new global::System.NotImplementedException("The member bool DragUIOverride.IsContentVisible is not implemented in Uno.");
}
set
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "bool DragUIOverride.IsContentVisible");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public bool IsCaptionVisible
{
get
{
throw new global::System.NotImplementedException("The member bool DragUIOverride.IsCaptionVisible is not implemented in Uno.");
}
set
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "bool DragUIOverride.IsCaptionVisible");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public string Caption
{
get
{
throw new global::System.NotImplementedException("The member string DragUIOverride.Caption is not implemented in Uno.");
}
set
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "string DragUIOverride.Caption");
}
}
#endif
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.Caption.get
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.Caption.set
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsContentVisible.get
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsContentVisible.set
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsCaptionVisible.get
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsCaptionVisible.set
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsGlyphVisible.get
// Forced skipping of method Windows.UI.Xaml.DragUIOverride.IsGlyphVisible.set
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public void Clear()
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "void DragUIOverride.Clear()");
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public void SetContentFromBitmapImage( global::Windows.UI.Xaml.Media.Imaging.BitmapImage bitmapImage)
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "void DragUIOverride.SetContentFromBitmapImage(BitmapImage bitmapImage)");
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public void SetContentFromBitmapImage( global::Windows.UI.Xaml.Media.Imaging.BitmapImage bitmapImage, global::Windows.Foundation.Point anchorPoint)
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "void DragUIOverride.SetContentFromBitmapImage(BitmapImage bitmapImage, Point anchorPoint)");
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public void SetContentFromSoftwareBitmap( global::Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap)
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "void DragUIOverride.SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap)");
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public void SetContentFromSoftwareBitmap( global::Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap, global::Windows.Foundation.Point anchorPoint)
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.DragUIOverride", "void DragUIOverride.SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap, Point anchorPoint)");
}
#endif
}
}
| 43.162162 | 213 | 0.764976 | [
"Apache-2.0"
] | 06needhamt/uno | src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml/DragUIOverride.cs | 4,791 | C# |
using System;
namespace Fuzky.Core.Utils.Interfaces
{
public interface IThreadDispatcher
{
void InvokeIfRequired(Action action);
}
} | 17.111111 | 45 | 0.701299 | [
"MIT"
] | mateuszgiza/Fuzky | Fuzky.Core/Utils/Interfaces/IThreadDispatcher.cs | 156 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UsefullAlgorithms.Graph
{
[DebuggerDisplay("{Source.Data.ToString()} => {Destination.Data.ToString()}")]
public class Edge<T> where T: IEquatable<T>
{
public enum Relation
{
ParentToChild,
ChildToParent,
SelfConnected
}
public Vertex<T> Source { get; }
public Vertex<T> Destination { get; }
public Edge(Vertex<T> source, Vertex<T> destination)
{
this.Source = source;
this.Destination = destination;
}
public Edge(T source, T destination)
{
this.Source = new Vertex<T>(source);
this.Destination = new Vertex<T>(destination);
}
}
}
| 23.702703 | 82 | 0.58951 | [
"MIT"
] | Puchaczov/GenericShuntingYard | UsefullAlgorithms/UsefullAlgorithms.Graph/Edge.cs | 879 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Assets.Sources.Scripts.UI.Common;
using Memoria.Assets;
using Memoria.Prime.Text;
using UnityEngine;
using Object = System.Object;
[RequireComponent(typeof(UIPanel))]
public class Dialog : MonoBehaviour
{
public Dialog()
{
this.startChoiceRow = -1;
this.selectedChoice = -1;
this.chooseMask = -1;
this.choiceList = new List<GameObject>();
this.maskChoiceList = new List<GameObject>();
this.disableIndexes = new List<Int32>();
this.activeIndexes = new List<Int32>();
this.choiceYPositions = new List<Single>();
}
static Dialog()
{
// Note: this type is marked as 'beforefieldinit'.
Dialog.DialogGroupButton = "Dialog.Choice";
Dialog.DefaultOffset = new Vector2(36f, 0f);
}
public Int32 StartChoiceRow
{
get
{
return this.startChoiceRow;
}
set
{
this.startChoiceRow = value;
}
}
public Int32 ChoiceNumber
{
get
{
return this.choiceNumber;
}
set
{
this.choiceNumber = value;
}
}
public Int32 DefaultChoice
{
get
{
return this.defaultChoice;
}
set
{
this.defaultChoice = value;
}
}
public Int32 CancelChoice
{
get
{
return this.cancelChoice;
}
set
{
this.cancelChoice = value;
}
}
public Int32 SelectChoice
{
get
{
return this.selectedChoice;
}
set
{
this.selectedChoice = value;
DialogManager.SelectChoice = value;
}
}
public GameObject ActiveChoice
{
get
{
return ButtonGroupState.ActiveButton;
}
}
public List<Int32> ActiveIndexes
{
get
{
return this.activeIndexes;
}
}
public List<Int32> DisableIndexes
{
get
{
return this.disableIndexes;
}
}
public Int32 ChooseMask
{
get
{
return this.chooseMask;
}
set
{
this.chooseMask = value;
this.ProcessChooseMask();
this.LineNumber -= (Single)this.disableIndexes.Count<Int32>();
}
}
public Boolean IsChoiceReady
{
get
{
return this.isChoiceReady;
}
}
private void InitializeChoice()
{
if (this.isNeedResetChoice)
{
this.SelectChoice = 0;
ETb.sChooseInit = 0;
}
ETb.sChoose = this.SelectChoice;
if (this.startChoiceRow > -1)
{
this.isMuteSelectSound = true;
base.StartCoroutine("InitializeChoiceProcess");
}
}
private IEnumerator InitializeChoiceProcess()
{
do
{
yield return new WaitForEndOfFrame();
}
while (PersistenSingleton<UIManager>.Instance.IsPause);
PersistenSingleton<UIManager>.Instance.Dialogs.ShowChoiceHud();
this.CalculateYLine();
Int32 choiceCounter = 0;
Int32 lineControl = this.startChoiceRow;
Single startYPos = this.phraseLabel.transform.localPosition.y;
Single colliderHeight = Dialog.DialogLineHeight;
Int32 totalLine = this.lineNumber + this.disableIndexes.Count<Int32>();
Int32 line = this.startChoiceRow;
while (line < totalLine)
{
GameObject choice = NGUITools.AddChild(this.ChooseContainerGameObject, this.DialogChoicePrefab);
UIWidget choiceWidget = choice.GetComponent<UIWidget>();
UIKeyNavigation choiceKeyNav = choice.GetComponent<UIKeyNavigation>();
UIWidget phraseWidget = this.PhraseGameObject.GetComponent<UIWidget>();
choice.name = "Choice#" + line;
choice.transform.parent = this.ChooseContainerGameObject.transform;
choice.transform.position = this.PhraseGameObject.transform.position;
Vector3 localPos = (lineControl >= this.choiceYPositions.Count) ? Vector3.zero : new Vector3(0f, startYPos + this.choiceYPositions[lineControl], 0f);
choice.transform.localPosition = localPos;
choiceWidget.width = phraseWidget.width;
choiceWidget.height = (Int32)colliderHeight;
if (line - this.startChoiceRow == this.defaultChoice)
{
choiceKeyNav.startsSelected = true;
}
if (this.disableIndexes.Contains(choiceCounter))
{
choice.SetActive(false);
}
else
{
lineControl++;
this.maskChoiceList.Add(choice);
}
this.choiceList.Add(choice);
line++;
choiceCounter++;
}
NGUIExtension.SetKeyNevigation(this.choiceList);
ButtonGroupState.RemoveCursorMemorize(Dialog.DialogGroupButton);
ButtonGroupState.SetPointerDepthToGroup(this.phrasePanel.depth + 1, Dialog.DialogGroupButton);
ButtonGroupState.UpdatePointerPropertyForGroup(Dialog.DialogGroupButton);
ButtonGroupState.ActiveGroup = Dialog.DialogGroupButton;
this.isMuteSelectSound = true;
this.SetCurrentChoice(this.defaultChoice);
yield return new WaitForEndOfFrame();
this.isChoiceReady = true;
yield break;
}
public void ResetChoose()
{
foreach (GameObject obj in this.choiceList)
{
UnityEngine.Object.DestroyObject(obj);
}
this.StartChoiceRow = -1;
this.choiceNumber = 0;
this.defaultChoice = 0;
this.cancelChoice = 0;
this.activeIndexes.Clear();
this.disableIndexes.Clear();
this.choiceList.Clear();
this.maskChoiceList.Clear();
}
public void SetCurrentChoice(Int32 choice)
{
this.SelectChoice = choice;
ButtonGroupState.ActiveButton = this.choiceList[choice];
}
public void SetCurrentChoiceRef(Int32 choiceRef)
{
Int32 selectChoice = this.SelectChoice;
Int32 num = this.SelectChoice;
Int32 num2 = this.maskChoiceList.IndexOf(this.choiceList[this.SelectChoice]);
Int32 num3 = choiceRef + num2;
num3 = Mathf.Clamp(num3, 0, this.maskChoiceList.Count - 1);
num = this.choiceList.IndexOf(this.maskChoiceList[num3]);
if (selectChoice != num)
{
this.SetCurrentChoice(num);
}
}
private void ProcessChooseMask()
{
Int32 num = this.chooseMask;
if (num == -1)
{
return;
}
for (Int32 i = 0; i < this.choiceNumber; i++)
{
if (num % 2 == 0)
{
this.disableIndexes.Add(i);
}
else
{
this.activeIndexes.Add(i);
}
num >>= 1;
}
}
public Boolean SkipThisChoice(Int32 choiceIndex)
{
return this.disableIndexes.Contains(choiceIndex);
}
private void CalculateYLine()
{
this.choiceYPositions.Clear();
this.phraseLabel.UpdateNGUIText();
BetterList<Vector3> verts = this.phraseLabel.geometry.verts;
Int32 num = verts.size / 2;
foreach (Int32 num2 in this.phraseLabel.VertsLineOffsets)
{
if (num2 < num)
{
this.choiceYPositions.Add((verts[num2].y + verts[num2 + 1].y) / 2f);
}
}
}
public Int32 Id
{
get
{
return this.id;
}
set
{
this.id = value;
}
}
public DialogAnimator DialogAnimate
{
get
{
return this.dialogAnimator;
}
}
public Dialog.TailPosition Tail
{
get
{
return this.tailPosition;
}
set
{
this.setTailPosition(value);
}
}
public Single TailMargin
{
get
{
return this.tailMargin;
}
}
public Dialog.WindowStyle Style
{
get
{
return this.windowStyle;
}
set
{
this.windowStyle = value;
switch (value)
{
case Dialog.WindowStyle.WindowStyleAuto:
case Dialog.WindowStyle.WindowStyleNoTail:
this.borderSprite.spriteName = "dialog_frame_chat";
break;
case Dialog.WindowStyle.WindowStylePlain:
this.borderSprite.spriteName = "dialog_frame_info";
break;
case Dialog.WindowStyle.WindowStyleTransparent:
this.borderSprite.spriteName = String.Empty;
break;
}
}
}
public Vector2 Size
{
get
{
return this.size;
}
}
public Vector2 ClipSize
{
get
{
return new Vector2(this.size.x + Dialog.DialogXPadding * 2f, this.size.y + Dialog.DialogYPadding);
}
}
public Vector2 Position
{
get
{
return this.position;
}
set
{
this.position = value * UIManager.ResourceYMultipier;
}
}
public Vector3 OffsetPosition
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
public String Phrase
{
get
{
return this.phrase;
}
set
{
String text = this.OverwritePrerenderText(value);
DialogBoxConstructor.PhrasePreOpcodeSymbol(text, this);
this.PrepareNextPage();
}
}
public String Caption
{
get
{
return this.caption;
}
set
{
if (this.captionLabel.text != value && !String.IsNullOrEmpty(value))
{
this.caption = value;
this.captionLabel.text = value;
this.captionWidth = NGUIText.GetTextWidthFromFF9Font(this.captionLabel, value);
}
}
}
public Dialog.CaptionType CapType
{
get
{
return this.capType;
}
set
{
this.capType = value;
}
}
public Single CaptionWidth
{
get
{
return this.captionWidth;
}
}
public Single Width
{
get
{
return this.size.x;
}
set
{
this.originalWidth = value;
value *= UIManager.ResourceXMultipier;
this.size.x = Mathf.Max(value, (Single)(Dialog.WindowMinWidth - Dialog.AdjustWidth));
this.bodySprite.width = (Int32)this.size.x;
this.phraseWidget.width = (Int32)this.size.x - (Int32)(Dialog.DialogPhraseXPadding * 2f);
this.phraseWidget.transform.localPosition = new Vector3((Single)(-(Single)this.phraseWidget.width) / 2f, this.phraseWidget.transform.localPosition.y, this.phraseWidget.transform.localPosition.z);
this.clipPanel.baseClipRegion = new Vector4(this.clipPanel.baseClipRegion.x, this.clipPanel.baseClipRegion.y, this.ClipSize.x, this.ClipSize.y);
}
}
public Single OriginalWidth
{
get
{
return this.originalWidth;
}
}
public Single LineNumber
{
get
{
return (Single)this.lineNumber;
}
set
{
this.lineNumber = (Int32)value;
this.size.y = value * Dialog.DialogLineHeight + Dialog.DialogPhraseYPadding;
this.bodySprite.height = (Int32)this.size.y;
this.phraseWidget.height = (Int32)this.size.y - (Int32)Dialog.DialogPhraseYPadding;
this.phraseWidget.transform.localPosition = new Vector3(this.phraseWidget.transform.localPosition.x, (Single)this.phraseWidget.height / 2f, this.phraseWidget.transform.localPosition.z);
this.clipPanel.baseClipRegion = new Vector4(this.clipPanel.baseClipRegion.x, this.clipPanel.baseClipRegion.y, this.ClipSize.x, this.ClipSize.y);
}
}
public Int32 EndMode
{
get
{
return this.endMode;
}
set
{
this.endMode = value;
}
}
public Dictionary<Int32, Int32> MessageSpeedDict
{
get
{
return this.messageSpeed;
}
}
public Dictionary<Int32, Single> MessageWaitDict
{
get
{
return this.messageWait;
}
}
public Boolean TypeEffect
{
get
{
return this.typeAnimationEffect;
}
set
{
this.typeAnimationEffect = value;
}
}
public Boolean FlagButtonInh
{
get
{
return this.ignoreInputFlag;
}
set
{
this.ignoreInputFlag = value;
}
}
public Boolean FlagResetChoice
{
get
{
return this.isNeedResetChoice;
}
set
{
this.isNeedResetChoice = value;
}
}
public List<Dialog.DialogImage> ImageList
{
get
{
return this.imageList;
}
set
{
this.imageList = value;
}
}
public PosObj Po
{
get
{
return this.targetPos;
}
set
{
this.targetPos = value;
if (this.targetPos != null)
{
this.sid = (Int32)this.targetPos.sid;
this.followObject = ((!(this.targetPos.go != (UnityEngine.Object)null)) ? null : this.targetPos.go);
}
else
{
this.sid = -1;
this.followObject = (GameObject)null;
}
}
}
public Vector2 FF9Position
{
get
{
return this.ff9Position;
}
set
{
this.ff9Position = value;
}
}
public UIPanel Panel
{
get
{
if (this.panel == (UnityEngine.Object)null)
{
this.panel = base.GetComponent<UIPanel>();
}
return this.panel;
}
}
public Boolean IsActive
{
get
{
return this.isActive;
}
}
public Boolean FocusToActor
{
get
{
return this.focusToActor;
}
set
{
this.focusToActor = value;
}
}
public Boolean IsReadyToFollow
{
get
{
return this.isReadyToFollow;
}
}
public Dialog.State CurrentState
{
get
{
return this.currentState;
}
set
{
this.currentState = value;
}
}
public UILabel PhraseLabel
{
get
{
return this.phraseLabel;
}
}
public Int32 TextId
{
get
{
return this.textId;
}
set
{
this.textId = value;
}
}
public Int32 SignalNumber
{
get
{
return this.signalNumber;
}
set
{
this.signalNumber = value;
}
}
public Int32 SignalMode
{
get
{
return this.signalMode;
}
set
{
this.signalMode = value;
}
}
public Dictionary<Int32, Int32> MessageValues
{
get
{
return this.messageValues;
}
}
public Boolean MessageNeedUpdate
{
get
{
return this.messageNeedUpdate;
}
set
{
this.messageNeedUpdate = value;
}
}
public List<String> SubPage
{
get
{
return this.subPage;
}
}
public Single DialogShowTime
{
get
{
return this.dialogShowTime;
}
}
public Single DialogHideTime
{
get
{
return this.dialogHideTime;
}
}
public Boolean IsOverlayDialog
{
get
{
if (this.isOverlayChecked)
{
return this.isOverlayDialog;
}
EventEngine instance = PersistenSingleton<EventEngine>.Instance;
if (instance == (UnityEngine.Object)null)
{
return this.isOverlayDialog;
}
if (instance.gMode == 1)
{
if (FF9TextTool.FieldZoneId == 23)
{
String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
switch (currentLanguage)
{
case "Japanese":
case "French":
this.isOverlayDialog = (this.textId == 154 || this.textId == 155);
goto IL_136;
case "Italian":
this.isOverlayDialog = (this.textId == 149 || this.textId == 150);
goto IL_136;
}
this.isOverlayDialog = (this.textId == 134 || this.textId == 135);
IL_136:;
}
else if (FF9TextTool.FieldZoneId == 70 || FF9TextTool.FieldZoneId == 741)
{
String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
switch (currentLanguage)
{
case "English(US)":
case "English(UK)":
this.isOverlayDialog = (this.textId == 204 || this.textId == 205 || this.textId == 206);
goto IL_22A;
}
this.isOverlayDialog = (this.textId == 205 || this.textId == 206 || this.textId == 207);
IL_22A:;
}
else if (FF9TextTool.FieldZoneId == 166)
{
this.isOverlayDialog = (this.textId == 106 || this.textId == 107);
}
else if (FF9TextTool.FieldZoneId == 358)
{
String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
switch (currentLanguage)
{
case "Japanese":
case "French":
this.isOverlayDialog = (this.textId == 874 || this.textId == 875);
goto IL_3DB;
case "Spanish":
this.isOverlayDialog = (this.textId == 859 || this.textId == 860);
goto IL_3DB;
case "German":
this.isOverlayDialog = (this.textId == 875 || this.textId == 876);
goto IL_3DB;
case "Italian":
this.isOverlayDialog = (this.textId == 889 || this.textId == 890);
goto IL_3DB;
}
this.isOverlayDialog = (this.textId == 861 || this.textId == 862);
IL_3DB:;
}
else if (FF9TextTool.FieldZoneId == 945)
{
String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
if (currentLanguage == "Japanese")
{
this.isOverlayDialog = (this.textId == 251 || this.textId == 252);
goto IL_497;
}
this.isOverlayDialog = (this.textId == 252 || this.textId == 253);
}
}
IL_497:
if (this.isOverlayDialog)
{
Vector3 localPosition = base.transform.localPosition;
localPosition.x = 10000f;
base.transform.localPosition = localPosition;
}
this.isOverlayChecked = true;
return this.isOverlayDialog;
}
}
public void Awake()
{
this.bodyTransform = this.BodyGameObject.transform;
this.tailTransform = this.TailGameObject.transform;
this.clipPanel = base.gameObject.GetComponent<UIPanel>();
this.phraseWidget = this.PhraseGameObject.GetComponent<UIWidget>();
this.phraseLabel = this.PhraseGameObject.GetComponent<UILabel>();
this.phraseEffect = this.PhraseGameObject.GetComponent<TypewriterEffect>();
this.captionLabel = this.CaptionGameObject.GetComponent<UILabel>();
this.bodySprite = this.BodyGameObject.GetComponent<UISprite>();
this.borderSprite = this.BorderGameObject.GetComponent<UISprite>();
this.tailSprite = this.TailGameObject.GetComponent<UISprite>();
this.dialogAnimator = base.gameObject.GetComponent<DialogAnimator>();
this.phraseWidgetDefault = this.phraseWidget.pivot;
}
public void Show()
{
this.OverwriteDialogParameter();
this.dialogShowTime = RealTime.time;
this.AutomaticWidth();
this.InitializeDialogTransition();
this.InitializeWindowType();
this.SetMessageSpeed(-1, 0);
this.currentState = Dialog.State.OpenAnimation;
this.dialogAnimator.ShowDialog();
PersistenSingleton<UIManager>.Instance.Dialogs.CurMesId = this.textId;
this.StartSignalProcess();
}
public void Hide()
{
this.dialogHideTime = RealTime.time;
base.StopAllCoroutines();
if (this.subPage.Count > this.currentPage)
{
this.PrepareNextPage();
this.dialogAnimator.ShowNewPage();
this.StartSignalProcess();
this.currentState = Dialog.State.OpenAnimation;
return;
}
this.messageSpeed.Clear();
this.messageWait.Clear();
this.isActive = false;
if (this.startChoiceRow > -1)
{
ButtonGroupState.DisableAllGroup(true);
PersistenSingleton<UIManager>.Instance.Dialogs.HideChoiceHud();
ETb.SndOK();
}
if (this.windowStyle == Dialog.WindowStyle.WindowStyleTransparent || this.dialogAnimator.ShowWithoutAnimation)
{
this.AfterHidden();
return;
}
this.currentState = Dialog.State.CloseAnimation;
this.dialogAnimator.HideDialog();
if (this.CapType == Dialog.CaptionType.Mognet && this.StartChoiceRow > -1)
{
UIManager.Input.ResetTriggerEvent();
}
}
public void AfterShown()
{
this.InitializeChoice();
if (!this.typeAnimationEffect)
{
NGUIText.ProcessFF9Signal(ref this.signalMode, ref this.signalNumber);
this.ShowAllIcon();
this.currentState = Dialog.State.CompleteAnimation;
if (base.gameObject.activeInHierarchy && this.endMode > 0)
{
base.StartCoroutine("AutoHide");
}
}
if (this.AfterDialogShown != null)
{
this.AfterDialogShown(this.id);
}
if (this.targetPos != null)
{
this.isReadyToFollow = true;
}
}
public void AfterSentenseShown()
{
if (this.currentState != Dialog.State.TextAnimation)
{
return;
}
this.currentState = Dialog.State.CompleteAnimation;
this.phraseEffect.enabled = false;
UIDebugMarker.DebugLog(String.Concat(new Object[]
{
"AfterSentenseShown Id:",
this.Id,
" Animation State:",
this.currentState
}));
if (this.endMode > 0 && base.gameObject.activeInHierarchy)
{
base.StartCoroutine("AutoHide");
}
if (this.AfterDialogSentenseShown != null)
{
this.AfterDialogSentenseShown();
}
}
public void AfterHidden()
{
EventHUD.CheckSpecialHUDFromMesId(this.textId, false);
ETb.ProcessDialog(this);
ETb.ProcessATEDialog(this);
Singleton<DialogManager>.Instance.ReleaseDialogToPool(this);
if (this.AfterDialogHidden != null)
{
if (this.startChoiceRow > -1)
{
this.AfterDialogHidden(this.SelectChoice);
}
else
{
this.AfterDialogHidden(-1);
}
this.AfterDialogHidden = (Dialog.DialogIntDelegate)null;
}
this.Reset();
}
public void OnKeyConfirm(GameObject go)
{
if (FF9StateSystem.Common.FF9.fldMapNo == 2951 || FF9StateSystem.Common.FF9.fldMapNo == 2952)
{
string symbol = Localization.GetSymbol();
if (symbol == "JP" && Singleton<DialogManager>.Instance.PressMesId == 245 && Singleton<DialogManager>.Instance.ReleaseMesId == 226)
{
return;
}
if (Singleton<DialogManager>.Instance.PressMesId == 246 && Singleton<DialogManager>.Instance.ReleaseMesId == 227)
{
return;
}
}
else if (FF9StateSystem.Common.FF9.fldMapNo == 2950)
{
string symbol2 = Localization.GetSymbol();
if (symbol2 == "JP" && Singleton<DialogManager>.Instance.PressMesId == 245 && Singleton<DialogManager>.Instance.ReleaseMesId == 225)
{
return;
}
if (Singleton<DialogManager>.Instance.PressMesId == 246 && Singleton<DialogManager>.Instance.ReleaseMesId == 226)
{
return;
}
}
if (this.currentState == Dialog.State.CompleteAnimation)
{
if (this.startChoiceRow > -1)
{
this.SelectChoice = this.choiceList.IndexOf(ButtonGroupState.ActiveButton);
}
if (!this.ignoreInputFlag)
{
if (this.startChoiceRow > -1)
{
if (this.isChoiceReady)
{
this.Hide();
}
}
else
{
this.Hide();
}
}
}
if (this.currentState == Dialog.State.TextAnimation && this.typeAnimationEffect)
{
this.phraseLabel.text = this.phrase;
this.ShowAllIcon();
this.AfterSentenseShown();
}
}
public void OnKeyCancel(GameObject go)
{
if (this.startChoiceRow > -1 && this.cancelChoice > -1 && this.currentState == Dialog.State.CompleteAnimation)
{
this.isMuteSelectSound = true;
this.SetCurrentChoice(this.cancelChoice);
ETb.SndCancel();
}
}
public void OnItemSelect(GameObject go)
{
if (this.currentState == Dialog.State.CompleteAnimation)
{
this.SelectChoice = this.choiceList.IndexOf(go);
if (!this.isMuteSelectSound)
{
ETb.SndMove();
}
else
{
this.isMuteSelectSound = false;
}
}
}
private IEnumerator AutoHide()
{
Single waitTime = (Single)this.endMode / 30f;
if (FF9StateSystem.Common.FF9.fldMapNo == 3009)
{
// Epilogue: Stage
DialogManager.Instance.ForceControlByEvent(false);
yield break;
String localSymbol = Localization.GetSymbol();
if (localSymbol != "US" && localSymbol != "JP")
{
if (EventEngine.resyncBGMSignal == 0)
{
waitTime += 0.7f;
}
else if (EventEngine.resyncBGMSignal == 1)
{
if (localSymbol == "GR" || localSymbol == "UK")
{
waitTime += 0.1f;
}
else
{
waitTime += 0.2f;
}
}
}
else
{
waitTime -= 0.22f;
}
}
else if (FF9StateSystem.Common.FF9.fldMapNo == 3010)
{
// Epilogue: Stage
DialogManager.Instance.ForceControlByEvent(false);
yield break;
String localSymbol2 = Localization.GetSymbol();
if (localSymbol2 != "US" && localSymbol2 != "JP")
{
waitTime += 0.4f;
}
else
{
waitTime += -0.1f;
}
}
else if (FF9StateSystem.Common.FF9.fldMapNo == 3011)
{
// Epilogue: Stage
DialogManager.Instance.ForceControlByEvent(true);
//yield break; // Leads to problems
String localSymbol3 = Localization.GetSymbol();
if (localSymbol3 != "US" && localSymbol3 != "JP")
{
waitTime -= -0.56f;
}
else
{
waitTime -= 0.22f;
}
}
while (waitTime > 0f)
{
waitTime -= ((!HonoBehaviorSystem.Instance.IsFastForwardModeActive()) ? Time.deltaTime : (Time.deltaTime * (Single)HonoBehaviorSystem.Instance.GetFastForwardFactor()));
yield return new WaitForEndOfFrame();
}
this.Hide();
yield break;
}
private void InitializeWindowType()
{
UIAtlas windowAtlas = FF9UIDataTool.WindowAtlas;
this.bodySprite.atlas = windowAtlas;
this.borderSprite.atlas = windowAtlas;
this.tailSprite.atlas = windowAtlas;
}
private void InitializeDialogTransition()
{
this.currentState = Dialog.State.Initial;
Single num = this.position.x;
Single num2 = this.position.y;
Boolean flag = false;
if (this.id == 9)
{
this.Panel.depth = (Int32)(Dialog.DialogMaximumDepth + Dialog.DialogAdditionalRaiseDepth + 2);
this.phrasePanel.depth = this.Panel.depth + 1;
}
else if (this.id != -1)
{
this.Panel.depth = (Int32)Dialog.DialogMaximumDepth - this.id * 2;
this.phrasePanel.depth = this.Panel.depth + 1;
}
if (this.position != Vector2.zero)
{
this.Po = (PosObj)null;
}
if (this.IsAutoPositionMode())
{
this.isForceTailPosition = this.ThisDialogContainsForceTailPosition(this.tailPosition);
if (this.Po.cid == 4)
{
Actor actor = (Actor)this.Po;
actor.mesofsX = Convert.ToInt16(this.offset.x);
actor.mesofsY = Convert.ToInt16(this.offset.y);
actor.mesofsZ = Convert.ToInt16(this.offset.z);
}
Single num3;
Single num4;
ETb.GetMesPos(this.Po, out num3, out num4);
num = num3;
num2 = num4;
Boolean flag2;
if (this.tailPosition == Dialog.TailPosition.AutoPosition)
{
EventEngine instance = PersistenSingleton<EventEngine>.Instance;
Obj obj = instance.FindObjByUID((Int32)((this.Po.uid != instance.GetControlUID()) ? instance.GetControlUID() : ((Actor)this.Po).listener));
PosObj posObj = (PosObj)null;
if (obj != null)
{
posObj = ((!instance.isPosObj(obj)) ? null : ((PosObj)obj));
}
if (posObj != null)
{
Single num5;
Single num6;
ETb.GetMesPos(posObj, out num5, out num6);
flag = (num4 < num6);
if (this.ForceUpperTail())
{
flag = true;
}
flag2 = (num3 < num5);
}
else
{
flag = true;
flag2 = false;
}
}
else
{
flag = (((TailPosition)(((Int32)this.tailPosition) >> 1) & Dialog.TailPosition.LowerLeft) == Dialog.TailPosition.LowerLeft);
flag2 = ((this.tailPosition & Dialog.TailPosition.LowerLeft) == Dialog.TailPosition.LowerLeft);
}
if (!this.isForceTailPosition)
{
Single num7 = (Single)Dialog.DialogLimitLeft + Dialog.InitialMagicNum;
Single num8 = (Single)Dialog.DialogLimitRight - Dialog.InitialMagicNum;
flag2 ^= ((!flag2) ? (num > num8) : (num < num7));
}
num += Dialog.PosXOffset;
num2 += Dialog.PosYOffset;
num = this.setPositionX(num, this.size.x, flag2, false);
if (this.isForceTailPosition)
{
num2 = this.forceSetPositionY(num2, this.size.y, flag);
}
else
{
num2 = this.setPositionY(num2, this.size.y, ref flag);
}
this.ff9Position = new Vector2(num, num2);
if (!this.isForceTailPosition && Singleton<DialogManager>.Instance.CheckDialogOverlap(this))
{
flag ^= true;
num2 = this.setPositionY(num4, this.size.y, ref flag);
this.ff9Position = new Vector2(num, num2);
}
Dialog.CalculateDialogCenter(ref num, ref num2, this.ClipSize);
this.tailMargin -= num;
this.tailPosition = (Dialog.TailPosition)(Convert.ToInt32(flag) << 1 | Convert.ToInt32(flag2));
this.HideUnusedSprite();
num2 = this.CalculateYPositionAfterHideTail(num2, flag);
this.setAutoPosition(num, num2);
this.setTailAutoPosition(this.tailPosition, false);
this.isActive = true;
}
else
{
if (this.windowStyle == Dialog.WindowStyle.WindowStyleAuto)
{
this.windowStyle = Dialog.WindowStyle.WindowStylePlain;
}
if (num == 0f && num2 == 0f)
{
switch (this.tailPosition)
{
case Dialog.TailPosition.LowerRight:
num = (Single)Dialog.DialogLimitRight - Dialog.kMargin - this.size.x / 2f;
num2 = (Single)Dialog.DialogLimitTop + Dialog.kMargin + this.size.y / 2f;
goto IL_5B5;
case Dialog.TailPosition.LowerLeft:
num = (Single)Dialog.DialogLimitLeft + Dialog.kMargin + this.size.x / 2f;
num2 = (Single)Dialog.DialogLimitTop + Dialog.kMargin + this.size.y / 2f;
goto IL_5B5;
case Dialog.TailPosition.UpperRight:
num = (Single)Dialog.DialogLimitRight - Dialog.kMargin - this.size.x / 2f;
num2 = (Single)Dialog.DialogLimitBottom - Dialog.kMargin - this.size.y / 2f;
goto IL_5B5;
case Dialog.TailPosition.UpperLeft:
num = (Single)Dialog.DialogLimitLeft + Dialog.kMargin + this.size.x / 2f;
num2 = (Single)Dialog.DialogLimitBottom - Dialog.kMargin - this.size.y / 2f;
if (PersistenSingleton<UIManager>.Instance.IsPauseControlEnable && PersistenSingleton<UIManager>.Instance.State == UIManager.UIState.FieldHUD)
{
num += (Single)UIManager.Field.PauseWidth;
}
goto IL_5B5;
case Dialog.TailPosition.LowerCenter:
num = (Single)Dialog.kCenterX;
num2 = (Single)Dialog.DialogLimitTop + Dialog.kMargin + this.size.y / 2f;
goto IL_5B5;
case Dialog.TailPosition.UpperCenter:
num = (Single)Dialog.kCenterX;
num2 = (Single)Dialog.DialogLimitBottom - Dialog.kMargin - this.size.y / 2f;
goto IL_5B5;
case Dialog.TailPosition.DialogPosition:
num = (Single)Dialog.kCenterX;
num2 = (Single)Dialog.kDialogY;
this.tailPosition = Dialog.TailPosition.Center;
goto IL_5B5;
}
num = (Single)Dialog.kCenterX;
num2 = (Single)Dialog.kCenterY;
this.tailPosition = Dialog.TailPosition.Center;
IL_5B5:
Single x = num - this.size.x / 2f;
Single y = UIManager.UIContentSize.y - num2 - this.size.y / 2f;
this.ff9Position = new Vector2(x, y);
if (this.windowStyle == Dialog.WindowStyle.WindowStylePlain && this.capType != Dialog.CaptionType.None)
{
this.tailPosition = Dialog.TailPosition.Center;
}
}
else
{
this.ff9Position = new Vector2(num, num2);
num += this.size.x / 2f;
num2 = UIManager.UIContentSize.y - num2 - this.size.y / 2f;
}
this.HideUnusedSprite();
this.setAutoPosition(num, num2);
this.setTailAutoPosition(this.tailPosition, false);
this.isActive = true;
}
}
private void HideUnusedSprite()
{
switch (this.windowStyle)
{
case Dialog.WindowStyle.WindowStylePlain:
case Dialog.WindowStyle.WindowStyleTransparent:
case Dialog.WindowStyle.WindowStyleNoTail:
this.tailSprite.alpha = 0f;
if (this.windowStyle == Dialog.WindowStyle.WindowStyleTransparent)
{
this.bodySprite.alpha = 0f;
this.borderSprite.alpha = 0f;
}
break;
}
}
private Single CalculateYPositionAfterHideTail(Single currentY, Boolean isTailUpper)
{
Dialog.WindowStyle windowStyle = this.windowStyle;
if (windowStyle == Dialog.WindowStyle.WindowStyleTransparent || windowStyle == Dialog.WindowStyle.WindowStyleNoTail)
{
Single num = (Single)this.tailSprite.height;
currentY += ((!isTailUpper) ? num : (-num));
}
return currentY;
}
private void FollowTarget()
{
Single num;
Single num2;
ETb.GetMesPos(this.Po, out num, out num2);
Single num3 = num + Dialog.PosXOffset;
Single num4 = num2 + Dialog.PosYOffset;
Boolean flag = ((TailPosition)((Int32)this.tailPosition >> 1) & Dialog.TailPosition.LowerLeft) == Dialog.TailPosition.LowerLeft;
Boolean flag2 = (this.tailPosition & Dialog.TailPosition.LowerLeft) == Dialog.TailPosition.LowerLeft;
num3 = this.setPositionX(num3, this.size.x, flag2, true);
num4 = this.forceSetPositionY(num4, this.size.y, flag);
Dialog.CalculateDialogCenter(ref num3, ref num4, this.ClipSize);
this.tailMargin -= num3;
this.tailPosition = (Dialog.TailPosition)(Convert.ToInt32(flag) << 1 | Convert.ToInt32(flag2));
num4 = this.CalculateYPositionAfterHideTail(num4, flag);
this.setAutoPosition(num3, num4);
this.setTailAutoPosition(this.tailPosition, true);
}
private Boolean IsAutoPositionMode()
{
return this.targetPos != null && this.targetPos.go != (UnityEngine.Object)null && this.windowStyle != Dialog.WindowStyle.WindowStylePlain;
}
private static void CalculateDialogCenter(ref Single x0, ref Single y0, Vector2 ClipSize)
{
x0 += ClipSize.x / 2f;
y0 += ClipSize.y / 2f;
y0 = UIManager.UIContentSize.y - y0;
}
private Single setPositionX(Single posX, Single width, Boolean isLeft, Boolean isUpdate)
{
Single num;
Single num2;
Single num3;
if (isLeft)
{
num = posX - (Single)Dialog.DialogTailLeftRightOffset;
if (num < (Single)Dialog.DialogLimitLeft + Dialog.TailMagicNumber1)
{
num = (Single)Dialog.DialogLimitLeft + Dialog.TailMagicNumber1;
}
if (num > (Single)Dialog.DialogLimitRight - Dialog.TailMagicNumber2)
{
num = (Single)Dialog.DialogLimitRight - Dialog.TailMagicNumber2;
}
num2 = num + Dialog.TailMagicNumber2 - width;
num3 = num - Dialog.TailMagicNumber1;
}
else
{
num = posX + (Single)Dialog.DialogTailLeftRightOffset;
if (num > (Single)Dialog.DialogLimitRight - Dialog.TailMagicNumber1)
{
num = (Single)Dialog.DialogLimitRight - Dialog.TailMagicNumber1;
}
if (num < (Single)Dialog.DialogLimitLeft + Dialog.TailMagicNumber2)
{
num = (Single)Dialog.DialogLimitLeft + Dialog.TailMagicNumber2;
}
num2 = num + Dialog.TailMagicNumber1 - width;
num3 = num - Dialog.TailMagicNumber2;
}
this.tailMargin = num;
if (num2 < (Single)Dialog.DialogLimitLeft)
{
num2 = (Single)Dialog.DialogLimitLeft;
}
if (num3 > (Single)Dialog.DialogLimitRight - width)
{
num3 = (Single)Dialog.DialogLimitRight - width;
}
return (num2 + num3) / 2f;
}
private Single setPositionY(Single posY, Single height, ref Boolean isUpper)
{
Single num;
if (isUpper)
{
num = posY - height - Dialog.kUpperOffset;
if (!this.isForceTailPosition && num < Dialog.kLimitTop)
{
isUpper ^= true;
num = posY + Dialog.kLowerOffset;
}
}
else
{
num = posY + Dialog.kLowerOffset;
if (!this.isForceTailPosition && num > Dialog.kLimitBottom - height)
{
isUpper ^= true;
num = posY - height - Dialog.kUpperOffset;
}
}
if (num < Dialog.kLimitTop)
{
num = Dialog.kLimitTop;
}
else if (num > Dialog.kLimitBottom - height)
{
num = Dialog.kLimitBottom - height;
}
return num;
}
private Single forceSetPositionY(Single posY, Single height, Boolean isUpper)
{
posY = ((!isUpper) ? (posY + Dialog.kLowerOffset) : (posY - this.size.y - Dialog.kUpperOffset));
if (posY < Dialog.kLimitTop)
{
posY = Dialog.kLimitTop;
}
else if (posY > Dialog.kLimitBottom - this.size.y)
{
posY = Dialog.kLimitBottom - this.size.y;
}
return posY;
}
private void setAutoPosition(Single x, Single y)
{
base.gameObject.transform.localPosition = new Vector3(x - UIManager.UIContentSize.x / 2f, y - UIManager.UIContentSize.y / 2f);
}
public void Reset()
{
this.bodySprite.pivot = UIWidget.Pivot.Center;
this.borderSprite.pivot = UIWidget.Pivot.Center;
this.tailSprite.pivot = UIWidget.Pivot.Center;
this.BodyGameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
this.BorderGameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
this.TailGameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
this.Po = (PosObj)null;
this.isReadyToFollow = false;
this.isForceTailPosition = false;
this.focusToActor = true;
this.isActive = false;
this.ff9Position = Vector2.zero;
this.bodySprite.alpha = 1f;
this.bodySprite.width = 0;
this.bodySprite.height = 0;
this.borderSprite.alpha = 1f;
this.tailSprite.alpha = 1f;
this.phraseWidget.pivot = this.phraseWidgetDefault;
this.phraseWidget.transform.localPosition = Vector3.zero;
this.phraseWidget.height = 0;
this.phraseWidget.width = 0;
this.clipPanel.baseClipRegion = Vector4.zero;
this.size = Vector2.zero;
this.currentState = Dialog.State.Idle;
this.ignoreInputFlag = false;
this.isNeedResetChoice = true;
this.typeAnimationEffect = true;
this.position = Vector2.zero;
this.offset = Vector3.zero;
this.phrase = String.Empty;
this.caption = String.Empty;
this.captionLabel.text = this.caption;
this.captionWidth = 0f;
this.lineNumber = 0;
this.id = -1;
this.textId = -1;
this.endMode = -1;
this.signalMode = 0;
this.signalNumber = 0;
this.dialogAnimator.PhraseTextEffect.Restart();
base.transform.localPosition = Vector3.zero;
this.tailPosition = Dialog.TailPosition.AutoPosition;
this.dialogAnimator.PhraseTextEffect.enabled = false;
this.phraseLabel.text = String.Empty;
this.phraseLabel.ImageList.Clear();
this.ClearIcon();
this.messageValues.Clear();
this.messageNeedUpdate = false;
this.subPage.Clear();
this.currentPage = 0;
this.dialogAnimator.Pause = false;
this.dialogAnimator.ShowWithoutAnimation = false;
this.ResetChoose();
this.isOverlayDialog = false;
this.isOverlayChecked = false;
this.overlayMessageNumber = -1;
this.isChoiceReady = false;
}
private void setTailAutoPosition(Dialog.TailPosition _position, Boolean isUpdate)
{
if (!isUpdate)
{
this.setTailPosition(_position);
}
this.tailTransform.localPosition = new Vector3(this.tailMargin, this.tailTransform.localPosition.y, 0f);
}
private Boolean ThisDialogContainsForceTailPosition(Dialog.TailPosition _position)
{
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.UpperCenter:
return false;
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
return true;
}
return false;
}
private void setTailPosition(Dialog.TailPosition _position)
{
this.tailPosition = _position;
UIWidget.Pivot pivot;
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
pivot = UIWidget.Pivot.Top;
goto IL_5B;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
pivot = UIWidget.Pivot.Bottom;
goto IL_5B;
}
pivot = UIWidget.Pivot.Center;
IL_5B:
this.bodySprite.pivot = pivot;
this.borderSprite.pivot = pivot;
Vector2 v = new Vector2(0f, 0f);
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
v.y = this.size.y / 2f - (Dialog.DialogYPadding / 2f - Dialog.BorderPadding);
break;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
v.y = -this.size.y / 2f + (Dialog.DialogYPadding / 2f - Dialog.BorderPadding);
break;
}
this.BodyGameObject.transform.localPosition = v;
Vector2 birthPosition = new Vector2(0f, 0f);
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
birthPosition = new Vector2(this.size.x / 2f, this.size.y);
goto IL_205;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
birthPosition = new Vector2(this.size.x / 2f, 0f);
goto IL_205;
}
birthPosition = new Vector2(this.size.x / 2f, this.size.y / 2f);
IL_205:
this.bodySprite.birthPosition = birthPosition;
Vector2 v2 = this.phraseWidget.transform.localPosition;
v2.y = (Single)(this.phraseWidget.height / 2);
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
v2.y -= 36f;
goto IL_2C3;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
v2.y += 6f;
goto IL_2C3;
}
v2.y -= 18f;
IL_2C3:
this.phraseWidget.transform.localPosition = v2;
UIWidget.Pivot pivot2;
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerRightForce:
pivot2 = UIWidget.Pivot.TopLeft;
goto IL_350;
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerLeftForce:
pivot2 = UIWidget.Pivot.TopRight;
goto IL_350;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperRightForce:
pivot2 = UIWidget.Pivot.BottomLeft;
goto IL_350;
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperLeftForce:
pivot2 = UIWidget.Pivot.BottomRight;
goto IL_350;
case Dialog.TailPosition.LowerCenter:
pivot2 = UIWidget.Pivot.Top;
goto IL_350;
case Dialog.TailPosition.UpperCenter:
pivot2 = UIWidget.Pivot.Bottom;
goto IL_350;
}
pivot2 = UIWidget.Pivot.Center;
IL_350:
this.tailSprite.pivot = pivot2;
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerRightForce:
this.tailSprite.spriteName = "dialog_pointer_topleft";
goto IL_405;
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerLeftForce:
this.tailSprite.spriteName = "dialog_pointer_topright";
goto IL_405;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperRightForce:
this.tailSprite.spriteName = "dialog_pointer_downleft";
goto IL_405;
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperLeftForce:
this.tailSprite.spriteName = "dialog_pointer_downright";
goto IL_405;
}
this.tailSprite.spriteName = String.Empty;
IL_405:
Single x = this.tailSprite.localSize.x / 2f;
Single y;
switch (_position)
{
case Dialog.TailPosition.LowerRight:
case Dialog.TailPosition.LowerLeft:
case Dialog.TailPosition.LowerCenter:
case Dialog.TailPosition.LowerRightForce:
case Dialog.TailPosition.LowerLeftForce:
y = this.size.y / 2f + Dialog.DialogYPadding / 2f;
goto IL_4C2;
case Dialog.TailPosition.UpperRight:
case Dialog.TailPosition.UpperLeft:
case Dialog.TailPosition.UpperCenter:
case Dialog.TailPosition.UpperRightForce:
case Dialog.TailPosition.UpperLeftForce:
y = -(this.size.y / 2f) - Dialog.DialogYPadding / 2f + 1f;
goto IL_4C2;
}
y = 0f;
IL_4C2:
this.tailTransform.localPosition = new Vector3(x, y, 0f);
}
private void Update()
{
this.UpdatePosition();
this.UpdateMessageValue();
}
private void StartSignalProcess()
{
if (this.typeAnimationEffect && this.signalMode != 0)
{
Singleton<DialogManager>.Instance.StartSignalProcess(this.phraseLabel, this.phrase, this.signalNumber, this.messageSpeed, this.messageWait);
}
}
public void SetMessageSpeed(Int32 speed, Int32 index)
{
if (speed != -1)
{
this.messageSpeed[index] = speed * Dialog.FF9TextSpeedRatio;
}
else
{
this.messageSpeed[index] = (Int32)Dialog.DialogTextAnimationTick[(Int32)(checked((IntPtr)FF9StateSystem.Settings.cfg.fld_msg))] * Dialog.FF9TextSpeedRatio;
}
}
public void SetMessageWait(Int32 ff9Frames, Int32 index)
{
this.messageWait[index] = (Single)ff9Frames / 30f;
}
public void OnCharacterShown(GameObject go, Int32 index)
{
for (Int32 i = 0; i < this.ImageList.Count; i++)
{
Dialog.DialogImage dialogImage = this.imageList[i];
if (index == dialogImage.TextPosition && !dialogImage.IsShown)
{
this.phraseLabel.Update();
base.StartCoroutine("ShowIconProcess", i);
dialogImage.IsShown = true;
break;
}
}
}
private IEnumerator ShowIconProcess(Int32 index)
{
if (this.phraseLabel.ImageList == null)
{
yield break;
}
while (this.phraseLabel.ImageList.size == 0)
{
yield return new WaitForEndOfFrame();
}
GameObject iconObject = Singleton<BitmapIconManager>.Instance.InsertBitmapIcon(this.phraseLabel.ImageList[index], this);
base.StartCoroutine("SetIconDepth", iconObject);
yield break;
}
public void ShowAllIcon()
{
base.StartCoroutine("ShowAllIconProcess");
}
private IEnumerator ShowAllIconProcess()
{
yield return new WaitForEndOfFrame();
if (this.phraseLabel.ImageList == null)
{
yield return new WaitForEndOfFrame();
}
if (this.phraseLabel.ImageList.size == 0)
{
yield return new WaitForEndOfFrame();
}
Int32 index = 0;
foreach (Dialog.DialogImage image in this.phraseLabel.ImageList)
{
if (!this.imageList[index].IsShown && image != null)
{
GameObject iconObject = Singleton<BitmapIconManager>.Instance.InsertBitmapIcon(image, this);
base.StartCoroutine("SetIconDepth", iconObject);
this.imageList[index].IsShown = true;
}
index++;
}
yield break;
}
private IEnumerator SetIconDepth(GameObject iconObject)
{
yield return new WaitForEndOfFrame();
NGUIText.SetIconDepth(this.phraseLabel.gameObject, iconObject, true);
yield break;
}
private void UpdateMessageValue()
{
if (this.currentState == Dialog.State.CompleteAnimation && this.messageNeedUpdate && !this.IsOverlayDialog && (this.HasMessageValueChanged() || this.HasOverlayChanged()))
{
this.ReplaceMessageValue();
}
}
private Boolean HasMessageValueChanged()
{
Boolean result = false;
foreach (KeyValuePair<Int32, Int32> keyValuePair in this.messageValues)
{
if (PersistenSingleton<EventEngine>.Instance.eTb.gMesValue[keyValuePair.Key] != keyValuePair.Value)
{
result = true;
break;
}
}
return result;
}
private void ReplaceMessageValue()
{
Int32[] gMesValue = PersistenSingleton<EventEngine>.Instance.eTb.gMesValue;
String text = this.phraseMessageValue;
String formattedValue = String.Empty;
for (Int32 i = 0; i < (Int32)gMesValue.Length; i++)
{
if (this.messageValues.ContainsKey(i))
{
formattedValue = gMesValue[i].ToString();
if (this.overlayMessageNumber == i)
formattedValue = NGUIText.FF9PinkColor + formattedValue + NGUIText.FF9WhiteColor;
text = text.ReplaceAll(
new[]
{
new KeyValuePair<String, TextReplacement>($"[NUMB={i}]", formattedValue),
new KeyValuePair<String, TextReplacement>($"{{Variable {i}}}", formattedValue)
});
this.messageValues[i] = gMesValue[i];
}
}
this.phraseLabel.text = text;
}
private Boolean HasOverlayChanged()
{
if (this.IsOverlayDialog)
{
return false;
}
Dialog overlayDialog = Singleton<DialogManager>.Instance.GetOverlayDialog();
Int32 num = -1;
if (overlayDialog != (UnityEngine.Object)null)
{
using (Dictionary<Int32, Int32>.Enumerator enumerator = overlayDialog.MessageValues.GetEnumerator())
{
if (enumerator.MoveNext())
{
KeyValuePair<Int32, Int32> keyValuePair = enumerator.Current;
num = keyValuePair.Key;
}
}
}
if (num != this.overlayMessageNumber)
{
this.overlayMessageNumber = num;
return true;
}
return false;
}
public void UpdatePosition()
{
if (this.isReadyToFollow && this.focusToActor)
{
if (this.IsAutoPositionMode())
{
this.FollowTarget();
}
else
{
this.isReadyToFollow = false;
}
}
}
public void PauseDialog(Boolean isPause)
{
if (isPause)
{
if (this.currentState != Dialog.State.CompleteAnimation)
{
this.dialogAnimator.Pause = true;
}
if (this.currentState == Dialog.State.TextAnimation)
{
this.phraseEffect.Pause();
}
}
else
{
if (this.currentState != Dialog.State.CompleteAnimation)
{
this.dialogAnimator.Pause = false;
}
if (this.currentState == Dialog.State.TextAnimation)
{
this.phraseEffect.Resume();
}
if (this.StartChoiceRow > -1)
{
this.isMuteSelectSound = true;
ButtonGroupState.ActiveGroup = Dialog.DialogGroupButton;
this.isMuteSelectSound = false;
}
}
}
public void ForceClose()
{
this.dialogAnimator.Pause = false;
if (this.currentState != Dialog.State.CloseAnimation)
{
this.Hide();
}
}
private void PrepareNextPage()
{
this.phrase = ((this.subPage.Count <= this.currentPage) ? String.Empty : this.subPage[this.currentPage++]);
this.phrase = this.RewriteSentenceForExclamation(this.phrase);
this.ClearIcon();
DialogBoxController.PhraseOpcodeSymbol(this.phrase, this);
this.phraseMessageValue = this.phrase;
this.phrase = NGUIText.ReplaceNumberValue(this.phrase, this);
}
private String RewriteSentenceForExclamation(String inputPharse)
{
if (inputPharse.Length > 0 && this.lineNumber == 1)
{
String text = NGUIText.StripSymbols(inputPharse);
if (text.Length < 6 && text.Contains("!"))
{
inputPharse = "[CENT]" + inputPharse;
}
}
return inputPharse;
}
private void ClearIcon()
{
for (Int32 i = this.phraseLabel.transform.childCount - 1; i >= 0; i--)
{
GameObject gameObject = this.phraseLabel.transform.GetChild(i).gameObject;
gameObject.SetActive(false);
Singleton<BitmapIconManager>.Instance.RemoveBitmapIcon(gameObject);
}
if (this.phraseLabel.ImageList != null)
{
this.phraseLabel.ImageList.Clear();
}
this.imageList.Clear();
}
private void AutomaticWidth()
{
if (this.CanResizeWidth())
{
Int32 width = this.phraseLabel.width;
Int32 height = this.phraseLabel.height;
this.phraseLabel.width = (Int32)UIManager.UIContentSize.x;
this.phraseLabel.height = (Int32)UIManager.UIContentSize.y;
this.phraseLabel.ProcessText();
this.phraseLabel.UpdateNGUIText();
Single num = 0f;
foreach (String text in this.subPage)
{
String text2 = text;
if (this.messageNeedUpdate)
{
text2 = NGUIText.ReplaceNumberValue(text2, this);
}
Single num2 = (NGUIText.CalculatePrintedSize2(text2).x + Dialog.DialogPhraseXPadding * 2f) / UIManager.ResourceXMultipier;
if (num2 > num)
{
num = num2;
}
}
if (num < this.originalWidth / 2f)
{
num = this.originalWidth - 1f;
}
else
{
foreach (Dialog.DialogImage dialogImage in this.imageList)
{
if (dialogImage.Id == 27)
{
num += 8f;
}
}
}
Single num3 = Dialog.DialogPhraseXPadding * 2f / UIManager.ResourceXMultipier;
if (num < this.captionWidth + num3)
{
num = this.captionWidth + num3;
}
this.Width = num + 1f;
this.phraseLabel.height = height;
}
}
private Boolean CanResizeWidth()
{
if (this.id == 9)
{
return false;
}
if (PersistenSingleton<EventEngine>.Instance.gMode == 1)
{
Int32 fldMapNo = (Int32)FF9StateSystem.Common.FF9.fldMapNo;
if (fldMapNo >= 1400 && fldMapNo <= 1425 && (this.tailPosition == Dialog.TailPosition.UpperLeft || this.tailPosition == Dialog.TailPosition.UpperRight))
{
if (this.windowStyle == Dialog.WindowStyle.WindowStyleTransparent)
{
return false;
}
if (this.windowStyle == Dialog.WindowStyle.WindowStylePlain && this.startChoiceRow == -1)
{
return false;
}
}
if (EventHUD.CurrentHUD == MinigameHUD.Auction && this.windowStyle == Dialog.WindowStyle.WindowStyleTransparent)
{
return false;
}
if (EventHUD.CurrentHUD == MinigameHUD.ChocoHot && this.windowStyle == Dialog.WindowStyle.WindowStylePlain)
{
String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
switch (currentLanguage)
{
case "Japanese":
case "English(UK)":
case "English(US)":
return this.textId != 275;
}
return this.textId != 276;
}
}
return true;
}
private Boolean ForceUpperTail()
{
Boolean result = false;
if (PersistenSingleton<EventEngine>.Instance.gMode == 1)
{
Int32 fldMapNo = (Int32)FF9StateSystem.Common.FF9.fldMapNo;
if (fldMapNo == 1608)
{
Int32 varManually = PersistenSingleton<EventEngine>.Instance.eBin.getVarManually(EBin.SC_COUNTER_SVR);
if (varManually == 6840)
{
FieldMap fieldmap = PersistenSingleton<EventEngine>.Instance.fieldmap;
Camera mainCamera = fieldmap.GetMainCamera();
Vector3 localPosition = mainCamera.transform.localPosition;
result = (localPosition.x == 32f && localPosition.y == 0f && localPosition.z == 0f && this.targetPos.sid != 11 && this.targetPos.sid != 9);
}
else if (varManually == 6850)
{
result = (this.targetPos.sid != 9);
}
}
}
return result;
}
private void OverwriteDialogParameter()
{
if (FF9StateSystem.MobilePlatform && this.id < 9)
{
Int32 fldMapNo = (Int32)FF9StateSystem.Common.FF9.fldMapNo;
Int32 num = fldMapNo;
if (num == 2951)
{
if (this.targetPos != null && this.targetPos.uid == 13 && this.startChoiceRow > -1)
{
this.Po = (PosObj)null;
this.windowStyle = Dialog.WindowStyle.WindowStyleNoTail;
this.tailPosition = Dialog.TailPosition.UpperCenter;
}
}
}
}
private String OverwritePrerenderText(String text)
{
if (PersistenSingleton<UIManager>.Instance.State == UIManager.UIState.FieldHUD && FF9TextTool.FieldZoneId == 2 && this.textId > 0)
{
text = TextOpCodeModifier.ReplaceChanbaraArrow(text);
}
return text;
}
public GameObject DialogChoicePrefab;
[SerializeField]
private Int32 startChoiceRow;
[SerializeField]
private Int32 choiceNumber;
[SerializeField]
private Int32 defaultChoice;
[SerializeField]
private Int32 cancelChoice;
[SerializeField]
private Int32 selectedChoice;
[SerializeField]
private Int32 chooseMask;
private List<GameObject> choiceList;
private List<GameObject> maskChoiceList;
[SerializeField]
private List<Int32> disableIndexes;
private List<Int32> activeIndexes;
public static String DialogGroupButton;
public static Vector2 DefaultOffset;
[SerializeField]
private List<Single> choiceYPositions;
private Boolean isChoiceReady;
public static Byte DialogMaximumDepth = 68;
public static Byte DialogAdditionalRaiseDepth = 22;
private static Byte[] DialogTextAnimationTick = new Byte[]
{
4,
7,
10,
16,
24,
40,
64,
64
};
public Dialog.DialogIntDelegate AfterDialogHidden;
public Dialog.DialogIntDelegate AfterDialogShown;
public Dialog.DialogVoidDelegate AfterDialogSentenseShown;
public GameObject BodyGameObject;
public GameObject BorderGameObject;
public GameObject CaptionGameObject;
public GameObject PhraseGameObject;
public GameObject TailGameObject;
public GameObject ChooseContainerGameObject;
public UIPanel phrasePanel;
public static readonly Int32 WindowMinWidth = (Int32)(UIManager.ResourceXMultipier * 32f);
public static readonly Int32 AdjustWidth = (Int32)(UIManager.ResourceXMultipier * 3f);
public static readonly Int32 DialogOffsetY = (Int32)(UIManager.ResourceYMultipier * 20f);
public static readonly Int32 DialogLimitLeft = (Int32)(UIManager.ResourceXMultipier * 8f);
public static readonly Int32 DialogLimitRight = (Int32)(UIManager.ResourceXMultipier * 312f);
public static readonly Int32 DialogLimitTop = (Int32)(UIManager.ResourceYMultipier * 8f);
public static readonly Int32 DialogLimitBottom = (Int32)(UIManager.ResourceYMultipier * 208f);
public static readonly Int32 DialogTailLeftRightOffset = (Int32)(UIManager.ResourceXMultipier * 6f);
public static readonly Int32 DialogTailTopOffset = (Int32)(UIManager.ResourceYMultipier * 16f);
public static readonly Int32 DialogTailBottomOffset = (Int32)(UIManager.ResourceYMultipier * 32f);
public static readonly Int32 kCenterX = (Int32)(UIManager.ResourceXMultipier * FieldMap.HalfScreenWidth);
public static readonly Int32 kCenterY = (Int32)(UIManager.ResourceYMultipier * FieldMap.HalfScreenHeight);
public static readonly Int32 kDialogY = (Int32)(UIManager.ResourceYMultipier * 150f);
public static readonly Single TailMagicNumber1 = (Single)((Int32)(24f * UIManager.ResourceXMultipier));
public static readonly Single TailMagicNumber2 = (Single)((Int32)(8f * UIManager.ResourceXMultipier));
public static readonly Single PosXOffset = -2f;
public static readonly Single kUpperOffset = (Single)Dialog.DialogTailTopOffset;
public static readonly Single kLimitTop = 24f;
public static readonly Single kLowerOffset = (Single)(Dialog.DialogTailBottomOffset * 3 / 4);
public static readonly Single kLimitBottom = (Single)(Dialog.DialogLimitBottom - 4);
public static readonly Single kMargin = UIManager.ResourceXMultipier * 5f;
public static readonly Single PosYOffset = -15f;
public static readonly Single InitialMagicNum = Mathf.Ceil(32f * UIManager.ResourceXMultipier);
public static readonly Single DialogLineHeight = 68f;
public static readonly Single DialogYPadding = 80f;
public static readonly Single DialogXPadding = 18f;
public static readonly Single BorderPadding = 18f;
public static readonly Single DialogPhraseXPadding = 16f;
public static readonly Single DialogPhraseYPadding = 20f;
public static readonly Int32 FF9TextSpeedRatio = 2;
private Transform bodyTransform;
private Transform tailTransform;
private UISprite bodySprite;
private UISprite borderSprite;
private UISprite tailSprite;
private UIPanel clipPanel;
private UIWidget phraseWidget;
private UILabel phraseLabel;
private UILabel captionLabel;
private TypewriterEffect phraseEffect;
private DialogAnimator dialogAnimator;
[SerializeField]
private Dialog.TailPosition tailPosition = Dialog.TailPosition.AutoPosition;
[SerializeField]
private Int32 id = -1;
[SerializeField]
private Int32 sid;
[SerializeField]
private GameObject followObject;
[SerializeField]
private Int32 textId;
[SerializeField]
private Dialog.State currentState;
private Boolean isForceTailPosition;
private Single tailMargin;
private Single originalWidth;
private Int32 lineNumber;
private Vector2 size = Vector2.zero;
[SerializeField]
private Vector2 position = Vector2.zero;
[SerializeField]
private Vector3 offset = Vector3.zero;
[SerializeField]
private String phrase = String.Empty;
private String phraseMessageValue = String.Empty;
[SerializeField]
private List<String> subPage = new List<String>();
private String caption = String.Empty;
private Dialog.CaptionType capType;
[SerializeField]
private Dialog.WindowStyle windowStyle;
private Int32 endMode = -1;
[SerializeField]
private Boolean ignoreInputFlag;
[SerializeField]
private Boolean isNeedResetChoice = true;
private Single dialogShowTime;
private Single dialogHideTime;
private Boolean isMuteSelectSound;
private Boolean typeAnimationEffect = true;
private Dictionary<Int32, Int32> messageSpeed = new Dictionary<Int32, Int32>();
private Dictionary<Int32, Single> messageWait = new Dictionary<Int32, Single>();
[SerializeField]
private List<Dialog.DialogImage> imageList = new List<Dialog.DialogImage>();
private PosObj targetPos;
[SerializeField]
private Vector2 ff9Position;
private UIPanel panel;
private Boolean isActive;
private UIWidget.Pivot phraseWidgetDefault;
[SerializeField]
private Boolean isReadyToFollow;
[SerializeField]
private Boolean focusToActor = true;
private Int32 signalNumber;
private Int32 signalMode;
private Dictionary<Int32, Int32> messageValues = new Dictionary<Int32, Int32>();
private Boolean messageNeedUpdate;
private Int32 currentPage;
[SerializeField]
private Single captionWidth;
[SerializeField]
private Boolean isOverlayDialog;
[SerializeField]
private Boolean isOverlayChecked;
[SerializeField]
private Int32 overlayMessageNumber = -1;
public class DialogImage
{
public Int32 Id;
public Vector2 Size;
public Int32 TextPosition;
public Int32 PrintedLine;
public Vector3 LocalPosition;
public Vector3 Offset;
public Boolean IsShown;
public Boolean checkFromConfig = true;
public Boolean IsButton = true;
public String tag = String.Empty;
}
public enum TailPosition
{
Center = -2,
AutoPosition,
LowerRight,
LowerLeft,
UpperRight,
UpperLeft,
LowerCenter,
UpperCenter,
LowerRightForce = 8,
LowerLeftForce,
UpperRightForce,
UpperLeftForce,
DialogPosition
}
public enum WindowStyle
{
WindowStyleAuto,
WindowStylePlain,
WindowStyleTransparent,
WindowStyleNoTail
}
public enum State
{
Idle,
Initial,
OpenAnimation,
TextAnimation,
CompleteAnimation,
StartHide,
CloseAnimation
}
public enum CaptionType
{
None,
Mognet,
ActiveTimeEvent,
Chocobo,
Notice
}
public enum WindowID
{
ID0,
ID1,
ID2,
ID3,
ID4,
ID5,
ID6,
ID7
}
public delegate void DialogVoidDelegate();
public delegate void DialogIntDelegate(Int32 choice);
}
| 24.550325 | 198 | 0.692273 | [
"MIT"
] | ArtReeX/memoria | Assembly-CSharp/Global/Dialog/Dialog.cs | 60,494 | C# |
namespace IndependentSocialApp.Services.Data.Tests
{
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IndependentSocialApp.Data;
using IndependentSocialApp.Data.Common.Repositories;
using IndependentSocialApp.Data.Models;
using IndependentSocialApp.Data.Repositories;
using Microsoft.EntityFrameworkCore;
using Moq;
using Xunit;
public class SettingsServiceTests
{
[Fact]
public void GetCountShouldReturnCorrectNumber()
{
var repository = new Mock<IDeletableEntityRepository<Setting>>();
repository.Setup(r => r.All()).Returns(new List<Setting>
{
new Setting(),
new Setting(),
new Setting(),
}.AsQueryable());
var service = new SettingsService(repository.Object);
Assert.Equal(3, service.GetCount());
repository.Verify(x => x.All(), Times.Once);
}
[Fact]
public async Task GetCountShouldReturnCorrectNumberUsingDbContext()
{
var options = new DbContextOptionsBuilder<ApplicationDbContext>()
.UseInMemoryDatabase(databaseName: "SettingsTestDb").Options;
using var dbContext = new ApplicationDbContext(options);
dbContext.Settings.Add(new Setting());
dbContext.Settings.Add(new Setting());
dbContext.Settings.Add(new Setting());
await dbContext.SaveChangesAsync();
using var repository = new EfDeletableEntityRepository<Setting>(dbContext);
var service = new SettingsService(repository);
Assert.Equal(3, service.GetCount());
}
}
}
| 37.865385 | 87 | 0.559675 | [
"MIT"
] | MihailKarabashev/IndependentSocialMedia | Tests/IndependentSocialApp.Services.Data.Tests/SettingsServiceTests.cs | 1,971 | 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 Npoi.Core.Util;
using System;
using System.Text;
namespace Npoi.Core.HSSF.Record.Chart
{
public class Chart3DBarShapeRecord : StandardRecord
{
public const short sid = 4191;
private byte field_1_riser = 0;
private byte field_2_taper = 0;
public Chart3DBarShapeRecord()
{
}
public Chart3DBarShapeRecord(RecordInputStream in1)
{
field_1_riser = (byte)in1.ReadByte();
field_2_taper = (byte)in1.ReadByte();
}
public override string ToString()
{
StringBuilder buffer = new StringBuilder();
buffer.Append("[Chart3DBarShape]\n");
buffer.Append(" .axisType = ")
.Append("0x").Append(HexDump.ToHex(Riser))
.Append(" (").Append(Riser).Append(" )");
buffer.Append(Environment.NewLine);
buffer.Append(" .x = ")
.Append("0x").Append(HexDump.ToHex(Taper))
.Append(" (").Append(Taper).Append(" )");
buffer.Append(Environment.NewLine);
buffer.Append("[/Chart3DBarShape]\n");
return buffer.ToString();
}
public override void Serialize(ILittleEndianOutput out1)
{
out1.WriteByte(field_1_riser);
out1.WriteByte(field_2_taper);
}
protected override int DataSize
{
get { return 1 + 1; }
}
public override object Clone()
{
Chart3DBarShapeRecord record = new Chart3DBarShapeRecord();
record.Riser = Riser;
record.Taper = Taper;
return record;
}
public override short Sid
{
get { return sid; }
}
/// <summary>
/// the shape of the base of the data points in a bar or column chart group.
/// MUST be a value from the following table
/// 0x00 The base of the data point is a rectangle.
/// 0x01 The base of the data point is an ellipse.
/// </summary>
public byte Riser
{
get { return field_1_riser; }
set { field_1_riser = value; }
}
/// <summary>
/// how the data points in a bar or column chart group taper from base to tip.
/// MUST be a value from the following
/// 0x00 The data points of the bar or column chart group do not taper.
/// The shape at the maximum value of the data point is the same as the shape at the base.:
/// 0x01 The data points of the bar or column chart group taper to a point at the maximum value of each data point.
/// 0x02 The data points of the bar or column chart group taper towards a projected point at the position of
/// the maximum value of all of the data points in the chart group, but are clipped at the value of each data point.
/// </summary>
public byte Taper
{
get { return field_2_taper; }
set { field_2_taper = value; }
}
}
} | 37.054545 | 132 | 0.573847 | [
"Apache-2.0"
] | Arch/Npoi.Core | src/Npoi.Core/HSSF/Record/Chart/Chart3DBarShapeRecord.cs | 4,078 | 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 System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using FluentAssertions;
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Frameworks;
using NuGet.Test.Utility;
using Xunit;
namespace NuGet.CommandLine.Test
{
public class RestoreLoggingTests
{
[Fact]
public async Task RestoreLogging_VerifyNU1605DowngradeWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageZ1 = new SimpleTestPackageContext("z", "1.5.0");
var packageZ2 = new SimpleTestPackageContext("z", "2.0.0");
var packageX = new SimpleTestPackageContext("x", "1.0.0");
packageX.Dependencies.Add(packageZ2);
await SimpleTestPackageUtility.CreatePackagesAsync(pathContext.PackageSource, packageX, packageZ1, packageZ2, packageZ1);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
var doc = projectA.GetXML();
// z 1.*
ProjectFileUtils.AddItem(doc,
"PackageReference", "z",
NuGetFramework.Parse("netcoreapp1.0"),
new Dictionary<string, string>(),
new Dictionary<string, string>() { { "Version", "1.*" } });
// x *
ProjectFileUtils.AddItem(doc,
"PackageReference", "x",
NuGetFramework.Parse("netcoreapp1.0"),
new Dictionary<string, string>(),
new Dictionary<string, string>() { { "Version", "*" } });
doc.Save(projectA.ProjectPath);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
var message = projectA.AssetsFile.LogMessages.Single(e => e.Code == NuGetLogCode.NU1605);
message.Level.Should().Be(LogLevel.Warning);
// Verify message contains the actual 1.5.0 version instead of the lower bound of 1.0.0.
message.Message.Should().Contain("Detected package downgrade: z from 2.0.0 to 1.5.0. Reference the package directly from the project to select a different version.");
// Verify that x display the version instead of the range which is >= 0.0.0
message.Message.Should().Contain("a -> x 1.0.0 -> z (>= 2.0.0)");
// Verify non-snapshot range is displayed for the downgradedBy path.
message.Message.Should().Contain("a -> z (>= 1.0.0)");
}
}
[Fact]
public async Task RestoreLogging_VerifyNU1608MessageAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>x</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[1.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageZ1 = new SimpleTestPackageContext("z", "1.0.0");
var packageZ2 = new SimpleTestPackageContext("z", "2.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX, packageZ1, packageZ2);
projectA.AddPackageToAllFrameworks(packageX);
projectA.AddPackageToAllFrameworks(packageZ2);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
var log = projectA.AssetsFile.LogMessages.SingleOrDefault(e => e.Code == NuGetLogCode.NU1608);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1107");
r.AllOutput.Should().Contain("NU1608");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("z");
log.Level.Should().Be(LogLevel.Warning);
log.TargetGraphs.Select(e => string.Join(",", e)).Should().Contain(netcoreapp1.DotNetFrameworkName);
log.Message.Should().Contain("Detected package version outside of dependency constraint: x 1.0.0 requires z (= 1.0.0) but version z 2.0.0 was resolved.");
}
}
[Fact]
public async Task RestoreLogging_MissingNuspecInSource_FailsWithNU5037Async()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = FrameworkConstants.CommonFrameworks.NetCoreApp10;
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX);
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
File.Delete(Path.Combine(pathContext.PackageSource, packageX.Id, packageX.Version, packageX.Id + NuGetConstants.ManifestExtension));
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("The package is missing the required nuspec file. Path: " + Path.Combine(pathContext.PackageSource, packageX.Id, packageX.Version));
}
}
[Fact]
public async Task RestoreLogging_MissingNuspecInGlobalPackages_FailsWithNU5037Async()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = FrameworkConstants.CommonFrameworks.NetCoreApp10;
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX);
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
//delete the project.assets file to avoid no-op restore
File.Delete(projectA.AssetsFileOutputPath);
File.Delete(Path.Combine(pathContext.UserPackagesFolder, packageX.Id, packageX.Version, packageX.Id + NuGetConstants.ManifestExtension));
r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("The package is missing the required nuspec file. Path: " + Path.Combine(pathContext.UserPackagesFolder, packageX.Id, packageX.Version));
}
}
[Fact]
public async Task RestoreLogging_VerifyNU1107DoesNotDisplayNU1608AlsoAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
projectA.Properties.Add("WarningsAsErrors", "NU1608");
var packageX = new SimpleTestPackageContext("x", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>x</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[1.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageY = new SimpleTestPackageContext("y", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>y</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[2.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageZ1 = new SimpleTestPackageContext("z", "1.0.0");
var packageZ2 = new SimpleTestPackageContext("z", "2.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX, packageY, packageZ1, packageZ2);
projectA.AddPackageToAllFrameworks(packageX);
projectA.AddPackageToAllFrameworks(packageY);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1107");
r.AllOutput.Should().NotContain("NU1608");
}
}
[Fact]
public void RestoreLogging_VerifyCompatErrorNU1201Properties()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var projectB = SimpleTestProjectContext.CreateNETCore(
"b",
pathContext.SolutionRoot,
netcoreapp2);
projectA.AddProjectToAllFrameworks(projectB);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
var log = projectA.AssetsFile.LogMessages.SingleOrDefault(e => e.Code == NuGetLogCode.NU1201 && e.TargetGraphs.All(g => !g.Contains("/")));
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1201");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("b");
log.Level.Should().Be(LogLevel.Error);
log.TargetGraphs.ShouldBeEquivalentTo(new[] { netcoreapp1.DotNetFrameworkName });
log.Message.Should().Be("Project b is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project b supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)");
}
}
[Fact]
public async Task RestoreLogging_VerifyCompatErrorNU1202PropertiesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0");
packageX.Files.Clear();
packageX.AddFile("lib/netcoreapp2.0/a.dll");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX);
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
var log = projectA.AssetsFile.LogMessages.SingleOrDefault(e => e.Code == NuGetLogCode.NU1202 && e.TargetGraphs.All(g => !g.Contains("/")));
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1202");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("x");
log.Level.Should().Be(LogLevel.Error);
log.TargetGraphs.ShouldBeEquivalentTo(new[] { netcoreapp1.DotNetFrameworkName });
log.Message.Should().Be("Package x 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package x 1.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)");
}
}
[Fact]
public async Task RestoreLogging_VerifyCompatErrorNU1203PropertiesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
projectA.Properties.Add("ValidateRuntimeIdentifierCompatibility", "true");
projectA.Properties.Add("RuntimeIdentifiers", "win10-x64");
var packageX = new SimpleTestPackageContext("x", "1.0.0");
packageX.Files.Clear();
packageX.AddFile("ref/netcoreapp1.0/a.dll"); // ref with a missing runtime
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX);
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
var log = projectA.AssetsFile.LogMessages.OrderBy(e => e.Message, StringComparer.Ordinal).FirstOrDefault(e => e.Code == NuGetLogCode.NU1203);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1203");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("x");
log.Level.Should().Be(LogLevel.Error);
log.TargetGraphs.Single().Should().Contain(netcoreapp1.DotNetFrameworkName);
log.Message.Should().Contain("x 1.0.0 provides a compile-time reference assembly for a on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with");
}
}
[Fact]
public async Task RestoreLogging_VerifyCircularDependencyErrorNU1106PropertiesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0");
var packageY = new SimpleTestPackageContext("y", "1.0.0");
packageX.Dependencies.Add(packageY);
packageY.Dependencies.Add(packageX);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX, packageY);
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
var log = projectA.AssetsFile.LogMessages.SingleOrDefault(e => e.Code == NuGetLogCode.NU1108 && e.TargetGraphs.All(g => !g.Contains("/")));
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1108");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("x");
log.Level.Should().Be(LogLevel.Error);
log.TargetGraphs.Single().Should().Contain(netcoreapp1.DotNetFrameworkName);
log.Message.Should().Contain("a -> x 1.0.0 -> y 1.0.0 -> x (>= 1.0.0)");
}
}
[Fact]
public async Task RestoreLogging_VerifyConflictErrorNU1107PropertiesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>x</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[1.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageY = new SimpleTestPackageContext("y", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>y</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[2.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageZ1 = new SimpleTestPackageContext("z", "1.0.0");
var packageZ2 = new SimpleTestPackageContext("z", "2.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX, packageY, packageZ1, packageZ2);
projectA.AddPackageToAllFrameworks(packageX);
projectA.AddPackageToAllFrameworks(packageY);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
var log = projectA.AssetsFile.LogMessages.SingleOrDefault(e => e.Code == NuGetLogCode.NU1107 && e.TargetGraphs.All(g => !g.Contains("/")));
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1107");
log.FilePath.Should().Be(projectA.ProjectPath);
log.LibraryId.Should().Be("z");
log.Level.Should().Be(LogLevel.Error);
log.TargetGraphs.Single().Should().Contain(netcoreapp1.DotNetFrameworkName);
log.Message.Should().Contain("Version conflict detected for z");
log.Message.Should().Contain("a -> y 1.0.0 -> z (= 2.0.0)");
log.Message.Should().Contain("a -> x 1.0.0 -> z (= 1.0.0).");
}
}
[Fact]
public async Task RestoreLogging_VerifyConflictErrorNU1107IsResolvedByTopLevelReferenceAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp1 = NuGetFramework.Parse("netcoreapp1.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp1);
var packageX = new SimpleTestPackageContext("x", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>x</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[1.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageY = new SimpleTestPackageContext("y", "1.0.0")
{
Nuspec = XDocument.Parse($@"<?xml version=""1.0"" encoding=""utf-8""?>
<package>
<metadata>
<id>y</id>
<version>1.0.0</version>
<title />
<dependencies>
<group>
<dependency id=""z"" version=""[2.0.0]"" />
</group>
</dependencies>
</metadata>
</package>")
};
var packageZ1 = new SimpleTestPackageContext("z", "1.0.0");
var packageZ2 = new SimpleTestPackageContext("z", "2.0.0");
await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource, packageX, packageY, packageZ1, packageZ2);
projectA.AddPackageToAllFrameworks(packageX);
projectA.AddPackageToAllFrameworks(packageY);
// This reference solves the conflict
projectA.AddPackageToAllFrameworks(packageZ1);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
}
}
[Fact]
public async Task RestoreLogging_WarningsContainNuGetLogCodesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("WARNING: NU1603:");
}
}
[Fact]
public async Task RestoreLogging_NetCore_WarningsAsErrorsFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Theory]
[InlineData("NU1603")]
[InlineData("$(NoWarn);NU1603")]
[InlineData("NU1603;$(NoWarn);")]
[InlineData("NU1603;NU1701")]
[InlineData("NU1603,NU1701")]
public async Task RestoreLogging_NetCore_NoWarnRemovesWarningAsync(string noWarn)
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("NoWarn", noWarn);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Theory]
[InlineData("NU1603")]
[InlineData("$(NoWarn);NU1603")]
[InlineData("NU1603;$(NoWarn);")]
[InlineData("NU1603;NU1701")]
[InlineData("NU1603,NU1701")]
public async Task RestoreLogging_NetCore_WarningsAsErrorsForSpecificWarningFailsAsync(string warnAsError)
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "false");
projectA.Properties.Add("WarningsAsErrors", warnAsError);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_WarningsAsErrorsForSpecificWarningOfAnotherTypeIgnoredAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "false");
projectA.Properties.Add("WarningsAsErrors", "NU1602;NU1701");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("NU1603");
r.AllOutput.Should().NotContain("NU1602");
r.AllOutput.Should().NotContain("NU1701");
}
}
[Fact]
public async Task RestoreLogging_NetCore_NoWarnWithTreatWarningsAsErrorRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
projectA.Properties.Add("NoWarn", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_DifferentNoWarnWithTreatWarningsAsErrorFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
projectA.Properties.Add("NoWarn", "NU1107");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_NoWarnWithWarnSpecificAsErrorRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
projectA.Properties.Add("NoWarn", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_DifferentNoWarnWithWarnSpecificAsErrorFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
projectA.Properties.Add("NoWarn", "NU1107");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_PackageSpecificNoWarnRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_WithMultiTargeting_AllTfmPackageSpecificNoWarnRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var net45 = NuGetFramework.Parse("net45");
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2,
net45);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_WithMultiTargeting_PartialTfmPackageSpecificNoWarnRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var net45 = NuGetFramework.Parse("net45");
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2,
net45);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToFramework("net45", packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_PackageSpecificDifferentNoWarnDoesNotRemoveWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1107"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_PackageSpecificNoWarnAndTreatWarningsAsErrorsAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_NetCore_PackageSpecificNoWarnAndTreatSpecificWarningsAsErrorsAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_WarningsContainNuGetLogCodesAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("WARNING: NU1603:");
}
}
[Fact]
public async Task RestoreLogging_Legacy_WarningsAsErrorsFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Theory]
[InlineData("NU1603")]
[InlineData("$(NoWarn);NU1603")]
[InlineData("NU1603;$(NoWarn);")]
[InlineData("NU1603;NU1701")]
[InlineData("NU1603,NU1701")]
public async Task RestoreLogging_Legacy_NoWarnRemovesWarningAsync(string noWarn)
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("NoWarn", noWarn);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Theory]
[InlineData("NU1603")]
[InlineData("$(NoWarn);NU1603")]
[InlineData("NU1603;$(NoWarn);")]
[InlineData("NU1603;NU1701")]
[InlineData("NU1603,NU1701")]
public async Task RestoreLogging_Legacy_WarningsAsErrorsForSpecificWarningFailsAsync(string warnAsError)
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "false");
projectA.Properties.Add("WarningsAsErrors", warnAsError);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_WarningsAsErrorsForSpecificWarningOfAnotherTypeIgnoredAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "false");
projectA.Properties.Add("WarningsAsErrors", "NU1602;NU1701");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("NU1603");
r.AllOutput.Should().NotContain("NU1602");
r.AllOutput.Should().NotContain("NU1701");
}
}
[Fact]
public async Task RestoreLogging_Legacy_NoWarnWithTreatWarningsAsErrorRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
projectA.Properties.Add("NoWarn", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_DifferentNoWarnWithTreatWarningsAsErrorFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
projectA.Properties.Add("NoWarn", "NU1107");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_NoWarnWithWarnSpecificAsErrorRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
projectA.Properties.Add("NoWarn", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_DifferentNoWarnWithWarnSpecificAsErrorFailsRestoreAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
projectA.Properties.Add("NoWarn", "NU1107");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_PackageSpecificNoWarnRemovesWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_PackageSpecificDifferentNoWarnDoesNotRemoveWarningAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1107"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().Contain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_PackageSpecificNoWarnAndTreatWarningsAsErrorsAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("TreatWarningsAsErrors", "true");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public async Task RestoreLogging_Legacy_PackageSpecificNoWarnAndTreatSpecificWarningsAsErrorsAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateLegacyPackageReference(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("WarningsAsErrors", "NU1603");
// Referenced but not created
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
NoWarn = "NU1603"
};
// Created in the source
var packageX9 = new SimpleTestPackageContext()
{
Id = "x",
Version = "9.0.0"
};
projectA.AddPackageToAllFrameworks(packageX);
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX9);
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
// Assert
r.Success.Should().BeTrue();
r.AllOutput.Should().NotContain("NU1603");
}
}
[Fact]
public void RestoreLogging_PackagesLockFile_InvalidInputError()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
projectA.Properties.Add("RestorePackagesWithLockFile", "false");
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
File.Create(projectA.NuGetLockFileOutputPath).Close();
// Act
var r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1005");
}
}
[Fact]
public async Task RestoreLogging_PackagesLockFile_RestoreLockedModeErrorAsync()
{
// Arrange
using (var pathContext = new SimpleTestPathContext())
{
// Set up solution, project, and packages
var solution = new SimpleTestSolutionContext(pathContext.SolutionRoot);
var netcoreapp2 = NuGetFramework.Parse("netcoreapp2.0");
var projectA = SimpleTestProjectContext.CreateNETCore(
"a",
pathContext.SolutionRoot,
netcoreapp2);
var packageX = new SimpleTestPackageContext()
{
Id = "x",
Version = "1.0.0",
};
var packageY = new SimpleTestPackageContext()
{
Id = "y",
Version = "1.0.0",
};
projectA.AddPackageToAllFrameworks(packageX);
projectA.Properties.Add("RestorePackagesWithLockFile", "true");
solution.Projects.Add(projectA);
solution.Create(pathContext.SolutionRoot);
await SimpleTestPackageUtility.CreateFolderFeedV3Async(
pathContext.PackageSource,
packageX, packageY);
var r = Util.RestoreSolution(pathContext, expectedExitCode: 0);
projectA.AddPackageToAllFrameworks(packageY);
projectA.Properties.Add("RestoreLockedMode", "true");
projectA.Save();
// Act
r = Util.RestoreSolution(pathContext, expectedExitCode: 1);
// Assert
r.Success.Should().BeFalse();
r.AllOutput.Should().Contain("NU1004");
var logCodes = projectA.AssetsFile.LogMessages.Select(e => e.Code);
logCodes.Should().Contain(NuGetLogCode.NU1004);
}
}
}
}
| 37.2073 | 191 | 0.508804 | [
"Apache-2.0"
] | cjvandyk/NuGet.Client | test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreLoggingTests.cs | 79,512 | C# |
// This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Dingtalkcrm_1_0.Models
{
public class BatchSendOfficialAccountOTOMessageResponseBody : TeaModel {
/// <summary>
/// 开放API
/// </summary>
[NameInMap("requestId")]
[Validation(Required=false)]
public string RequestId { get; set; }
/// <summary>
/// result
/// </summary>
[NameInMap("result")]
[Validation(Required=false)]
public BatchSendOfficialAccountOTOMessageResponseBodyResult Result { get; set; }
public class BatchSendOfficialAccountOTOMessageResponseBodyResult : TeaModel {
[NameInMap("openPushId")]
[Validation(Required=false)]
public string OpenPushId { get; set; }
};
}
}
| 26.5 | 88 | 0.628191 | [
"Apache-2.0"
] | aliyun/dingtalk-sdk | dingtalk/csharp/core/crm_1_0/Models/BatchSendOfficialAccountOTOMessageResponseBody.cs | 905 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using BuildXL.Cache.ContentStore.Interfaces.Results;
using BuildXL.Cache.ContentStore.Interfaces.Tracing;
using BuildXL.Cache.ContentStore.Tracing;
using BuildXL.Cache.MemoizationStore.Interfaces.Sessions;
namespace BuildXL.Cache.MemoizationStore.Tracing
{
/// <summary>
/// Instance of a CreateSession operation for tracing purposes.
/// </summary>
public sealed class CreateSessionCall : TracedCall<CacheTracer, CreateSessionResult<ICacheSession>>, IDisposable
{
/// <summary>
/// Run the call.
/// </summary>
public static CreateSessionResult<ICacheSession> Run(
CacheTracer tracer, Context context, string name, Func<CreateSessionResult<ICacheSession>> func)
{
using (var call = new CreateSessionCall(tracer, context, name))
{
return call.Run(func);
}
}
/// <summary>
/// Initializes a new instance of the <see cref="CreateSessionCall"/> class.
/// </summary>
private CreateSessionCall(CacheTracer tracer, Context context, string name)
: base(tracer, context)
{
Tracer.CreateSessionStart(context, name);
}
/// <inheritdoc />
protected override CreateSessionResult<ICacheSession> CreateErrorResult(Exception exception)
{
return new CreateSessionResult<ICacheSession>(exception);
}
/// <inheritdoc />
public void Dispose()
{
Tracer.CreateSessionStop(Context, Result);
}
}
}
| 33.882353 | 117 | 0.616898 | [
"MIT"
] | BearerPipelineTest/BuildXL | Public/Src/Cache/MemoizationStore/Library/Tracing/CreateSessionCall.cs | 1,728 | C# |
namespace J2N.IO
{
public class TestReadOnlyHeapInt32Buffer : TestReadOnlyInt32Buffer
{
public override void SetUp()
{
base.SetUp();
buf = Int32Buffer.Allocate(BUFFER_LENGTH);
base.loadTestData1(buf);
buf = buf.AsReadOnlyBuffer();
baseBuf = buf;
}
public override void TearDown()
{
base.TearDown();
}
}
}
| 21.95 | 70 | 0.528474 | [
"Apache-2.0"
] | NightOwl888/J2N | tests/J2N.Tests/IO/TestReadOnlyHeapInt32Buffer.cs | 441 | C# |
namespace CoreRpc.Serialization
{
public interface ISerializerFactory
{
ISerializer<T> CreateSerializer<T>();
}
} | 19 | 45 | 0.684211 | [
"MIT"
] | abogushevsky/CoreRpc | src/CoreRpc/Serialization/ISerializerFactory.cs | 133 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Generated with Bot Builder V4 SDK Template for Visual Studio EchoBot v4.6.2
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Integration.AspNet.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Microsoft.Teams.Samples.HelloWorld.Web
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddMvc();
// Create the Bot Framework Adapter with error handling enabled.
services.AddSingleton<IBotFrameworkHttpAdapter, AdapterWithErrorHandler>();
// Create the bot as a transient. In this case the ASP Controller is expecting an IBot.
services.AddTransient<IBot, MessageExtension>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseHsts();
}
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseWebSockets();
// Runs matching. An endpoint is selected and set on the HttpContext if a match is found.
app.UseRouting();
app.UseEndpoints(endpoints =>
{
// Mapping of endpoints goes here:
endpoints.MapControllers();
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
//app.UseHttpsRedirection();
}
}
}
| 30.8 | 106 | 0.618182 | [
"MIT"
] | 0723Cu/Microsoft-Teams-Samples | samples/app-hello-world/csharp/Microsoft.Teams.Samples.HelloWorld.Web/Startup.cs | 2,312 | C# |
using System;
namespace Pidgin
{
/// <summary>
/// Represents a (line, col) position in an input stream
/// </summary>
public readonly struct SourcePos : IEquatable<SourcePos>, IComparable<SourcePos>
{
/// <summary>
/// Gets the line of the position in the input stream.
/// The value is 1-indexed: a Line value of 1 refers to the first line of the input document.
/// </summary>
/// <returns>The line</returns>
public int Line { get; }
/// <summary>
/// Gets the column of the position in the input stream
/// The value is 1-indexed: a Col value of 1 refers to the first column of the line.
/// </summary>
/// <returns>The column</returns>
public int Col { get; }
/// <summary>
/// Create a new <see cref="SourcePos"/> with the specified 1-indexed line and column number.
/// </summary>
/// <param name="line">The 1-indexed line number</param>
/// <param name="col">The 1-indexed column number</param>
public SourcePos(int line, int col)
{
Line = line;
Col = col;
}
/// <summary>
/// Creates a <see cref="SourcePos"/> with the column number incremented by one
/// </summary>
/// <returns>A <see cref="SourcePos"/> with the column number incremented by one</returns>
public SourcePos IncrementCol()
=> new SourcePos(Line, Col + 1);
/// <summary>
/// Creates a <see cref="SourcePos"/> with the line number incremented by one and the column number reset to 1
/// </summary>
/// <returns>A <see cref="SourcePos"/> with the line number incremented by one and the column number reset to 1</returns>
public SourcePos NewLine()
=> new SourcePos(Line + 1, 1);
/// <inheritdoc/>
public bool Equals(SourcePos other)
=> Line == other.Line
&& Col == other.Col;
/// <inheritdoc/>
public override bool Equals(object other)
=> !ReferenceEquals(null, other)
&& other is SourcePos
&& Equals((SourcePos)other);
/// <inheritdoc/>
public static bool operator ==(SourcePos left, SourcePos right)
=> left.Equals(right);
/// <inheritdoc/>
public static bool operator !=(SourcePos left, SourcePos right)
=> !left.Equals(right);
/// <inheritdoc/>
public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = hash * 23 + Line.GetHashCode();
hash = hash * 23 + Col.GetHashCode();
return hash;
}
}
/// <inheritdoc/>
public int CompareTo(SourcePos other)
{
var lineCmp = Line.CompareTo(other.Line);
if (lineCmp != 0)
{
return lineCmp;
}
return Col.CompareTo(other.Col);
}
/// <inheritdoc/>
public static bool operator >(SourcePos left, SourcePos right)
=> left.CompareTo(right) > 0;
/// <inheritdoc/>
public static bool operator <(SourcePos left, SourcePos right)
=> left.CompareTo(right) < 0;
/// <inheritdoc/>
public static bool operator >=(SourcePos left, SourcePos right)
=> left.CompareTo(right) >= 0;
/// <inheritdoc/>
public static bool operator <=(SourcePos left, SourcePos right)
=> left.CompareTo(right) <= 0;
}
} | 35.960396 | 129 | 0.539648 | [
"MIT"
] | mustik22/Pidgin | Pidgin/SourcePos.cs | 3,632 | C# |
namespace Rabbitual.Fox
{
public class FoxTaskConsumer : ITaskConsumer
{
private readonly Hub _hub;
public FoxTaskConsumer(Hub hub)
{
_hub = hub;
}
public void Start(IAgentWrapper w)
{
_hub.AddWorker(w);
}
public void Stop()
{
}
}
} | 16 | 48 | 0.491477 | [
"MIT"
] | BjartN/Rabbitual | src/Rabbitual/Fox/FoxTaskConsumer.cs | 352 | C# |
/*
* Xero Payroll NZ
*
* This is the Xero Payroll API for orgs in the NZ region.
*
* Contact: api@xero.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter;
namespace Xero.NetStandard.OAuth2.Model.PayrollNz
{
/// <summary>
/// EmployeePayTemplates
/// </summary>
[DataContract]
public partial class EmployeePayTemplates : IEquatable<EmployeePayTemplates>, IValidatableObject
{
/// <summary>
/// Gets or Sets Pagination
/// </summary>
[DataMember(Name="pagination", EmitDefaultValue=false)]
public Pagination Pagination { get; set; }
/// <summary>
/// Gets or Sets Problem
/// </summary>
[DataMember(Name="problem", EmitDefaultValue=false)]
public Problem Problem { get; set; }
/// <summary>
/// Gets or Sets PayTemplate
/// </summary>
[DataMember(Name="payTemplate", EmitDefaultValue=false)]
public EmployeePayTemplate PayTemplate { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class EmployeePayTemplates {\n");
sb.Append(" Pagination: ").Append(Pagination).Append("\n");
sb.Append(" Problem: ").Append(Problem).Append("\n");
sb.Append(" PayTemplate: ").Append(PayTemplate).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as EmployeePayTemplates);
}
/// <summary>
/// Returns true if EmployeePayTemplates instances are equal
/// </summary>
/// <param name="input">Instance of EmployeePayTemplates to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(EmployeePayTemplates input)
{
if (input == null)
return false;
return
(
this.Pagination == input.Pagination ||
(this.Pagination != null &&
this.Pagination.Equals(input.Pagination))
) &&
(
this.Problem == input.Problem ||
(this.Problem != null &&
this.Problem.Equals(input.Problem))
) &&
(
this.PayTemplate == input.PayTemplate ||
(this.PayTemplate != null &&
this.PayTemplate.Equals(input.PayTemplate))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Pagination != null)
hashCode = hashCode * 59 + this.Pagination.GetHashCode();
if (this.Problem != null)
hashCode = hashCode * 59 + this.Problem.GetHashCode();
if (this.PayTemplate != null)
hashCode = hashCode * 59 + this.PayTemplate.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
| 33.331034 | 140 | 0.562177 | [
"MIT"
] | AlbertGromek/Xero-NetStandard | Xero.NetStandard.OAuth2/Model/PayrollNz/EmployeePayTemplates.cs | 4,833 | C# |
using System;
namespace Master40.SimulationCore.Environment.Abstractions
{
public interface IOption<T>
{
T Value { get; }
}
} | 16.444444 | 58 | 0.655405 | [
"Apache-2.0"
] | LennertBerkhan/ng-erp-4.0 | Master40.SimulationCore/Environment/Abstractions/IOption.cs | 150 | 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.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Test.Common;
using System.Threading.Tasks;
using Xunit;
namespace System.Net.Http.Functional.Tests
{
public abstract class HttpCookieProtocolTests : HttpClientTestBase
{
private const string s_cookieName = "ABC";
private const string s_cookieValue = "123";
private const string s_expectedCookieHeaderValue = "ABC=123";
private const string s_customCookieHeaderValue = "CustomCookie=456";
private const string s_simpleContent = "Hello world!";
//
// Send cookie tests
//
private static CookieContainer CreateSingleCookieContainer(Uri uri) => CreateSingleCookieContainer(uri, s_cookieName, s_cookieValue);
private static CookieContainer CreateSingleCookieContainer(Uri uri, string cookieName, string cookieValue)
{
var container = new CookieContainer();
container.Add(uri, new Cookie(cookieName, cookieValue));
return container;
}
private static string GetCookieHeaderValue(string cookieName, string cookieValue) => $"{cookieName}={cookieValue}";
[Fact]
public async Task GetAsync_DefaultCoookieContainer_NoCookieSent()
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
using (HttpClient client = CreateHttpClient())
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
List<string> requestLines = await serverTask;
Assert.Equal(0, requestLines.Count(s => s.StartsWith("Cookie:")));
}
});
}
[Theory]
[MemberData(nameof(CookieNamesValuesAndUseCookies))]
public async Task GetAsync_SetCookieContainer_CookieSent(string cookieName, string cookieValue, bool useCookies)
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = CreateSingleCookieContainer(url, cookieName, cookieValue);
handler.UseCookies = useCookies;
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
List<string> requestLines = await serverTask;
if (useCookies)
{
Assert.Contains($"Cookie: {GetCookieHeaderValue(cookieName, cookieValue)}", requestLines);
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie:")));
}
else
{
Assert.Equal(0, requestLines.Count(s => s.StartsWith("Cookie:")));
}
}
});
}
[Fact]
public async Task GetAsync_SetCookieContainerMultipleCookies_CookiesSent()
{
var cookies = new Cookie[]
{
new Cookie("hello", "world"),
new Cookie("foo", "bar"),
new Cookie("ABC", "123")
};
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
var cookieContainer = new CookieContainer();
foreach (Cookie c in cookies)
{
cookieContainer.Add(url, c);
}
handler.CookieContainer = cookieContainer;
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
List<string> requestLines = await serverTask;
string expectedHeader = "Cookie: " + string.Join("; ", cookies.Select(c => $"{c.Name}={c.Value}").ToArray());
Assert.Contains(expectedHeader, requestLines);
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie:")));
}
});
}
[Fact]
public async Task GetAsync_AddCookieHeader_CookieHeaderSent()
{
if (IsNetfxHandler)
{
// Netfx handler does not support custom cookie header
return;
}
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
using (HttpClient client = new HttpClient(handler))
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, url);
requestMessage.Headers.Add("Cookie", s_customCookieHeaderValue);
Task<HttpResponseMessage> getResponseTask = client.SendAsync(requestMessage);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
List<string> requestLines = await serverTask;
Assert.Contains($"Cookie: {s_customCookieHeaderValue}", requestLines);
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie:")));
}
});
}
[Fact]
public async Task GetAsync_AddMultipleCookieHeaders_CookiesSent()
{
if (IsNetfxHandler)
{
// Netfx handler does not support custom cookie header
return;
}
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
using (HttpClient client = new HttpClient(handler))
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, url);
requestMessage.Headers.Add("Cookie", "A=1");
requestMessage.Headers.Add("Cookie", "B=2");
requestMessage.Headers.Add("Cookie", "C=3");
Task<HttpResponseMessage> getResponseTask = client.SendAsync(requestMessage);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
List<string> requestLines = await serverTask;
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie: ")));
// Multiple Cookie header values are treated as any other header values and are
// concatenated using ", " as the separator.
var cookieValues = requestLines.Single(s => s.StartsWith("Cookie: ")).Substring(8).Split(new string[] { ", " }, StringSplitOptions.None);
Assert.Contains("A=1", cookieValues);
Assert.Contains("B=2", cookieValues);
Assert.Contains("C=3", cookieValues);
Assert.Equal(3, cookieValues.Count());
}
});
}
[Fact]
public async Task GetAsync_SetCookieContainerAndCookieHeader_BothCookiesSent()
{
if (IsNetfxHandler)
{
// Netfx handler does not support custom cookie header
return;
}
if (IsCurlHandler)
{
// Issue #26983
// CurlHandler ignores container cookies when custom Cookie header is set.
return;
}
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = CreateSingleCookieContainer(url);
using (HttpClient client = new HttpClient(handler))
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, url);
requestMessage.Headers.Add("Cookie", s_customCookieHeaderValue);
Task<HttpResponseMessage> getResponseTask = client.SendAsync(requestMessage);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
List<string> requestLines = await serverTask;
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie: ")));
var cookies = requestLines.Single(s => s.StartsWith("Cookie: ")).Substring(8).Split(new string[] { "; " }, StringSplitOptions.None);
Assert.Contains(s_expectedCookieHeaderValue, cookies);
Assert.Contains(s_customCookieHeaderValue, cookies);
Assert.Equal(2, cookies.Count());
}
});
}
[Fact]
public async Task GetAsync_SetCookieContainerAndMultipleCookieHeaders_BothCookiesSent()
{
if (IsNetfxHandler)
{
// Netfx handler does not support custom cookie header
return;
}
if (IsCurlHandler)
{
// Issue #26983
// CurlHandler ignores container cookies when custom Cookie header is set.
return;
}
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = CreateSingleCookieContainer(url);
using (HttpClient client = new HttpClient(handler))
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, url);
requestMessage.Headers.Add("Cookie", "A=1");
requestMessage.Headers.Add("Cookie", "B=2");
Task<HttpResponseMessage> getResponseTask = client.SendAsync(requestMessage);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync();
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
List<string> requestLines = await serverTask;
Assert.Equal(1, requestLines.Count(s => s.StartsWith("Cookie: ")));
// Multiple Cookie header values are treated as any other header values and are
// concatenated using ", " as the separator. The container cookie is concatenated to
// one of these values using the "; " cookie separator.
var cookieValues = requestLines.Single(s => s.StartsWith("Cookie: ")).Substring(8).Split(new string[] { ", " }, StringSplitOptions.None);
Assert.Equal(2, cookieValues.Count());
// Find container cookie and remove it so we can validate the rest of the cookie header values
bool sawContainerCookie = false;
for (int i = 0; i < cookieValues.Length; i++)
{
if (cookieValues[i].Contains(';'))
{
Assert.False(sawContainerCookie);
var cookies = cookieValues[i].Split(new string[] { "; " }, StringSplitOptions.None);
Assert.Equal(2, cookies.Count());
Assert.Contains(s_expectedCookieHeaderValue, cookies);
sawContainerCookie = true;
cookieValues[i] = cookies.Where(c => c != s_expectedCookieHeaderValue).Single();
}
}
Assert.Contains("A=1", cookieValues);
Assert.Contains("B=2", cookieValues);
}
});
}
[Fact]
public async Task GetAsyncWithRedirect_SetCookieContainer_CorrectCookiesSent()
{
const string path1 = "/foo";
const string path2 = "/bar";
await LoopbackServer.CreateClientAndServerAsync(async url =>
{
Uri url1 = new Uri(url, path1);
Uri url2 = new Uri(url, path2);
Uri unusedUrl = new Uri(url, "/unused");
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = new CookieContainer();
handler.CookieContainer.Add(url1, new Cookie("cookie1", "value1"));
handler.CookieContainer.Add(url2, new Cookie("cookie2", "value2"));
handler.CookieContainer.Add(unusedUrl, new Cookie("cookie3", "value3"));
using (HttpClient client = new HttpClient(handler))
{
await client.GetAsync(url1);
}
},
async server =>
{
List<string> request1Lines = await server.AcceptConnectionSendResponseAndCloseAsync(HttpStatusCode.Found, $"Location: {path2}\r\n");
Assert.Contains($"Cookie: cookie1=value1", request1Lines);
Assert.Equal(1, request1Lines.Count(s => s.StartsWith("Cookie:")));
List<string> request2Lines = await server.AcceptConnectionSendResponseAndCloseAsync(content: s_simpleContent);
Assert.Contains($"Cookie: cookie2=value2", request2Lines);
Assert.Equal(1, request2Lines.Count(s => s.StartsWith("Cookie:")));
});
}
//
// Receive cookie tests
//
[Theory]
[MemberData(nameof(CookieNamesValuesAndUseCookies))]
public async Task GetAsync_ReceiveSetCookieHeader_CookieAdded(string cookieName, string cookieValue, bool useCookies)
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.UseCookies = useCookies;
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK, $"Set-Cookie: {GetCookieHeaderValue(cookieName, cookieValue)}\r\n", s_simpleContent);
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
if (useCookies)
{
Assert.Equal(1, collection.Count);
Assert.Equal(cookieName, collection[0].Name);
Assert.Equal(cookieValue, collection[0].Value);
}
else
{
Assert.Equal(0, collection.Count);
}
}
});
}
[Fact]
public async Task GetAsync_ReceiveMultipleSetCookieHeaders_CookieAdded()
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK,
$"Set-Cookie: A=1; Path=/\r\n" +
$"Set-Cookie : B=2; Path=/\r\n" + // space before colon to verify header is trimmed and recognized
$"Set-Cookie: C=3; Path=/\r\n",
s_simpleContent);
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(3, collection.Count);
// Convert to array so we can more easily process contents, since CookieCollection does not implement IEnumerable<Cookie>
Cookie[] cookies = new Cookie[3];
collection.CopyTo(cookies, 0);
Assert.Contains(cookies, c => c.Name == "A" && c.Value == "1");
Assert.Contains(cookies, c => c.Name == "B" && c.Value == "2");
Assert.Contains(cookies, c => c.Name == "C" && c.Value == "3");
}
});
}
[Fact]
public async Task GetAsync_ReceiveSetCookieHeader_CookieUpdated()
{
const string newCookieValue = "789";
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = CreateSingleCookieContainer(url);
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK, $"Set-Cookie: {s_cookieName}={newCookieValue}\r\n", s_simpleContent);
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(1, collection.Count);
Assert.Equal(s_cookieName, collection[0].Name);
Assert.Equal(newCookieValue, collection[0].Value);
}
});
}
[Fact]
public async Task GetAsync_ReceiveSetCookieHeader_CookieRemoved()
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.CookieContainer = CreateSingleCookieContainer(url);
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK, $"Set-Cookie: {s_cookieName}=; Expires=Sun, 06 Nov 1994 08:49:37 GMT\r\n", s_simpleContent);
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(0, collection.Count);
}
});
}
[Fact]
public async Task GetAsync_ReceiveInvalidSetCookieHeader_ValidCookiesAdded()
{
if (IsNetfxHandler)
{
// NetfxHandler incorrectly only processes one valid cookie
return;
}
await LoopbackServer.CreateServerAsync(async (server, url) =>
{
HttpClientHandler handler = CreateHttpClientHandler();
using (HttpClient client = new HttpClient(handler))
{
Task<HttpResponseMessage> getResponseTask = client.GetAsync(url);
Task<List<string>> serverTask = server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK,
$"Set-Cookie: A=1; Path=/;Expires=asdfsadgads\r\n" + // invalid Expires
$"Set-Cookie: B=2; Path=/\r\n" +
$"Set-Cookie: C=3; Path=/\r\n",
s_simpleContent);
await TestHelper.WhenAllCompletedOrAnyFailed(getResponseTask, serverTask);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(2, collection.Count);
// Convert to array so we can more easily process contents, since CookieCollection does not implement IEnumerable<Cookie>
Cookie[] cookies = new Cookie[3];
collection.CopyTo(cookies, 0);
Assert.Contains(cookies, c => c.Name == "B" && c.Value == "2");
Assert.Contains(cookies, c => c.Name == "C" && c.Value == "3");
}
});
}
[Fact]
public async Task GetAsyncWithRedirect_ReceiveSetCookie_CookieSent()
{
const string path1 = "/foo";
const string path2 = "/bar";
await LoopbackServer.CreateClientAndServerAsync(async url =>
{
Uri url1 = new Uri(url, path1);
HttpClientHandler handler = CreateHttpClientHandler();
using (HttpClient client = new HttpClient(handler))
{
await client.GetAsync(url1);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(2, collection.Count);
// Convert to array so we can more easily process contents, since CookieCollection does not implement IEnumerable<Cookie>
Cookie[] cookies = new Cookie[2];
collection.CopyTo(cookies, 0);
Assert.Contains(cookies, c => c.Name == "A" && c.Value == "1");
Assert.Contains(cookies, c => c.Name == "B" && c.Value == "2");
}
},
async server =>
{
List<string> request1Lines = await server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.Found, $"Location: {path2}\r\nSet-Cookie: A=1; Path=/\r\n");
Assert.Equal(0, request1Lines.Count(s => s.StartsWith("Cookie:")));
List<string> request2Lines = await server.AcceptConnectionSendResponseAndCloseAsync(
HttpStatusCode.OK, $"Set-Cookie: B=2; Path=/\r\n", s_simpleContent);
Assert.Contains($"Cookie: A=1", request2Lines);
Assert.Equal(1, request2Lines.Count(s => s.StartsWith("Cookie:")));
});
}
[Fact]
public async Task GetAsyncWithBasicAuth_ReceiveSetCookie_CookieSent()
{
if (IsWinHttpHandler)
{
// Issue #26986
// WinHttpHandler does not process the cookie.
return;
}
await LoopbackServer.CreateClientAndServerAsync(async url =>
{
HttpClientHandler handler = CreateHttpClientHandler();
handler.Credentials = new NetworkCredential("user", "pass");
using (HttpClient client = new HttpClient(handler))
{
await client.GetAsync(url);
CookieCollection collection = handler.CookieContainer.GetCookies(url);
Assert.Equal(2, collection.Count);
// Convert to array so we can more easily process contents, since CookieCollection does not implement IEnumerable<Cookie>
Cookie[] cookies = new Cookie[2];
collection.CopyTo(cookies, 0);
Assert.Contains(cookies, c => c.Name == "A" && c.Value == "1");
Assert.Contains(cookies, c => c.Name == "B" && c.Value == "2");
}
},
async server =>
{
await server.AcceptConnectionAsync(async connection =>
{
List<string> request1Lines = await connection.ReadRequestHeaderAndSendResponseAsync(
HttpStatusCode.Unauthorized,
$"WWW-Authenticate: Basic realm=\"WallyWorld\"\r\nSet-Cookie: A=1; Path=/\r\n");
Assert.Equal(0, request1Lines.Count(s => s.StartsWith("Cookie:")));
List<string> request2Lines = await connection.ReadRequestHeaderAndSendResponseAsync(
HttpStatusCode.OK,
$"Set-Cookie: B=2; Path=/\r\n",
s_simpleContent);
Assert.Contains($"Cookie: A=1", request2Lines);
Assert.Equal(1, request2Lines.Count(s => s.StartsWith("Cookie:")));
});
});
}
//
// MemberData stuff
//
private static string GenerateCookie(string name, char repeat, int overallHeaderValueLength)
{
string emptyHeaderValue = $"{name}=; Path=/";
Debug.Assert(overallHeaderValueLength > emptyHeaderValue.Length);
int valueCount = overallHeaderValueLength - emptyHeaderValue.Length;
return new string(repeat, valueCount);
}
public static IEnumerable<object[]> CookieNamesValuesAndUseCookies()
{
foreach (bool useCookies in new[] { true, false })
{
yield return new object[] { "ABC", "123", useCookies };
yield return new object[] { "Hello", "World", useCookies };
yield return new object[] { "foo", "bar", useCookies };
yield return new object[] { ".AspNetCore.Session", "RAExEmXpoCbueP_QYM", useCookies };
yield return new object[]
{
".AspNetCore.Antiforgery.Xam7_OeLcN4",
"CfDJ8NGNxAt7CbdClq3UJ8_6w_4661wRQZT1aDtUOIUKshbcV4P0NdS8klCL5qGSN-PNBBV7w23G6MYpQ81t0PMmzIN4O04fqhZ0u1YPv66mixtkX3iTi291DgwT3o5kozfQhe08-RAExEmXpoCbueP_QYM",
useCookies
};
// WinHttpHandler calls WinHttpQueryHeaders to iterate through multiple Set-Cookie header values,
// using an initial buffer size of 128 chars. If the buffer is not large enough, WinHttpQueryHeaders
// returns an insufficient buffer error, allowing WinHttpHandler to try again with a larger buffer.
// Sometimes when WinHttpQueryHeaders fails due to insufficient buffer, it still advances the
// iteration index, which would cause header values to be missed if not handled correctly.
//
// In particular, WinHttpQueryHeader behaves as follows for the following header value lengths:
// * 0-127 chars: succeeds, index advances from 0 to 1.
// * 128-255 chars: fails due to insufficient buffer, index advances from 0 to 1.
// * 256+ chars: fails due to insufficient buffer, index stays at 0.
//
// The below overall header value lengths were chosen to exercise reading header values at these
// edges, to ensure WinHttpHandler does not miss multiple Set-Cookie headers.
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 126), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 127), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 128), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 129), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 254), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 255), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 256), useCookies };
yield return new object[] { "foo", GenerateCookie(name: "foo", repeat: 'a', overallHeaderValueLength: 257), useCookies };
}
}
}
}
| 45.746875 | 178 | 0.563392 | [
"MIT"
] | CliffordOzewell/corefx | src/System.Net.Http/tests/FunctionalTests/HttpCookieProtocolTests.cs | 29,280 | 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
*
* https://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 System;
using Newtonsoft.Json.Linq;
namespace Avro
{
/// <summary>
/// Represents a message in an Avro protocol.
/// </summary>
public class Message
{
/// <summary>
/// Name of the message
/// </summary>
public string Name { get; set; }
/// <summary>
/// Documentation for the message
/// </summary>
public string Doc { get; set; }
/// <summary>
/// Anonymous record for the list of parameters for the request fields
/// </summary>
public RecordSchema Request { get; set; }
/// <summary>
/// Schema object for the 'response' attribute
/// </summary>
public Schema Response { get; set; }
/// <summary>
/// Union schema object for the 'error' attribute
/// </summary>
public UnionSchema Error { get; set; }
/// <summary>
/// Optional one-way attribute
/// </summary>
public bool? Oneway { get; set; }
/// <summary>
/// Explicitly defined protocol errors plus system added "string" error
/// </summary>
public UnionSchema SupportedErrors { get; set; }
/// <summary>
/// Constructor for Message class
/// </summary>
/// <param name="name">name property</param>
/// <param name="doc">doc property</param>
/// <param name="request">list of parameters</param>
/// <param name="response">response property</param>
/// <param name="error">error union schema</param>
/// <param name="oneway">
/// Indicates that this is a one-way message. This may only be true when
/// <paramref name="response"/> is <see cref="Schema.Type.Null"/> and there are no errors
/// listed.
/// </param>
public Message(string name, string doc, RecordSchema request, Schema response, UnionSchema error, bool? oneway)
{
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException("name", "name cannot be null.");
this.Request = request;
this.Response = response;
this.Error = error;
this.Name = name;
this.Doc = doc;
this.Oneway = oneway;
if (error != null && error.CanRead(Schema.Parse("string")))
{
this.SupportedErrors = error;
}
else
{
this.SupportedErrors = (UnionSchema) Schema.Parse("[\"string\"]");
if (error != null)
{
for (int i = 0; i < error.Schemas.Count; ++i)
{
this.SupportedErrors.Schemas.Add(error.Schemas[i]);
}
}
}
}
/// <summary>
/// Parses the messages section of a protocol definition
/// </summary>
/// <param name="jmessage">messages JSON object</param>
/// <param name="names">list of parsed names</param>
/// <param name="encspace">enclosing namespace</param>
/// <returns></returns>
internal static Message Parse(JProperty jmessage, SchemaNames names, string encspace)
{
string name = jmessage.Name;
string doc = JsonHelper.GetOptionalString(jmessage.Value, "doc");
bool? oneway = JsonHelper.GetOptionalBoolean(jmessage.Value, "one-way");
PropertyMap props = Schema.GetProperties(jmessage.Value);
RecordSchema schema = RecordSchema.NewInstance(Schema.Type.Record, jmessage.Value as JObject, props, names, encspace);
JToken jresponse = jmessage.Value["response"];
var response = Schema.ParseJson(jresponse, names, encspace);
JToken jerrors = jmessage.Value["errors"];
UnionSchema uerrorSchema = null;
if (null != jerrors)
{
Schema errorSchema = Schema.ParseJson(jerrors, names, encspace);
if (!(errorSchema is UnionSchema))
throw new AvroException("");
uerrorSchema = errorSchema as UnionSchema;
}
return new Message(name, doc, schema, response, uerrorSchema, oneway);
}
/// <summary>
/// Writes the messages section of a protocol definition
/// </summary>
/// <param name="writer">writer</param>
/// <param name="names">list of names written</param>
/// <param name="encspace">enclosing namespace</param>
internal void writeJson(Newtonsoft.Json.JsonTextWriter writer, SchemaNames names, string encspace)
{
writer.WriteStartObject();
JsonHelper.writeIfNotNullOrEmpty(writer, "doc", this.Doc);
if (null != this.Request)
this.Request.WriteJsonFields(writer, names, null);
if (null != this.Response)
{
writer.WritePropertyName("response");
Response.WriteJson(writer, names, encspace);
}
if (null != this.Error)
{
writer.WritePropertyName("errors");
this.Error.WriteJson(writer, names, encspace);
}
if (null != Oneway)
{
writer.WritePropertyName("one-way");
writer.WriteValue(Oneway);
}
writer.WriteEndObject();
}
/// <summary>
/// Tests equality of this Message object with the passed object
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
public override bool Equals(Object obj)
{
if (obj == this) return true;
if (!(obj is Message)) return false;
Message that = obj as Message;
return this.Name.Equals(that.Name) &&
this.Request.Equals(that.Request) &&
areEqual(this.Response, that.Response) &&
areEqual(this.Error, that.Error);
}
/// <summary>
/// Returns the hash code of this Message object
/// </summary>
/// <returns></returns>
public override int GetHashCode()
{
return Name.GetHashCode() +
Request.GetHashCode() +
(Response == null ? 0 : Response.GetHashCode()) +
(Error == null ? 0 : Error.GetHashCode());
}
/// <summary>
/// Tests equality of two objects taking null values into account
/// </summary>
/// <param name="o1"></param>
/// <param name="o2"></param>
/// <returns></returns>
protected static bool areEqual(object o1, object o2)
{
return o1 == null ? o2 == null : o1.Equals(o2);
}
}
}
| 35.967136 | 130 | 0.554366 | [
"Apache-2.0"
] | aniket486/avro | lang/csharp/src/apache/main/Protocol/Message.cs | 7,661 | C# |
using System;
using h73.Elastic.Core.Search.Interfaces;
using Newtonsoft.Json;
namespace h73.Elastic.Core.Search.Queries
{
/// <summary>
/// Returns documents that have at least one non-null value in the original field
/// </summary>
/// <seealso cref="h73.Elastic.Core.Search.Queries.QueryInit" />
[Serializable]
public class ExistsQuery : QueryInit
{
/// <summary>
/// Initializes a new instance of the <see cref="ExistsQuery"/> class.
/// </summary>
public ExistsQuery()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ExistsQuery"/> class.
/// </summary>
/// <param name="fieldName">Name of the field.</param>
public ExistsQuery(string fieldName)
{
Exists = new ExistsQueryValue(fieldName);
}
/// <summary>
/// Gets or sets the exists.
/// </summary>
/// <value>
/// The exists.
/// </value>
[JsonProperty("exists")]
public ExistsQueryValue Exists { get; set; }
}
}
| 27.625 | 85 | 0.563801 | [
"MIT"
] | henskjold73/h73.Elastic.Core | h73.Elastic.Core/Search/Queries/ExistsQuery.cs | 1,107 | C# |
using System;
using System.Diagnostics;
using System.IO;
public static class Program {
public static int Main(string[] args) {
if (args.Length != 1) {
Console.WriteLine("invalid argument length.");
return -1;
}
string dir = args[0];
string ver = File.ReadAllText(Path.Combine(dir, "VERSION"));
string tag = null;
string gitDir = Path.Combine(dir, ".git");
if (!Directory.Exists(gitDir)) {
Console.WriteLine("git repository not found.");
}
else {
try {
var info = new ProcessStartInfo("git", "describe");
info.RedirectStandardOutput = true;
info.UseShellExecute = false;
using (Process ps = Process.Start(info)) {
tag = ps.StandardOutput.ReadLine();
string[] infos = tag.Split('-');
if (infos.Length >= 3)
ver = ver + "." + infos[infos.Length - 2];
else
ver = infos[0].Substring(1);
ps.WaitForExit();
if (ps.ExitCode != 0) {
Console.WriteLine("error when executing git describe: " + ps.ExitCode);
}
}
}
catch {
Console.WriteLine("error when executing git describe.");
}
}
tag = tag ?? "v" + ver + "-custom";
string template = Path.Combine(dir, "GlobalAssemblyInfo.Template.cs");
string output = Path.Combine(dir, "GlobalAssemblyInfo.cs");
string verInfo = File.ReadAllText(template);
verInfo = verInfo.Replace("{{VER}}", ver);
verInfo = verInfo.Replace("{{TAG}}", tag);
File.WriteAllText(output, verInfo);
Console.WriteLine("Version updated.");
return 0;
}
} | 28.759259 | 78 | 0.615583 | [
"CC0-1.0"
] | ElektroKill/KoiVM | libs/UpdateVersion.cs | 1,553 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfClient.Pages
{
/// <summary>
/// Status.xaml の相互作用ロジック
/// </summary>
public partial class Status : Page
{
public Status()
{
InitializeComponent();
}
}
}
| 21.068966 | 38 | 0.705401 | [
"MIT"
] | p2pquake/epsp-peer-cs | WpfClient/Pages/Status.xaml.cs | 631 | C# |
using Sandbox;
using System;
[Library( "ent_chair2", Title = "Chair 2", Spawnable = true )]
public partial class Chair2Entity : Prop, IUse
{
private TimeSince timeSinceDriverLeft;
[Net] public bool Grounded { get; private set; }
private struct InputState
{
public float throttle;
public float turning;
public float breaking;
public float tilt;
public float roll;
public void Reset()
{
throttle = 0;
turning = 0;
breaking = 0;
tilt = 0;
roll = 0;
}
}
private InputState currentInput;
[Net] public Player Driver { get; private set; }
public override void Spawn()
{
base.Spawn();
var modelName = "models/citizen_props/chair02.vmdl";
SetModel( modelName );
SetupPhysicsFromModel( PhysicsMotionType.Dynamic, false );
SetInteractsExclude( CollisionLayer.Player );
EnableSelfCollisions = false;
var trigger = new ModelEntity
{
Parent = this,
Position = Position,
Rotation = Rotation,
EnableTouch = true,
CollisionGroup = CollisionGroup.Trigger,
Transmit = TransmitType.Never,
EnableSelfCollisions = false,
};
trigger.SetModel( modelName );
trigger.SetupPhysicsFromModel( PhysicsMotionType.Keyframed, false );
}
protected override void OnDestroy()
{
base.OnDestroy();
if ( Driver is SandboxPlayer player )
{
RemoveDriver( player );
}
}
public void ResetInput()
{
currentInput.Reset();
}
[Event.Tick.Server]
protected void Tick()
{
if ( Driver is SandboxPlayer player )
{
if ( player.LifeState != LifeState.Alive || player.Vehicle != this )
{
RemoveDriver( player );
}
}
}
public override void Simulate( Client owner )
{
if ( owner == null ) return;
if ( !IsServer ) return;
using ( Prediction.Off() )
{
currentInput.Reset();
if ( Input.Pressed( InputButton.Use ) )
{
if ( owner.Pawn is SandboxPlayer player && !player.IsUseDisabled() )
{
RemoveDriver( player );
return;
}
}
}
}
private void RemoveDriver( SandboxPlayer player )
{
Driver = null;
timeSinceDriverLeft = 0;
ResetInput();
if ( !player.IsValid() )
return;
player.Vehicle = null;
player.VehicleController = null;
player.VehicleAnimator = null;
player.VehicleCamera = null;
player.Parent = null;
if ( player.PhysicsBody.IsValid() )
{
player.PhysicsBody.Enabled = true;
player.PhysicsBody.Position = player.Position;
}
}
public bool OnUse( Entity user )
{
if ( user is SandboxPlayer player && player.Vehicle == null && timeSinceDriverLeft > 1.0f )
{
player.Vehicle = this;
player.VehicleController = new Chair2Controller();
player.VehicleAnimator = new Chair2Animator();
player.VehicleCamera = new Chair2Camera();
player.Parent = this;
player.LocalPosition = Vector3.Up * 10;
player.LocalRotation = Rotation.Identity;
player.LocalScale = 1;
player.PhysicsBody.Enabled = false;
Driver = player;
}
return false;
}
public bool IsUsable( Entity user )
{
return Driver == null;
}
}
| 18.962264 | 93 | 0.6733 | [
"MIT"
] | Gman-HLA-sbox-modder/sboxplusplus | code/entities/chair2/Chair2.cs | 3,017 | C# |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Collections.Specialized;
using System.Threading.Tasks;
using IdentityServer4.Models;
namespace IdentityServer4.Validation
{
public interface IIntrospectionRequestValidator
{
Task<IntrospectionRequestValidationResult> ValidateAsync(NameValueCollection parameters, Scope scope);
}
} | 35.142857 | 110 | 0.792683 | [
"Apache-2.0"
] | ajilantony/identityserver4 | src/IdentityServer4/Validation/Interfaces/IIntrospectionRequestValidator.cs | 494 | C# |
// Copyright 2018 Maintainers and Contributors of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Tooling;
namespace Nuke.Common.Tools.OpenCover
{
partial class OpenCoverSettingsExtensions
{
public static OpenCoverSettings SetTargetSettings(this OpenCoverSettings toolSettings, ToolSettings targetSettings)
{
return toolSettings
.SetTargetPath(targetSettings.ToolPath)
.SetTargetArguments(targetSettings.GetArguments().RenderForExecution())
.SetTargetDirectory(targetSettings.WorkingDirectory);
}
public static OpenCoverSettings ResetTargetSettings(this OpenCoverSettings toolSettings)
{
return toolSettings
.ResetTargetPath()
.ResetTargetArguments()
.ResetTargetDirectory();
}
}
}
| 32.333333 | 123 | 0.680412 | [
"MIT"
] | werwolfby/nuke | source/Nuke.Common/Tools/OpenCover/OpenCoverSettingsExtensions.cs | 970 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(Signal))]
public class SignalInspector : Editor
{
private UnityEngine.Object v;
private object objectValue;
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if( Application.isPlaying ){
EditorGUILayout.Space();
EditorGUILayout.LabelField("Debug Tools");
var dataType = serializedObject.FindProperty("dataType");
EditorGUI.BeginChangeCheck();
EditorGUILayout.PropertyField( dataType );
if( EditorGUI.EndChangeCheck() ){
serializedObject.ApplyModifiedProperties();
}
switch( (Signal.TypeEnum)dataType.enumValueIndex ){
case Signal.TypeEnum.Int: {
if(!(objectValue is int)){
objectValue = 0;
}
objectValue = EditorGUILayout.IntField("Value ",(int)objectValue);
break;
}
case Signal.TypeEnum.Float: {
if(!(objectValue is float)){
objectValue = 0f;
}
objectValue = EditorGUILayout.FloatField("Value ",(float)objectValue);
break;
}
case Signal.TypeEnum.String: {
if(!(objectValue is string)){
objectValue = string.Empty;
}
objectValue = EditorGUILayout.TextField("Value ",(string)objectValue);
break;
}
case Signal.TypeEnum.Boolean: {
if(!(objectValue is bool)){
objectValue = false;
}
objectValue = EditorGUILayout.Toggle("Value ",(bool)objectValue);
break;
}
case Signal.TypeEnum.Object: {
v = EditorGUILayout.ObjectField("Value ",v,typeof(UnityEngine.Object), true);
break;
}
}
//EditorGUILayout.EnumFlagsField(target)
if( GUILayout.Button("Trigger") ){
var obj = new GameObject();
var triggerComponent = obj.AddComponent<TriggerSignal>();
triggerComponent.target = target as Signal;
triggerComponent.triggerOnStart = true;
triggerComponent.data = v;
}
}
}
}
| 38.681159 | 98 | 0.490446 | [
"MIT"
] | paulhayes/Signals | Assets/Signals/Scripts/Editor/SignalInspector.cs | 2,671 | C# |
//
// System.Runtime.Remoting.MetadataServices.ServiceType
//
// Authors:
// Martin Willemoes Hansen (mwh@sysrq.dk)
// Lluis Sanchez Gual (lluis@ximian.com)
//
// (C) 2003 Martin Willemoes Hansen
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Runtime.Remoting.MetadataServices
{
public class ServiceType
{
Type _type;
string _url;
public ServiceType (Type type)
{
_type = type;
}
public ServiceType (Type type, string url)
{
_type = type;
_url = url;
}
public Type ObjectType
{
get { return _type; }
}
public string Url
{
get { return _url; }
}
}
}
| 27.327869 | 73 | 0.720456 | [
"Apache-2.0"
] | 121468615/mono | mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.MetadataServices/ServiceType.cs | 1,667 | C# |
using Microsoft.AspNetCore.Builder;
namespace P7.Core.Startup
{
public abstract class ConfigureRegistrant : IConfigureRegistrant
{
public abstract void OnConfigure(IApplicationBuilder app);
}
} | 21.5 | 68 | 0.753488 | [
"Apache-2.0"
] | ghstahl/P7 | src/P7.Core/Startup/ConfigureRegistrant.cs | 215 | C# |
using CRM.EntityFrameWorkLib;
using CRM.WebApi.Filters;
using CRM.WebApi.Infrastructure;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Web.Http;
namespace CRM.WebApi.Controllers
{
//[Authorize]
[MylExceptionFilterAttribute]
public class SendEmailsController : ApiController
{
ApplicationManager appManager;
EmailProvider emailProvider;
public SendEmailsController()
{
appManager = new ApplicationManager();
emailProvider = new EmailProvider();
}
public async Task<IHttpActionResult> PostSendEmails([FromBody] List<Guid> guidlist, [FromUri] int template)
{
List<Contact> ContactsToSend = await appManager.GetContactsByGuIdListAsync(guidlist);
if (ContactsToSend.Count == 0) return NotFound();
await emailProvider.SendEmailAsync(ContactsToSend, template);
return Ok();
}
public async Task<IHttpActionResult> PostSendEmailsByEmailList([FromUri] int template, [FromUri] int emaillistId)
{
EmailList emlist = await appManager.GetEmailListByIdAsync(emaillistId);
if (emlist == null) return NotFound();
List<Contact> contactsTosend = new List<Contact>();
foreach (var item in emlist.Contacts)
{
if(item != null) contactsTosend.Add(item);
}
await emailProvider.SendEmailAsync(contactsTosend, template);
return Ok();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
appManager.Dispose();
emailProvider.Dispose();
}
base.Dispose(disposing);
}
}
} | 34.692308 | 122 | 0.621951 | [
"MIT"
] | tigranv/CRM_Project_C | CRM_Project_C/Source/CRM.WebApi/Controllers/SendEmailsController.cs | 1,806 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Nom.Bytecode
{
public abstract class AInstruction : IInstruction
{
public AInstruction(OpCode opCode)
{
OpCode = opCode;
}
public OpCode OpCode { get; }
public virtual UInt64 InstructionCount { get; } = 1;
public virtual void WriteByteCode(Stream ws)
{
ws.WriteByte((byte)OpCode);
WriteArguments(ws);
}
protected abstract void WriteArguments(Stream ws);
public static IInstruction ReadInstruction(Stream s, IReadConstantSource rcs)
{
OpCode opcode = (OpCode)s.ReadActualByte();
switch (opcode)
{
case OpCode.Noop:
throw new NotImplementedException();//unused
case OpCode.PhiNode:
return PhiNode.Read(s, rcs);
case OpCode.Return:
return ReturnInstruction.Read(s, rcs);
case OpCode.ReturnVoid:
return ReturnVoidInstruction.Read(s, rcs);
case OpCode.Argument:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.LoadStringConstant:
return LoadStringConstantInstruction.Read(s, rcs);
case OpCode.LoadIntConstant:
return LoadIntConstantInstruction.Read(s, rcs);
case OpCode.LoadFloatConstant:
return LoadFloatConstantInstruction.Read(s, rcs);
case OpCode.LoadBoolConstant:
return LoadBoolConstantInstruction.Read(s, rcs);
case OpCode.LoadNullConstant:
return LoadNullConstantInstruction.Read(s, rcs);
case OpCode.InvokeCheckedInstance:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.CallCheckedStatic:
return ACallInstruction.Read(s, rcs,opcode);
case OpCode.CallConstructor:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.CallDispatchBest:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.CallFinal:
return ACallInstruction.Read(s, rcs, opcode);//unused
case OpCode.CreateClosure:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.ConstructStruct:
return ACallInstruction.Read(s, rcs, opcode);
case OpCode.WriteField:
return WriteFieldInstruction.Read(s, rcs);
case OpCode.ReadField:
return ReadFieldInstruction.Read(s, rcs);
case OpCode.Cast:
return CastInstruction.Read(s, rcs);
case OpCode.Branch:
return BranchInstruction.Read(s, rcs);
case OpCode.CondBranch:
return CondBranchInstruction.Read(s, rcs);
case OpCode.BinOp:
return BinOpInstruction.Read(s, rcs);
case OpCode.UnaryOp:
return UnaryOpInstruction.Read(s, rcs);
case OpCode.Debug:
return DebugInstruction.Read(s, rcs);
case OpCode.RTCmd:
return RuntimeCmdInstruction.Read(s, rcs);
case OpCode.Error:
return ErrorInstruction.Read(s, rcs);
default:
throw new NomBytecodeException("Invalid opcode!");
}
}
}
}
| 40.347826 | 86 | 0.543373 | [
"BSD-3-Clause",
"MIT"
] | fabianmuehlboeck/monnom | sourcecode/Bytecode/Instructions/AInstruction.cs | 3,714 | C# |
using System;
using System.Net;
using System.Windows;
using System.Windows.Input;
using System.Collections.Generic;
using Windows.Data.Json;
using SuperMap.WinRT.Utilities;
namespace SuperMap.WinRT.REST
{
/// <summary>
/// <para>${REST_ThemeGraphAxes_Title}</para>
/// <para>${REST_ThemeGraphAxes_Description}</para>
/// </summary>
public class ThemeGraphAxes
{
/// <summary>${REST_ThemeGraphAxes_constructor_D}</summary>
public ThemeGraphAxes()
{
}
/// <summary>${REST_ThemeGraphAxes_attribute_axesColor_D}</summary>
public ServerColor AxesColor
{
get;
set;
}
/// <summary>${REST_ThemeGraphAxes_attribute_axesDisplayed_D}</summary>
public bool AxesDisplayed
{
get;
set;
}
/// <summary>${REST_ThemeGraphAxes_attribute_axesGridDisplayed_D}</summary>
public bool AxesGridDisplayed
{
get;
set;
}
/// <summary>${REST_ThemeGraphAxes_attribute_axesTextDisplayed_D}</summary>
public bool AxesTextDisplayed
{
get;
set;
}
/// <summary>${REST_ThemeGraphAxes_attribute_axesTextStyle_D}</summary>
public ServerTextStyle AxesTextStyle
{
get;
set;
}
internal static string ToJson(ThemeGraphAxes graphAxes)
{
string json = "";
List<string> list = new List<string>();
if (graphAxes.AxesColor != null)
{
list.Add(string.Format("\"axesColor\":{0}", ServerColor.ToJson(graphAxes.AxesColor)));
}
else
{
list.Add(string.Format("\"axesColor\":{0}", ServerColor.ToJson(new ServerColor())));
}
list.Add(string.Format("\"axesDisplayed\":{0}", graphAxes.AxesDisplayed.ToString().ToLower()));
list.Add(string.Format("\"axesGridDisplayed\":{0}", graphAxes.AxesGridDisplayed.ToString().ToLower()));
list.Add(string.Format("\"axesTextDisplayed\":{0}", graphAxes.AxesTextDisplayed.ToString().ToLower()));
if (graphAxes.AxesTextStyle != null)
{
list.Add(string.Format("\"axesTextStyle\":{0}", ServerTextStyle.ToJson(graphAxes.AxesTextStyle)));
}
else
{
list.Add(string.Format("\"axesTextStyle\":{0}", ServerTextStyle.ToJson(new ServerTextStyle())));
}
json = string.Join(",", list.ToArray());
return json;
}
internal static ThemeGraphAxes FromJson(JsonObject json)
{
if (json == null) return null;
ThemeGraphAxes graphAxes = new ThemeGraphAxes();
graphAxes.AxesColor = ServerColor.FromJson(json["axesColor"].GetObjectEx());
graphAxes.AxesDisplayed = json["axesDisplayed"].GetBooleanEx();
graphAxes.AxesGridDisplayed = json["axesGridDisplayed"].GetBooleanEx();
graphAxes.AxesTextDisplayed = json["axesTextDisplayed"].GetBooleanEx();
graphAxes.AxesTextStyle = ServerTextStyle.FromJson(json["axesTextStyle"].GetObjectEx());
return graphAxes;
}
}
}
| 33.03 | 115 | 0.580987 | [
"Apache-2.0"
] | SuperMap/iClient-for-Win8 | iClient60ForWinRT/SuperMap.WinRT.REST/Theme/ThemeGraphAxes.cs | 3,305 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Geometry;
using Microsoft.Graphics.Canvas.Text;
using Microsoft.Graphics.Canvas.UI.Xaml;
using System;
using System.Collections.Generic;
using System.Numerics;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace ExampleGallery
{
public sealed partial class GeometryOperations : UserControl
{
CanvasGeometry leftGeometry;
Matrix3x2 interGeometryTransform;
CanvasGeometry rightGeometry;
CanvasGeometry combinedGeometry;
bool showSourceGeometry;
float currentDistanceOnContourPath;
float totalDistanceOnContourPath;
Vector2 pointOnContourPath;
Vector2 tangentOnContourPath;
bool showTessellation;
CanvasTriangleVertices[] tessellation;
bool needsToRecreateResources;
bool enableTransform;
public GeometryOperations()
{
this.InitializeComponent();
LeftGeometryType = GeometryType.Rectangle;
RightGeometryType = GeometryType.Star;
WhichCombineType = CanvasGeometryCombine.Union;
interGeometryTransform = Matrix3x2.CreateTranslation(200, 100);
CurrentContourTracingAnimation = ContourTracingAnimationOption.None;
showSourceGeometry = false;
showTessellation = false;
enableTransform = false;
needsToRecreateResources = true;
}
public enum GeometryType
{
Rectangle,
RoundedRectangle,
Ellipse,
Star,
Text,
Group
}
public enum FillOrStroke
{
Fill,
Stroke
}
public enum ContourTracingAnimationOption
{
None,
Slow,
Fast
}
public List<GeometryType> Geometries { get { return Utils.GetEnumAsList<GeometryType>(); } }
public List<FillOrStroke> FillOrStrokeOptions { get { return Utils.GetEnumAsList<FillOrStroke>(); } }
public List<CanvasGeometryCombine> CanvasGeometryCombines { get { return Utils.GetEnumAsList<CanvasGeometryCombine>(); } }
public List<ContourTracingAnimationOption> ContourTracingAnimationOptions { get { return Utils.GetEnumAsList<ContourTracingAnimationOption>(); } }
public GeometryType LeftGeometryType { get; set; }
public GeometryType RightGeometryType { get; set; }
public FillOrStroke UseFillOrStroke { get; set; }
public ContourTracingAnimationOption CurrentContourTracingAnimation { get; set; }
public CanvasGeometryCombine WhichCombineType { get; set; }
private CanvasGeometry CreateGeometry(ICanvasResourceCreator resourceCreator, GeometryType type)
{
switch (type)
{
case GeometryType.Rectangle:
return CanvasGeometry.CreateRectangle(resourceCreator, 100, 100, 300, 350);
case GeometryType.RoundedRectangle:
return CanvasGeometry.CreateRoundedRectangle(resourceCreator, 80, 80, 400, 400, 100, 100);
case GeometryType.Ellipse:
return CanvasGeometry.CreateEllipse(resourceCreator, 275, 275, 225, 275);
case GeometryType.Star:
return Utils.CreateStarGeometry(resourceCreator, 250, new Vector2(250, 250));
case GeometryType.Text:
{
var textFormat = new CanvasTextFormat
{
FontFamily = "Comic Sans MS",
FontSize = 400,
};
var textLayout = new CanvasTextLayout(resourceCreator, "2D", textFormat, 1000, 1000);
return CanvasGeometry.CreateText(textLayout);
}
case GeometryType.Group:
{
CanvasGeometry geo0 = CanvasGeometry.CreateRectangle(resourceCreator, 100, 100, 100, 100);
CanvasGeometry geo1 = CanvasGeometry.CreateRoundedRectangle(resourceCreator, 300, 100, 100, 100, 50, 50);
CanvasPathBuilder pathBuilder = new CanvasPathBuilder(resourceCreator);
pathBuilder.BeginFigure(200, 200);
pathBuilder.AddLine(500, 200);
pathBuilder.AddLine(200, 350);
pathBuilder.EndFigure(CanvasFigureLoop.Closed);
CanvasGeometry geo2 = CanvasGeometry.CreatePath(pathBuilder);
return CanvasGeometry.CreateGroup(resourceCreator, new CanvasGeometry[] { geo0, geo1, geo2 });
}
}
System.Diagnostics.Debug.Assert(false);
return null;
}
private void Canvas_Draw(ICanvasAnimatedControl sender, CanvasAnimatedDrawEventArgs args)
{
Matrix3x2 displayTransform = Utils.GetDisplayTransform(sender.Size.ToVector2(), new Vector2(1000, 1000));
args.DrawingSession.Transform = displayTransform;
args.DrawingSession.FillGeometry(combinedGeometry, Colors.Blue);
if (showSourceGeometry)
{
args.DrawingSession.DrawGeometry(leftGeometry, Colors.Red, 5.0f);
args.DrawingSession.Transform = interGeometryTransform * displayTransform;
args.DrawingSession.DrawGeometry(rightGeometry, Colors.Red, 5.0f);
args.DrawingSession.Transform = displayTransform;
}
if (showTessellation)
{
foreach (var triangle in tessellation)
{
args.DrawingSession.DrawLine(triangle.Vertex1, triangle.Vertex2, Colors.Gray);
args.DrawingSession.DrawLine(triangle.Vertex2, triangle.Vertex3, Colors.Gray);
args.DrawingSession.DrawLine(triangle.Vertex3, triangle.Vertex1, Colors.Gray);
}
}
if (CurrentContourTracingAnimation != ContourTracingAnimationOption.None)
{
args.DrawingSession.FillCircle(pointOnContourPath, 2, Colors.White);
const float arrowSize = 10.0f;
Vector2 tangentLeft = new Vector2(
-tangentOnContourPath.Y,
tangentOnContourPath.X);
Vector2 tangentRight = new Vector2(
tangentOnContourPath.Y,
-tangentOnContourPath.X);
Vector2 bisectorLeft = new Vector2(
tangentOnContourPath.X + tangentLeft.X,
tangentOnContourPath.Y + tangentLeft.Y);
Vector2 bisectorRight = new Vector2(
tangentOnContourPath.X + tangentRight.X,
tangentOnContourPath.Y + tangentRight.Y);
Vector2 arrowheadFront = new Vector2(
pointOnContourPath.X + (tangentOnContourPath.X * arrowSize * 2),
pointOnContourPath.Y + (tangentOnContourPath.Y * arrowSize * 2));
Vector2 arrowheadLeft = new Vector2(
arrowheadFront.X - (bisectorLeft.X * arrowSize),
arrowheadFront.Y - (bisectorLeft.Y * arrowSize));
Vector2 arrowheadRight = new Vector2(
arrowheadFront.X - (bisectorRight.X * arrowSize),
arrowheadFront.Y - (bisectorRight.Y * arrowSize));
const float strokeWidth = arrowSize / 4.0f;
args.DrawingSession.DrawLine(pointOnContourPath, arrowheadFront, Colors.White, strokeWidth);
args.DrawingSession.DrawLine(arrowheadFront, arrowheadLeft, Colors.White, strokeWidth);
args.DrawingSession.DrawLine(arrowheadFront, arrowheadRight, Colors.White, strokeWidth);
}
}
private void Canvas_Update(ICanvasAnimatedControl sender, CanvasAnimatedUpdateEventArgs args)
{
if (needsToRecreateResources)
{
RecreateGeometry(sender);
needsToRecreateResources = false;
}
if (CurrentContourTracingAnimation != ContourTracingAnimationOption.None)
{
float animationDistanceThisFrame = CurrentContourTracingAnimation == ContourTracingAnimationOption.Slow ? 1.0f : 20.0f;
currentDistanceOnContourPath = (currentDistanceOnContourPath + animationDistanceThisFrame) % totalDistanceOnContourPath;
pointOnContourPath = combinedGeometry.ComputePointOnPath(currentDistanceOnContourPath, out tangentOnContourPath);
}
}
private void RecreateGeometry(ICanvasResourceCreator resourceCreator)
{
leftGeometry = CreateGeometry(resourceCreator, LeftGeometryType);
rightGeometry = CreateGeometry(resourceCreator, RightGeometryType);
if (enableTransform)
{
Matrix3x2 placeNearOrigin = Matrix3x2.CreateTranslation(-200, -200);
Matrix3x2 undoPlaceNearOrigin = Matrix3x2.CreateTranslation(200, 200);
Matrix3x2 rotate0 = Matrix3x2.CreateRotation((float)Math.PI / 4.0f); // 45 degrees
Matrix3x2 scale0 = Matrix3x2.CreateScale(1.5f);
Matrix3x2 rotate1 = Matrix3x2.CreateRotation((float)Math.PI / 6.0f); // 30 degrees
Matrix3x2 scale1 = Matrix3x2.CreateScale(2.0f);
leftGeometry = leftGeometry.Transform(placeNearOrigin * rotate0 * scale0 * undoPlaceNearOrigin);
rightGeometry = rightGeometry.Transform(placeNearOrigin * rotate1 * scale1 * undoPlaceNearOrigin);
}
combinedGeometry = leftGeometry.CombineWith(rightGeometry, interGeometryTransform, WhichCombineType);
if (UseFillOrStroke == FillOrStroke.Stroke)
{
CanvasStrokeStyle strokeStyle = new CanvasStrokeStyle();
strokeStyle.DashStyle = CanvasDashStyle.Dash;
combinedGeometry = combinedGeometry.Stroke(15.0f, strokeStyle);
}
totalDistanceOnContourPath = combinedGeometry.ComputePathLength();
if (showTessellation)
{
tessellation = combinedGeometry.Tessellate();
}
}
private void Canvas_CreateResources(CanvasAnimatedControl sender, object args)
{
needsToRecreateResources = true;
}
private void SettingsCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
needsToRecreateResources = true;
}
void ShowSourceGeometry_Checked(object sender, RoutedEventArgs e)
{
showSourceGeometry = true;
}
void ShowSourceGeometry_Unchecked(object sender, RoutedEventArgs e)
{
showSourceGeometry = false;
}
void ShowTessellation_Checked(object sender, RoutedEventArgs e)
{
showTessellation = true;
needsToRecreateResources = true;
}
void ShowTessellation_Unchecked(object sender, RoutedEventArgs e)
{
showTessellation = false;
}
void EnableTransform_Checked(object sender, RoutedEventArgs e)
{
enableTransform = true;
needsToRecreateResources = true;
}
void EnableTransform_Unchecked(object sender, RoutedEventArgs e)
{
enableTransform = false;
needsToRecreateResources = true;
}
private void control_Unloaded(object sender, RoutedEventArgs e)
{
// Explicitly remove references to allow the Win2D controls to get garbage collected
canvas.RemoveFromVisualTree();
canvas = null;
}
}
}
| 39.07074 | 154 | 0.614188 | [
"MIT"
] | Almost-Done/Win2D | samples/ExampleGallery/GeometryOperations.xaml.cs | 12,151 | C# |
namespace Mages.Core.Ast.Expressions
{
using System;
/// <summary>
/// Base class for all pre unary expressions.
/// </summary>
public abstract class PreUnaryExpression : ComputingExpression, IExpression
{
#region Fields
private readonly IExpression _value;
private readonly String _operator;
#endregion
#region ctor
/// <summary>
/// Creates a new pre unary expression.
/// </summary>
public PreUnaryExpression(TextPosition start, IExpression value, String op)
: base(start, value.End)
{
_value = value;
_operator = op;
}
#endregion
#region Properties
/// <summary>
/// Gets the used value.
/// </summary>
public IExpression Value => _value;
/// <summary>
/// Gets the operator string.
/// </summary>
public String Operator => _operator;
#endregion
#region Methods
/// <summary>
/// Accepts the visitor by showing him around.
/// </summary>
/// <param name="visitor">The visitor walking the tree.</param>
public void Accept(ITreeWalker visitor)
{
visitor.Visit(this);
}
/// <summary>
/// Validates the expression with the given context.
/// </summary>
/// <param name="context">The validator to report errors to.</param>
public virtual void Validate(IValidationContext context)
{
if (_value is EmptyExpression)
{
var error = new ParseError(ErrorCode.OperandRequired, _value);
context.Report(error);
}
}
#endregion
#region Operations
internal sealed class Not : PreUnaryExpression
{
public Not(TextPosition start, IExpression value)
: base(start, value, "~")
{
}
}
internal sealed class Minus : PreUnaryExpression
{
public Minus(TextPosition start, IExpression value)
: base(start, value, "-")
{
}
}
internal sealed class Plus : PreUnaryExpression
{
public Plus(TextPosition start, IExpression value)
: base(start, value, "+")
{
}
}
internal sealed class Type : PreUnaryExpression
{
public Type(TextPosition start, IExpression value)
: base(start, value, "&")
{
}
}
internal sealed class Increment : PreUnaryExpression
{
public Increment(TextPosition start, IExpression value)
: base(start, value, "++")
{
}
public override void Validate(IValidationContext context)
{
if (Value is AssignableExpression == false)
{
var error = new ParseError(ErrorCode.IncrementOperand, Value);
context.Report(error);
}
}
}
internal sealed class Decrement : PreUnaryExpression
{
public Decrement(TextPosition start, IExpression value)
: base(start, value, "--")
{
}
public override void Validate(IValidationContext context)
{
if (Value is AssignableExpression == false)
{
var error = new ParseError(ErrorCode.DecrementOperand, Value);
context.Report(error);
}
}
}
#endregion
}
}
| 26.43662 | 83 | 0.508524 | [
"MIT"
] | FlorianRappl/Mages | src/Mages.Core/Ast/Expressions/PreUnaryExpression.cs | 3,756 | C# |
using System;
using System.Collections.Generic;
using System.IO;
namespace Sundown
{
public class BBCodeOptions
{
public BBCodeOptions()
{
DefaultHeaderSize = 10;
HeaderSizes = new Dictionary<int, int>() {
{ 1, 16 },
{ 2, 14 },
{ 3, 12 },
};
}
public int DefaultHeaderSize { get; set; }
public Dictionary<int, int> HeaderSizes { get; set; }
internal int GetSize(int level)
{
int val;
if (HeaderSizes != null && HeaderSizes.TryGetValue(level, out val)) {
return val;
} else {
return DefaultHeaderSize;
}
}
}
public class BBCodeRenderer : Renderer
{
BBCodeOptions options;
public BBCodeRenderer()
: this(new BBCodeOptions())
{
}
public BBCodeRenderer(BBCodeOptions options)
{
this.options = options;
}
protected override void Paragraph(Buffer ob, Buffer text)
{
ob.Put("\n");
ob.Put(text);
ob.Put("\n");
ob.Put("\n");
}
protected override void Header(Buffer ob, Buffer text, int level)
{
ob.Put("[size={0}pt]{1}[/size]\n", options.GetSize(level), text);
}
protected override bool DoubleEmphasis(Buffer ob, Buffer text)
{
ob.Put("[b]{0}[/b]", text);
return true;
}
protected override bool Emphasis(Buffer ob, Buffer text)
{
ob.Put("[u]{0}[/u]", text);
return true;
}
protected override bool Link(Buffer ob, Buffer link, Buffer title, Buffer content)
{
ob.Put("[url={0}]{1}[/url]", link, content);
return true;
}
protected override void List(Buffer ob, Buffer text, int flags)
{
ob.Put("\n[list type=decimal]\n");
ob.Put(text);
ob.Put("[/list]");
}
protected override void ListItem(Buffer ob, Buffer text, int flags)
{
ob.Put("[li]{0}[/li]\n", text);
}
protected override void BlockCode(Buffer ob, Buffer text, Buffer language)
{
ob.Put("\n[quote author={0}]{1}[/quote]\n", language, text);
}
}
}
| 19.453608 | 84 | 0.627451 | [
"Apache-2.0"
] | lslab/YaMdEditor | YaMdEditor/MarkdownParser/SundownNet/BBCode.cs | 1,887 | C# |
#if !OMIT_FOREIGN_KEY
using System;
using System.Diagnostics;
using System.Text;
using Bitmask = System.UInt64;
namespace Core
{
public partial class Parse
{
#if !OMIT_TRIGGER
int LocateFkeyIndex(Table parent, FKey fkey, out Index indexOut, out int[] colsOut)
{
indexOut = null; colsOut = null;
int colsLength = fkey.Cols.length; // Number of columns in parent key
string key = fkey.Cols[0].Col; // Name of left-most parent key column
// The caller is responsible for zeroing output parameters.
//: _assert(indexOut && *indexOut == nullptr);
//: _assert(!colsOut || *colsOut == nullptr);
// If this is a non-composite (single column) foreign key, check if it maps to the INTEGER PRIMARY KEY of table pParent. If so, leave *ppIdx
// and *paiCol set to zero and return early.
//
// Otherwise, for a composite foreign key (more than one column), allocate space for the aiCol array (returned via output parameter *paiCol).
// Non-composite foreign keys do not require the aiCol array.
int[] cols = null; // Value to return via *paiCol
if (colsLength == 1)
{
// The FK maps to the IPK if any of the following are true:
// 1) There is an INTEGER PRIMARY KEY column and the FK is implicitly mapped to the primary key of table pParent, or
// 2) The FK is explicitly mapped to a column declared as INTEGER PRIMARY KEY.
if (parent.PKey >= 0)
if (key == null || string.Equals(parent.Cols[parent.PKey].Name, key, StringComparison.InvariantCultureIgnoreCase)) return 0;
}
else //: if (colsOut)
{
Debug.Assert(colsLength > 1);
cols = new int[colsLength]; //: (int *)_tagalloc(Ctx, colsLength*sizeof(int));
if (cols == null) return 1;
colsOut = cols;
}
Index index = null; // Value to return via *ppIdx
for (index = parent.Index; index != null; index = index.Next)
{
if (index.Columns.length == colsLength && index.OnError != OE.None)
{
// pIdx is a UNIQUE index (or a PRIMARY KEY) and has the right number of columns. If each indexed column corresponds to a foreign key
// column of pFKey, then this index is a winner.
if (key == null)
{
// If zKey is NULL, then this foreign key is implicitly mapped to the PRIMARY KEY of table pParent. The PRIMARY KEY index may be
// identified by the test (Index.autoIndex==2).
if (index.AutoIndex == 2)
{
if (cols != null)
for (int i = 0; i < colsLength; i++) cols[i] = fkey.Cols[i].From;
break;
}
}
else
{
// If zKey is non-NULL, then this foreign key was declared to map to an explicit list of columns in table pParent. Check if this
// index matches those columns. Also, check that the index uses the default collation sequences for each column.
int i, j;
for (i = 0; i < colsLength; i++)
{
int col = index.Columns[i]; // Index of column in parent tbl
// If the index uses a collation sequence that is different from the default collation sequence for the column, this index is
// unusable. Bail out early in this case.
string dfltColl = parent.Cols[col].Coll; // Def. collation for column
if (string.IsNullOrEmpty(dfltColl))
dfltColl = "BINARY";
if (!string.Equals(index.CollNames[i], dfltColl, StringComparison.InvariantCultureIgnoreCase)) break;
string indexCol = parent.Cols[col].Name; // Name of indexed column
for (j = 0; j < colsLength; j++)
{
if (string.Equals(fkey.Cols[j].Col, indexCol, StringComparison.InvariantCultureIgnoreCase))
{
if (cols != null) cols[i] = fkey.Cols[j].From;
break;
}
}
if (j == colsLength) break;
}
if (i == colsLength) break; // pIdx is usable
}
}
}
if (index == null)
{
if (!DisableTriggers)
ErrorMsg("foreign key mismatch - \"%w\" referencing \"%w\"", fkey.From.Name, fkey.To);
C._tagfree(Ctx, ref cols);
return 1;
}
indexOut = index;
return 0;
}
static void FKLookupParent(Parse parse, int db, Table table, Index index, FKey fkey, int[] cols, int regDataId, int incr, bool isIgnore)
{
Vdbe v = parse.GetVdbe(); // Vdbe to add code to
int curId = parse.Tabs - 1; // Cursor number to use
int okId = v.MakeLabel(); // jump here if parent key found
// If nIncr is less than zero, then check at runtime if there are any outstanding constraints to resolve. If there are not, there is no need
// to check if deleting this row resolves any outstanding violations.
//
// Check if any of the key columns in the child table row are NULL. If any are, then the constraint is considered satisfied. No need to
// search for a matching row in the parent table.
int i;
if (incr < 0)
v.AddOp2(OP.FkIfZero, fkey.IsDeferred, okId);
for (i = 0; i < fkey.Cols.length; i++)
{
int regId = cols[i] + regDataId + 1;
v.AddOp2(OP.IsNull, regId, okId);
}
if (!isIgnore)
{
if (index == null)
{
// If pIdx is NULL, then the parent key is the INTEGER PRIMARY KEY column of the parent table (table pTab).
int mustBeIntId; // Address of MustBeInt instruction
int regTempId = parse.GetTempReg();
// Invoke MustBeInt to coerce the child key value to an integer (i.e. apply the affinity of the parent key). If this fails, then there
// is no matching parent key. Before using MustBeInt, make a copy of the value. Otherwise, the value inserted into the child key column
// will have INTEGER affinity applied to it, which may not be correct.
v.AddOp2(OP.SCopy, cols[0] + 1 + regDataId, regTempId);
mustBeIntId = v.AddOp2(OP.MustBeInt, regTempId, 0);
// If the parent table is the same as the child table, and we are about to increment the constraint-counter (i.e. this is an INSERT operation),
// then check if the row being inserted matches itself. If so, do not increment the constraint-counter.
if (table == fkey.From && incr == 1)
v.AddOp3(OP.Eq, regDataId, okId, regTempId);
parse.OpenTable(parse, curId, db, table, OP.OpenRead);
v.AddOp3(OP.NotExists, curId, 0, regTempId);
v.AddOp2(OP.Goto, 0, okId);
v.JumpHere(v.CurrentAddr() - 2);
v.JumpHere(mustBeIntId);
parse.ReleaseTempReg(regTempId);
}
else
{
int colsLength = fkey.Cols.length;
int regTempId = parse.GetTempRange(colsLength);
int regRecId = parse.GetTempReg();
KeyInfo key = IndexKeyinfo(parse, index);
v.AddOp3(OP.OpenRead, curId, index.Id, db);
v.ChangeP4(v, -1, key, Vdbe.P4T.KEYINFO_HANDOFF);
for (i = 0; i < colsLength; i++)
v.AddOp2(OP.Copy, cols[i] + 1 + regDataId, regTempId + i);
// If the parent table is the same as the child table, and we are about to increment the constraint-counter (i.e. this is an INSERT operation),
// then check if the row being inserted matches itself. If so, do not increment the constraint-counter.
// If any of the parent-key values are NULL, then the row cannot match itself. So set JUMPIFNULL to make sure we do the OP_Found if any
// of the parent-key values are NULL (at this point it is known that none of the child key values are).
if (table == fkey.From && incr == 1)
{
int jumpId = v.CurrentAddr() + colsLength + 1;
for (i = 0; i < colsLength; i++)
{
int childId = cols[i] + 1 + regDataId;
int parentId = index.Columns[i] + 1 + regDataId;
Debug.Assert(cols[i] != table.PKey);
if (index.Columns[i] == table.PKey)
parentId = regDataId; // The parent key is a composite key that includes the IPK column
v.AddOp3(OP.Ne, childId, jumpId, parentId);
v.ChangeP5(SQLITE_JUMPIFNULL);
}
v.AddOp2(OP.Goto, 0, okId);
}
v.AddOp3(OP.MakeRecord, regTempId, colsLength, regRecId);
v.ChangeP4(-1, IndexAffinityStr(v, index), Vdbe.P4T.TRANSIENT);
v.AddOp4Int(OP.Found, curId, okId, regRecId, 0);
parse.ReleaseTempReg(regRecId);
parse.ReleaseTempRange(regTempId, colsLength);
}
}
if (!fkey.IsDeferred && parse.Toplevel == null && parse.IsMultiWrite == 0)
{
// Special case: If this is an INSERT statement that will insert exactly one row into the table, raise a constraint immediately instead of
// incrementing a counter. This is necessary as the VM code is being generated for will not open a statement transaction.
Debug.Assert(incr == 1);
HaltConstraint(parse, OE.Abort, "foreign key constraint failed", Vdbe.P4T.STATIC);
}
else
{
if (incr > 0 && !fkey.IsDeferred)
E.Parse_Toplevel(parse).MayAbort = true;
v.AddOp2(OP.FkCounter, fkey.IsDeferred, incr);
}
v.ResolveLabel(v, okId);
v.AddOp1(OP.Close, curId);
}
static void FKScanChildren(Parse parse, SrcList src, Table table, Index index, FKey fkey, int[] cols, int regDataId, int incr)
{
Context ctx = parse.Ctx; // Database handle
Vdbe v = parse.GetVdbe();
Expr where_ = null; // WHERE clause to scan with
Debug.Assert(index == null || index.Table == table);
int fkIfZero = 0; // Address of OP_FkIfZero
if (incr < 0)
fkIfZero = v.AddOp2(OP.FkIfZero, fkey.IsDeferred, 0);
// Create an Expr object representing an SQL expression like:
//
// <parent-key1> = <child-key1> AND <parent-key2> = <child-key2> ...
//
// The collation sequence used for the comparison should be that of the parent key columns. The affinity of the parent key column should
// be applied to each child key value before the comparison takes place.
for (int i = 0; i < fkey.Cols.length; i++)
{
int col; // Index of column in child table
Expr left = Expr.Expr(ctx, TK.REGISTER, null); // Value from parent table row
if (left != null)
{
// Set the collation sequence and affinity of the LHS of each TK_EQ expression to the parent key column defaults.
if (index != null)
{
col = index.Columns[i];
Column colObj = table.Cols[col];
if (table.PKey == col) col = -1;
left.TableId = regDataId + col + 1;
left.Aff = colObj.Affinity;
string collName = colObj.Coll;
if (collName == null) collName = ctx.DefaultColl.Name;
left = Expr.AddCollateString(parse, left, collName);
}
else
{
left.TableId = regDataId;
left.Aff = AFF.INTEGER;
}
}
col = (cols != null ? cols[i] : fkey.Cols[0].From);
Debug.Assert(col >= 0);
string colName = fkey.From.Cols[col].Name; // Name of column in child table
Expr right = Expr.Expr(ctx, TK.ID, colName); // Column ref to child table
Expr eq = Expr.PExpr(parse, TK.EQ, left, right, 0); // Expression (pLeft = pRight)
where_ = Expr.And(ctx, where_, eq);
}
// If the child table is the same as the parent table, and this scan is taking place as part of a DELETE operation (operation D.2), omit the
// row being deleted from the scan by adding ($rowid != rowid) to the WHERE clause, where $rowid is the rowid of the row being deleted.
if (table == fkey.From && incr > 0)
{
Expr left = Expr.Expr(ctx, TK.REGISTER, null); // Value from parent table row
Expr right = Expr.Expr(ctx, TK.COLUMN, null); // Column ref to child table
if (left != null && right != null)
{
left.TableId = regDataId;
left.Aff = AFF.INTEGER;
right.TableId = src.Ids[0].Cursor;
right.ColumnId = -1;
}
Expr eq = Expr.PExpr(parse, TK.NE, left, right, 0); // Expression (pLeft = pRight)
where_ = Expr.And(ctx, where_, eq);
}
// Resolve the references in the WHERE clause.
NameContext nameContext; // Context used to resolve WHERE clause
nameContext = new NameContext(); // memset( &sNameContext, 0, sizeof( NameContext ) );
nameContext.SrcList = src;
nameContext.Parse = parse;
ResolveExprNames(nameContext, ref where_);
// Create VDBE to loop through the entries in src that match the WHERE clause. If the constraint is not deferred, throw an exception for
// each row found. Otherwise, for deferred constraints, increment the deferred constraint counter by incr for each row selected.
ExprList dummy = null;
WhereInfo whereInfo = Where.Begin(parse, src, where_, ref dummy, 0); // Context used by sqlite3WhereXXX()
if (incr > 0 && !fkey.IsDeferred)
E.Parse_Toplevel(parse).MayAbort = true;
v.AddOp2(OP.FkCounter, fkey.IsDeferred, incr);
if (whereInfo != null)
Where.End(whereInfo);
// Clean up the WHERE clause constructed above.
Expr.Delete(ctx, ref where_);
if (fkIfZero != 0)
v.JumpHere(fkIfZero);
}
public static FKey FKReferences(Table table)
{
int nameLength = table.Name.Length;
return table.Schema.FKeyHash.Find(table.Name, nameLength, (FKey)null);
}
static void FKTriggerDelete(Context ctx, Trigger p)
{
if (p != null)
{
TriggerStep step = p.StepList;
Expr.Delete(ctx, ref step.Where);
Expr.ListDelete(ctx, ref step.ExprList);
Select.Delete(ctx, ref step.Select);
Expr.Delete(ctx, ref p.When);
C._tagfree(ctx, ref p);
}
}
public void FKDropTable(SrcList name, Table table)
{
Context ctx = Ctx;
if ((ctx.Flags & Context.FLAG.ForeignKeys) != 0 && !IsVirtual(table) && table.Select == null)
{
int skipId = 0;
Vdbe v = GetVdbe();
Debug.Assert(v != null); // VDBE has already been allocated
if (FKReferences(table) == null)
{
// Search for a deferred foreign key constraint for which this table is the child table. If one cannot be found, return without
// generating any VDBE code. If one can be found, then jump over the entire DELETE if there are no outstanding deferred constraints
// when this statement is run.
FKey p;
for (p = table.FKeys; p != null; p = p.NextFrom)
if (p.IsDeferred) break;
if (p == null) return;
skipId = v.MakeLabel();
v.AddOp2(OP.FkIfZero, 1, skipId);
}
DisableTriggers = true;
DeleteFrom(this, SrcListDup(ctx, name, 0), null);
DisableTriggers = false;
// If the DELETE has generated immediate foreign key constraint violations, halt the VDBE and return an error at this point, before
// any modifications to the schema are made. This is because statement transactions are not able to rollback schema changes.
v.AddOp2(OP.FkIfZero, 0, v.CurrentAddr() + 2);
HaltConstraint(this, OE.Abort, "foreign key constraint failed", Vdbe.P4T.STATIC);
if (skipId != 0)
v.ResolveLabel(skipId);
}
}
public void FKCheck(Table table, int regOld, int regNew)
{
Context ctx = Ctx; // Database handle
bool isIgnoreErrors = DisableTriggers;
// Exactly one of regOld and regNew should be non-zero.
Debug.Assert((regOld == 0) != (regNew == 0));
// If foreign-keys are disabled, this function is a no-op.
if ((ctx.Flags & Context.FLAG.ForeignKeys) == 0) return;
int db = SchemaToIndex(ctx, table.Schema); // Index of database containing pTab
string dbName = ctx.DBs[db].Name; // Name of database containing pTab
// Loop through all the foreign key constraints for which pTab is the child table (the table that the foreign key definition is part of).
FKey fkey; // Used to iterate through FKs
for (fkey = table.FKeys; fkey != null; fkey = fkey.NextFrom)
{
bool isIgnore = false;
// Find the parent table of this foreign key. Also find a unique index on the parent key columns in the parent table. If either of these
// schema items cannot be located, set an error in pParse and return early.
Table to = (DisableTriggers ? FindTable(ctx, fkey.To, dbName) : LocateTable(false, fkey.To, dbName)); // Parent table of foreign key pFKey
Index index = null; // Index on key columns in pTo
int[] frees = null;
if (to == null || LocateFkeyIndex(to, fkey, out index, out frees) != 0)
{
Debug.Assert(!isIgnoreErrors || (regOld != 0 && regNew == 0));
if (!isIgnoreErrors || ctx.MallocFailed) return;
if (to == null)
{
// If isIgnoreErrors is true, then a table is being dropped. In this se SQLite runs a "DELETE FROM xxx" on the table being dropped
// before actually dropping it in order to check FK constraints. If the parent table of an FK constraint on the current table is
// missing, behave as if it is empty. i.e. decrement the FK counter for each row of the current table with non-NULL keys.
Vdbe v = GetVdbe();
int jumpId = v.CurrentAddr() + fkey.Cols.length + 1;
for (int i = 0; i < fkey.Cols.length; i++)
{
int regId = fkey.Cols[i].From + regOld + 1;
v.AddOp2(OP.IsNull, regId, jumpId);
}
v.AddOp2(OP.FkCounter, fkey.IsDeferred, -1);
}
continue;
}
Debug.Assert(fkey.Cols.length == 1 || (frees != null && index != null));
int[] cols;
if (frees != null)
cols = frees;
else
{
int col = fkey.Cols[0].From;
cols = new int[1];
cols[0] = col;
}
for (int i = 0; i < fkey.Cols.length; i++)
{
if (cols[i] == table.PKey)
cols[i] = -1;
#if !OMIT_AUTHORIZATION
// Request permission to read the parent key columns. If the authorization callback returns SQLITE_IGNORE, behave as if any
// values read from the parent table are NULL.
if (ctx.Auth != null)
{
string colName = to.Cols[index != null ? index.Columns[i] : to.PKey].Name;
ARC rcauth = Auth.ReadColumn(this, to.Name, colName, db);
isIgnore = (rcauth == ARC.IGNORE);
}
#endif
}
// Take a shared-cache advisory read-lock on the parent table. Allocate a cursor to use to search the unique index on the parent key columns
// in the parent table.
TableLock(db, to.Id, false, to.Name);
Tabs++;
if (regOld != 0) // A row is being removed from the child table. Search for the parent. If the parent does not exist, removing the child row resolves an outstanding foreign key constraint violation.
FKLookupParent(this, db, to, index, fkey, cols, regOld, -1, isIgnore);
if (regNew != 0) // A row is being added to the child table. If a parent row cannot be found, adding the child row has violated the FK constraint.
FKLookupParent(this, db, to, index, fkey, cols, regNew, +1, isIgnore);
C._tagfree(ctx, ref frees);
}
// Loop through all the foreign key constraints that refer to this table
for (fkey = FKReferences(table); fkey != null; fkey = fkey.NextTo)
{
if (!fkey.IsDeferred && Toplevel == null && !IsMultiWrite)
{
Debug.Assert(regOld == 0 && regNew != 0);
// Inserting a single row into a parent table cannot cause an immediate foreign key violation. So do nothing in this case.
continue;
}
Index index = null; // Foreign key index for pFKey
int[] cols = null;
if (LocateFkeyIndex(table, fkey, out index, out cols) != 0)
{
if (isIgnoreErrors || ctx.MallocFailed) return;
continue;
}
Debug.Assert(cols != null || fkey.Cols.length == 1);
// Create a SrcList structure containing a single table (the table the foreign key that refers to this table is attached to). This
// is required for the sqlite3WhereXXX() interface.
SrcList src = SrcListAppend(ctx, null, null, null);
if (src != null)
{
SrcList.SrcListItem item = src.Ids[0];
item.Table = fkey.From;
item.Name = fkey.From.Name;
item.Table.Refs++;
item.Cursor = Tabs++;
if (regNew != 0)
FKScanChildren(this, src, table, index, fkey, cols, regNew, -1);
if (regOld != 0)
{
// If there is a RESTRICT action configured for the current operation on the parent table of this FK, then throw an exception
// immediately if the FK constraint is violated, even if this is a deferred trigger. That's what RESTRICT means. To defer checking
// the constraint, the FK should specify NO ACTION (represented using OE_None). NO ACTION is the default.
FKScanChildren(this, src, table, index, fkey, cols, regOld, 1);
}
item.Name = null;
SrcListDelete(ctx, ref src);
}
C._tagfree(ctx, ref cols);
}
}
static uint COLUMN_MASK(int x) { return ((x) > 31) ? 0xffffffff : ((uint)1 << (x)); } //: #define COLUMN_MASK(x) (((x)>31) ? 0xffffffff : ((uint32)1<<(x)))
public uint FKOldmask(Table table)
{
uint mask = 0;
if ((Ctx.Flags & Context.FLAG.ForeignKeys) != 0)
{
FKey p;
int i;
for (p = table.FKeys; p != null; p = p.NextFrom)
for (i = 0; i < p.Cols.length; i++) mask |= COLUMN_MASK(p.Cols[i].From);
for (p = FKReferences(table); p != null; p = p.NextTo)
{
Index index;
int[] dummy;
LocateFkeyIndex(table, p, out index, out dummy);
if (index != null)
for (i = 0; i < index.Columns.length; i++) mask |= COLUMN_MASK(index.Columns[i]);
}
}
return mask;
}
public bool FKRequired(Table table, int[] changes, int chngRowid)
{
if ((Ctx.Flags & Context.FLAG.ForeignKeys) != 0)
{
if (changes == null) // A DELETE operation. Foreign key processing is required if the table in question is either the child or parent table for any foreign key constraint.
return (FKReferences(table) != null || table.FKeys != null);
else // This is an UPDATE. Foreign key processing is only required if operation modifies one or more child or parent key columns.
{
int i;
FKey p;
// Check if any child key columns are being modified.
for (p = table.FKeys; p != null; p = p.NextFrom)
{
for (i = 0; i < p.Cols.length; i++)
{
int childKeyId = p.Cols[i].From;
if (changes[childKeyId] >= 0) return true;
if (childKeyId == table.PKey && chngRowid != 0) return true;
}
}
// Check if any parent key columns are being modified.
for (p = FKReferences(table); p != null; p = p.NextTo)
for (i = 0; i < p.Cols.length; i++)
{
string keyName = p.Cols[i].Col;
for (int key = 0; key < table.Cols.length; key++)
{
Column col = table.Cols[key];
if (!string.IsNullOrEmpty(keyName) ? string.Equals(col.Name, keyName, StringComparison.InvariantCultureIgnoreCase) : (col.ColFlags & COLFLAG.PRIMKEY) != 0)
{
if (changes[key] >= 0) return true;
if (key == table.PKey && chngRowid != 0) return true;
}
}
}
}
}
return false;
}
static Trigger FKActionTrigger(Parse parse, Table table, FKey fkey, ExprList changes)
{
Context ctx = parse.Ctx; // Database handle
int actionId = (changes != null ? 1 : 0); // 1 for UPDATE, 0 for DELETE
OE action = fkey.Actions[actionId]; // One of OE_None, OE_Cascade etc.
Trigger trigger = fkey.Triggers[actionId]; // Trigger definition to return
if (action != OE.None && trigger == null)
{
Index index = null; // Parent key index for this FK
int[] cols = null; // child table cols . parent key cols
if (LocateFkeyIndex(parse, table, fkey, out index, out cols) != 0) return null;
Debug.Assert(cols != null || fkey.Cols.length == 1);
Expr where_ = null; // WHERE clause of trigger step
Expr when = null; // WHEN clause for the trigger
ExprList list = null; // Changes list if ON UPDATE CASCADE
for (int i = 0; i < fkey.Cols.length; i++)
{
Token oldToken = new Token("old", 3); // Literal "old" token
Token newToken = new Token("new", 3); // Literal "new" token
int fromColId = (cols != null ? cols[i] : fkey.Cols[0].From); // Idx of column in child table
Debug.Assert(fromColId >= 0);
Token fromCol = new Token(); // Name of column in child table
Token toCol = new Token(); // Name of column in parent table
toCol.data = (index != null ? table.Cols[index.Columns[i]].Name : "oid");
fromCol.data = fkey.From.Cols[fromColId].Name;
toCol.length = (uint)toCol.data.Length;
fromCol.length = (uint)fromCol.data.Length;
// Create the expression "OLD.zToCol = zFromCol". It is important that the "OLD.zToCol" term is on the LHS of the = operator, so
// that the affinity and collation sequence associated with the parent table are used for the comparison.
Expr eq = Expr.PExpr(parse, TK.EQ,
Expr.PExpr(parse, TK.DOT,
Expr.PExpr(parse, TK.ID, null, null, oldToken),
Expr.PExpr(parse, TK.ID, null, null, toCol)
, 0),
Expr.PExpr(parse, TK.ID, null, null, fromCol)
, 0); // tFromCol = OLD.tToCol
where_ = Expr.And(ctx, where_, eq);
// For ON UPDATE, construct the next term of the WHEN clause. The final WHEN clause will be like this:
//
// WHEN NOT(old.col1 IS new.col1 AND ... AND old.colN IS new.colN)
if (changes != null)
{
eq = Expr.PExpr(parse, TK.IS,
Expr.PExpr(parse, TK.DOT,
Expr.PExpr(parse, TK.ID, null, null, oldToken),
Expr.PExpr(parse, TK.ID, null, null, toCol),
0),
Expr.PExpr(parse, TK.DOT,
Expr.PExpr(parse, TK.ID, null, null, newToken),
Expr.PExpr(parse, TK.ID, null, null, toCol),
0),
0);
when = Expr.And(ctx, when, eq);
}
if (action != OE.Restrict && (action != OE.Cascade || changes != null))
{
Expr newExpr;
if (action == OE.Cascade)
newExpr = Expr.PExpr(parse, TK.DOT,
Expr.PExpr(parse, TK.ID, null, null, newToken),
Expr.PExpr(parse, TK.ID, null, null, toCol)
, 0);
else if (action == OE.SetDflt)
{
Expr dfltExpr = fkey.From.Cols[fromColId].Dflt;
if (dfltExpr != null)
newExpr = Expr.Dup(ctx, dfltExpr, 0);
else
newExpr = Expr.PExpr(parse, TK.NULL, 0, 0, 0);
}
else
newExpr = Expr.PExpr(parse, TK.NULL, 0, 0, 0);
list = Expr.ListAppend(parse, list, newExpr);
Expr.ListSetName(parse, list, fromCol, 0);
}
}
C._tagfree(ctx, ref cols);
string fromName = fkey.From.Name; // Name of child table
int fromNameLength = fromName.Length; // Length in bytes of zFrom
Select select = null; // If RESTRICT, "SELECT RAISE(...)"
if (action == OE.Restrict)
{
Token from = new Token();
from.data = fromName;
from.length = fromNameLength;
Expr raise = Expr.Expr(ctx, TK.RAISE, "foreign key constraint failed");
if (raise != null)
raise.Affinity = OE.Abort;
select = Select.New(parse,
Expr.ListAppend(parse, 0, raise),
SrcListAppend(ctx, 0, from, null),
where_,
null, null, null, 0, null, null);
where_ = null;
}
// Disable lookaside memory allocation
bool enableLookaside = ctx.Lookaside.Enabled; // Copy of ctx->lookaside.bEnabled
ctx.Lookaside.Enabled = false;
trigger = new Trigger();
//: trigger = (Trigger *)_tagalloc(ctx,
//: sizeof(Trigger) + // Trigger
//: sizeof(TriggerStep) + // Single step in trigger program
//: fromNameLength + 1 // Space for pStep->target.z
//: , true);
TriggerStep step = null; // First (only) step of trigger program
if (trigger != null)
{
step = trigger.StepList = new TriggerStep(); //: (TriggerStep)trigger[1];
step.Target.data = fromName; //: (char *)&step[1];
step.Target.length = fromNameLength;
//: _memcpy((const char *)step->Target.data, fromName, fromNameLength);
step.Where = Expr.Dup(ctx, where_, EXPRDUP_REDUCE);
step.ExprList = Expr.ListDup(ctx, list, EXPRDUP_REDUCE);
step.Select = Select.Dup(ctx, select, EXPRDUP_REDUCE);
if (when != null)
{
when = Expr.PExpr(parse, TK.NOT, when, 0, 0);
trigger.When = Expr.Dup(ctx, when, EXPRDUP_REDUCE);
}
}
// Re-enable the lookaside buffer, if it was disabled earlier.
ctx.Lookaside.Enabled = enableLookaside;
Expr.Delete(ctx, ref where_);
Expr.Delete(ctx, ref when);
Expr.ListDelete(ctx, ref list);
Select.Delete(ctx, ref select);
if (ctx.MallocFailed)
{
FKTriggerDelete(ctx, trigger);
return null;
}
switch (action)
{
case OE.Restrict:
step.OP = TK.SELECT;
break;
case OE.Cascade:
if (changes == null)
{
step.OP = TK.DELETE;
break;
}
goto default;
default:
step.OP = TK.UPDATE;
break;
}
step.Trigger = trigger;
trigger.Schema = table.Schema;
trigger.TabSchema = table.Schema;
fkey.Triggers[actionId] = trigger;
trigger.OP = (TK)(changes != null ? TK.UPDATE : TK.DELETE);
}
return trigger;
}
public void FKActions(Table table, ExprList changes, int regOld)
{
// If foreign-key support is enabled, iterate through all FKs that refer to table table. If there is an action associated with the FK
// for this operation (either update or delete), invoke the associated trigger sub-program.
if ((Ctx.Flags & Context.FLAG.ForeignKeys) != 0)
for (FKey fkey = FKReferences(table); fkey != null; fkey = fkey.NextTo)
{
Trigger action = fkActionTrigger(table, fkey, changes);
if (action != null)
CodeRowTriggerDirect(this, action, table, regOld, OE.Abort, 0);
}
}
#endif
public static void FKDelete(Context ctx, Table table)
{
Debug.Assert(ctx == null || Btree.SchemaMutexHeld(ctx, 0, table.Schema));
FKey next; // Copy of pFKey.pNextFrom
for (FKey fkey = table.FKeys; fkey != null; fkey = next)
{
// Remove the FK from the fkeyHash hash table.
//: if (!ctx || ctx->BytesFreed == 0)
{
if (fkey.PrevTo != null)
fkey.PrevTo.NextTo = fkey.NextTo;
else
{
FKey p = fkey.NextTo;
string z = (p != null ? fkey.NextTo.To : fkey.To);
table.Schema.FKeyHash.Insert(z, z.Length, p);
}
if (fkey.NextTo != null)
fkey.NextTo.PrevTo = fkey.PrevTo;
}
// EV: R-30323-21917 Each foreign key constraint in SQLite is classified as either immediate or deferred.
Debug.Assert(fkey.IsDeferred == false || fkey.IsDeferred == true);
// Delete any triggers created to implement actions for this FK.
#if !OMIT_TRIGGER
FKTriggerDelete(ctx, fkey.Triggers[0]);
FKTriggerDelete(ctx, fkey.Triggers[1]);
#endif
next = fkey.NextFrom;
C._tagfree(ctx, ref fkey);
}
}
}
}
#endif | 52.056995 | 215 | 0.479795 | [
"MIT"
] | BclEx/GpuEx | src/System.Data.net/Core+Vdbe/Parse+FKey.cs | 40,188 | C# |
namespace Rehawk.Lifecycle
{
public interface ILateTickable
{
void LateTick();
}
} | 14.714286 | 34 | 0.621359 | [
"MIT"
] | rehavvk/lifecycle | Runtime/Interfaces/ILateTickable.cs | 105 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace JobXML
{
public partial class JOBFile
{
[XmlAttributeAttribute("schemaLocation", Namespace = "http://www.w3.org/2001/XMLSchema-instance")]
public string xsiSchemaLocation = "http://www.trimble.com/schema/JobXML/5_3 http://www.trimble.com/schema/JobXML/5_3/JobXMLSchema-5.3.xsd";
public JOBFile()
{
versionField = 5.3;
productField = "JobXML.cs";
productVersionField = "1.0";
timeStampField = DateTime.Now;
}
}
}
| 27.333333 | 147 | 0.635671 | [
"MIT"
] | KubaSzostak/JobXML | JobXML.partial.cs | 658 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Timers;
using Microsoft.FlightSimulator.SimConnect;
using Timer = System.Timers.Timer;
namespace WebMap
{
public class ServerOnly
{
private static WebServer server = null;
private static string port = "8001";
private static SimConnect sim = new SimConnect();
private static Timer timer = new Timer(1000);
public static void Main()
{
timer.Elapsed += OnTimer;
timer.Start();
Thread.Sleep(-1);
}
private static void OnTimer(object sender, ElapsedEventArgs e)
{
timer.Stop();
Debug.WriteLine("Connecting to Sim...");
if (sim.IsConnected)
{
timer.Stop();
Debug.WriteLine("Starting Web Service...");
server = new WebServer(ReceiveCallback, "http://+:" + port + "/");
server.Run();
return;
}
sim.Connect();
}
private static string ReceiveCallback(HttpListenerRequest request)
{
// System.Diagnostics.Debug.WriteLine("{0}: {1}", request.UserHostAddress, request.RawUrl);
string rawRequest = request.RawUrl;
string[] parse = rawRequest.Split("?".ToCharArray());
string command = parse[0];
string parmstr = parse.Length > 1 ? parse[1] : null;
switch (command)
{
case "/get?position":
{
Debug.WriteLine($"Request: {command} params: {parmstr}");
return string.Format("{{ \"type\": \"Point\", \"coordinates\": [{0}, {1}] }}", sim.userPos.Latitude, sim.userPos.Longitude);
}
case "/api/chartDataFPL":
{
return "{\"edition\":2011,\"maxzoom\":21,\"validfrom\":\"2020-10-08 09:01:00\",\"rasterMaxFrames\":11,\"scale\":10,\"subtype\":\"Sectional\",\"lon\":-71.1036,\"rasterKey\":\"POdCKqsDBmp3FdJYbY7ZeHdV7Nk\",\"srs\":{\"x_0\":-20037508.3428,\"xr\":76.43702829,\"y_0\":20037508.3428,\"proj\":\"sm\",\"lat_0\":0,\"lat_1\":0,\"lon_0\":0,\"yr\":-76.43702829,\"lat_2\":0},\"height\":524288,\"expires\":18,\"name\":\"World VFR\",\"prefs\":{\"windZulu\":1602979200,\"windMB\":\"300\"},\"tileservers\":\"https://t.skyvector.com/V7pMh4zRihf1nr61,https://t.skyvector.com/V7pMh4zRihf1nr61\",\"userpref\":{},\"validto\":\"2020-11-05 09:01:00\",\"width\":524288,\"lat\":42.5335,\"currTime\":1602985399,\"alaska\":0,\"rasterMaxSize\":1200,\"protoid\":301,\"type\":\"vfr\"}";
}
default:
{
string filename = "../../scripts/" + command.Replace("../","");
if (!File.Exists(filename))
return string.Empty;
return File.ReadAllText(filename);
}
}
}
}
}
| 40.844156 | 775 | 0.535771 | [
"MIT"
] | MoMadenU/msfs2020-skyvector | FSWebService/ServerOnly.cs | 3,147 | C# |
using Microsoft.Xrm.Sdk;
using System;
using System.Collections.Generic;
using Xunit;
#if FAKE_XRM_EASY_2015 || FAKE_XRM_EASY_2016 || FAKE_XRM_EASY_365 || FAKE_XRM_EASY_9
using Xunit.Sdk;
#endif
using System.Linq;
using Microsoft.Crm.Sdk.Messages;
using Crm;
using System.ServiceModel;
namespace FakeXrmEasy.Tests.FakeContextTests.AddListMembersListRequestTests
{
public class Tests
{
public enum ListCreatedFromCode
{
Account = 1,
Contact = 2,
Lead = 4
}
[Fact]
public void When_a_member_is_added_to_a_non_existing_list_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
Guid.NewGuid()
},
ListId = Guid.NewGuid()
};
// Execute the request.
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_a_request_is_called_with_an_empty_listid_parameter_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
Guid.NewGuid()
},
ListId = Guid.Empty
};
// Execute the request.
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_a_request_is_called_with_an_empty_memberid_parameter_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
Guid.Empty
},
ListId = Guid.NewGuid()
};
// Execute the request.
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_a_member_is_added_to_an_existing_list_without_membercode_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List
{
Id = Guid.NewGuid(),
ListName = "Some list"
};
ctx.Initialize(new List<Entity>
{
list
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
Guid.NewGuid()
},
ListId = list.ToEntityReference().Id
};
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_a_non_existing_member_is_added_to_an_existing_list_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List
{
Id = Guid.NewGuid(),
ListName = "Some list",
CreatedFromCode = new OptionSetValue((int)ListCreatedFromCode.Account)
};
ctx.Initialize(new List<Entity>
{
list
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
Guid.NewGuid()
},
ListId = list.ToEntityReference().Id
};
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_different_membertypes_are_added_to_an_existing_list_exception_is_thrown()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List
{
Id = Guid.NewGuid(),
ListName = "Some list",
CreatedFromCode = new OptionSetValue((int)ListCreatedFromCode.Account)
};
var account = new Account
{
Id = Guid.NewGuid()
};
var contact = new Contact
{
Id = Guid.NewGuid()
};
ctx.Initialize(new List<Entity>
{
list,
account,
contact
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
account.Id,
contact.Id
},
ListId = list.ToEntityReference().Id
};
Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Execute(addListMembersListRequest));
}
[Fact]
public void When_a_member_is_added_to_an_existing_list_member_is_added_successfully_account()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List
{
Id = Guid.NewGuid(),
ListName = "Some list",
CreatedFromCode = new OptionSetValue((int)ListCreatedFromCode.Account)
};
var account = new Account()
{
Id = Guid.NewGuid()
};
ctx.Initialize(new List<Entity>
{
list,
account
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
account.Id
},
ListId = list.ToEntityReference().Id
};
service.Execute(addListMembersListRequest);
using (var context = new XrmServiceContext(service))
{
var member = (from lm in context.CreateQuery<ListMember>()
join l in context.CreateQuery<List>() on lm.ListId.Id equals l.ListId.Value
join a in context.CreateQuery<Account>() on lm.EntityId.Id equals a.AccountId.Value
where lm.EntityId.Id == account.Id
where lm.ListId.Id == list.Id
select lm
).FirstOrDefault();
Assert.NotNull(member);
}
}
[Fact]
public void When_a_member_is_added_to_an_existing_list_member_is_added_successfully_contact()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List
{
Id = Guid.NewGuid(),
ListName = "Some list",
CreatedFromCode = new OptionSetValue((int)ListCreatedFromCode.Contact)
};
var contact = new Contact()
{
Id = Guid.NewGuid()
};
ctx.Initialize(new List<Entity>
{
list,
contact
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
contact.Id
},
ListId = list.ToEntityReference().Id
};
service.Execute(addListMembersListRequest);
using (var context = new XrmServiceContext(service))
{
var member = (from lm in context.CreateQuery<ListMember>()
join l in context.CreateQuery<Crm.List>() on lm.ListId.Id equals l.ListId.Value
join c in context.CreateQuery<Contact>() on lm.EntityId.Id equals c.ContactId.Value
where lm.EntityId.Id == contact.Id
where lm.ListId.Id == list.Id
select lm
).FirstOrDefault();
Assert.NotNull(member);
}
}
[Fact]
public void When_a_member_is_added_to_an_existing_list_member_is_added_successfully_lead()
{
var ctx = new XrmFakedContext();
var service = ctx.GetOrganizationService();
var list = new List()
{
Id = Guid.NewGuid(),
ListName = "Some list",
CreatedFromCode = new OptionSetValue((int)ListCreatedFromCode.Lead)
};
var lead = new Lead()
{
Id = Guid.NewGuid()
};
ctx.Initialize(new List<Entity>
{
list,
lead
});
AddListMembersListRequest addListMembersListRequest = new AddListMembersListRequest
{
MemberIds = new[]
{
lead.Id
},
ListId = list.ToEntityReference().Id
};
service.Execute(addListMembersListRequest);
using (var context = new XrmServiceContext(service))
{
var member = (from lm in context.CreateQuery<ListMember>()
join l in context.CreateQuery<Crm.List>() on lm.ListId.Id equals l.ListId.Value
join le in context.CreateQuery<Lead>() on lm.EntityId.Id equals le.LeadId.Value
where lm.EntityId.Id == lead.Id
where lm.ListId.Id == list.Id
select lm
).FirstOrDefault();
Assert.NotNull(member);
}
}
}
} | 32.237082 | 118 | 0.506506 | [
"MIT"
] | AK-RenegadeX/fake-xrm-easy | FakeXrmEasy.Tests.Shared/FakeContextTests/AddListMembersListRequestTests/Tests.cs | 10,608 | C# |
using Xunit;
namespace Soltys.VirtualMachine.Test.Runtime
{
public class LoadLoaderTests
{
[Fact]
public void LoadLibrary_LoadItself()
{
var library = LibraryLoader.LoadLibrary("Soltys.VirtualMachine.Test");
Assert.NotNull(library.Functions);
}
[Fact]
public void LoadLibrary_UseAddFunction()
{
var library = LibraryLoader.LoadLibrary("Soltys.VirtualMachine.Test");
Assert.Contains("add", library.Functions);
var result = library.Functions["add"].Execute(6, 7);
Assert.Equal(13, (int)result);
}
}
}
| 25.038462 | 82 | 0.597542 | [
"MIT"
] | soltys/Melange | src/VirtualMachine/Soltys.VirtualMachine.Test/Runtime/LoadLoaderTests.cs | 651 | C# |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using DataAccessLayer.DataAccessModel;
using DataAccessLayer.Models;
namespace JournalForSchool
{
public class TheClassesRepository : IRepository<TheClasses>
{
private readonly DataAccessClasses dataAccess;
public TheClassesRepository(AccessOrchestrator orchestrator = null)
{
if (orchestrator == null)
{
throw new ArgumentException();
}
dataAccess = orchestrator.GetModelAccess<TheClasses>() as DataAccessClasses;
}
public IEnumerable<TheClasses> GetAll()
{
return dataAccess.GetAll();
}
public TheClasses Get(int id)
{
return dataAccess.Get(id);
}
public void Create(TheClasses theClass)
{
dataAccess.Create(theClass);
}
public void Update(TheClasses theClass)
{
dataAccess.Update(theClass);
}
public void Delete(int id)
{
dataAccess.Delete(id);
}
public List<int> GetTheDisctinctClassesNames()
{
return dataAccess.GetDistinctClassesNames();
}
public List<string> GetTheClassesLetters(int TheClass)
{
return dataAccess.GetClassesLetters(TheClass);
}
public int GetTheClassByNumber(int TheClass, string letter)
{
var model = new TheClasses()
{
TheClass = TheClass,
ClassLetter = letter
};
return dataAccess.GetClassByNumber(model).Id;
}
public TheClasses GetTheClassById(int class_id, MainWindow mainWindow = null)
{
return dataAccess.Get(class_id);
}
public TheClasses GetTheClassByFullName(string full_class_name)
{
TheClasses needClass = null;
foreach (var item in GetAll())
{
if (item.TheClass + " " + item.ClassLetter == full_class_name)
needClass = item;
}
return needClass;
}
}
}
| 25.906977 | 88 | 0.564632 | [
"MIT"
] | tsudd/school-journal | JournalForSchool/Database/TheClassesRepository.cs | 2,230 | C# |
using TDUModdingLibrary.support.constants;
namespace TDUModdingLibrary.support.patcher.vars
{
/// <summary>
/// Variable referring to TDU's high-res gauges BNK folder
/// </summary>
class BnkGaugesHighPathV:PatchVariable
{
public override string Name
{
get { return VariableName.bnkGaugesHighPath.ToString(); }
}
public override string Description
{
get { return @"Folder where high-res gauges BNK files are stored (...\Test Drive Unlimited\Euro\Bnk\FrontEnd\HiRes\Gauges)"; }
}
internal override string GetValue()
{
return string.Concat(Tools.TduPath, LibraryConstants.FOLDER_VEHICLES_GAUGES_HIGH);
}
}
} | 30.6 | 139 | 0.620915 | [
"MIT"
] | 5l1v3r1/tdumt | tdumt-lib/support/patcher/vars/BnkGaugesHighPathV.cs | 767 | C# |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace TimeControl
{
internal class SharedIMGUI
{
private List<float> throttleRateButtons = new List<float>() { 0, 50, 100 };
public SharedIMGUI()
{
}
bool throttleToggle = false;
float throttleSet = 0f;
internal void GUIThrottleControl()
{
throttleToggle = GUILayout.Toggle( throttleToggle, "Throttle Control: " + Mathf.Round( throttleSet * 100 ) + "%" );
Action<float> updateThrottle = delegate (float f)
{
throttleSet = f / 100.0f;
};
if (FlightInputHandler.state != null && throttleToggle && FlightInputHandler.state.mainThrottle != throttleSet)
{
FlightInputHandler.state.mainThrottle = throttleSet;
}
// Force slider to select 1 decimal place values between min and max
Func<float, float> modifyFieldThrottle = delegate (float f)
{
return (Mathf.Floor( f ));
};
IMGUIExtensions.floatTextBoxSliderPlusMinusWithButtonList( null, (throttleSet * 100f), 0.0f, 100.0f, 1f, updateThrottle, throttleRateButtons, modifyFieldThrottle );
}
}
}
/*
All code in this file Copyright(c) 2016 Nate West
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
| 36.333333 | 176 | 0.688073 | [
"MIT"
] | net-lisias-kspu/TimeControl | TimeControl/IMGUI/SharedIMGUI.cs | 2,400 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour
{
public GameEvent onOtherItemChosen;
public SnHGameConstants snHGameConstants;
public Text CollectTP;
public Image otherImage;
public Text CollectOther;
public List<Sprite> itemSprites;
private void Start() {
// set the Collect values
// select random item for game constant
int otheritem = Random.Range(0, 3); // game constant have to follow pickup index
snHGameConstants.OtherIndex = otheritem + 3;
onOtherItemChosen.Fire();
int TPCollected = Random.Range(snHGameConstants.collectTotal / 2 - 2, snHGameConstants.collectTotal / 2 + 3);
int remaining = snHGameConstants.collectTotal - TPCollected;
snHGameConstants.CollectTP = TPCollected;
snHGameConstants.CollectOther = remaining;
otherImage.sprite = itemSprites[snHGameConstants.OtherIndex];
CollectTP.text = formatString(snHGameConstants.CollectTP);
CollectOther.text = formatString(snHGameConstants.CollectOther);
}
private string formatString(int score)
{
if (score.ToString().Length == 1)
{
return "0" + score.ToString();
}
else
{
return score.ToString();
}
}
}
| 27.72 | 117 | 0.670274 | [
"MIT"
] | xmliszt/CB2.0 | CB2.0/Assets/Scripts/Snatch&Hoard/ScoreManager.cs | 1,386 | C# |
using Microsoft.VisualBasic;
using System;
/// <summary>
/// Description of form/class/etc.
/// </summary>
public partial class formItemManagement
{
System.Windows.Forms.Timer timerUpdate = new System.Windows.Forms.Timer();
public formItemManagement()
{
// The Me.InitializeComponent call is required for Windows Forms designer support.
this.InitializeComponent();
}
internal void formItemManagement_Load(object sender, EventArgs e)
{
timerUpdate.Tick += timerUpdate_Tick;
//TODO:Make a minium Interval value based on pc time to process random data equal to a medium big Savegame-size.
timerUpdate.Interval = 5000;
timerUpdate.Start();
//groupboxStorage
labelStorageTotalSection.Text = "\\ " + gamecache.currentCharacterStorage.arraySection.GetUpperBound(0);
updownStorageSection.Maximum = gamecache.currentCharacterStorage.arraySection.GetUpperBound(0);
if (gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0) != -1) {
labelStorageTotalArticle.Text = "\\ " + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
updownStorageArticle.Maximum = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
textboxStoragePhItem.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Path + (char)92 + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].File);
textboxStorageName.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Item.Name;
textboxStorageQuantity.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Quantity);
textboxStorageLastSell.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastSell);
textboxStorageLastBuy.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastBuy);
}
//groupboxStore
labelStoreTotalLevel.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel.GetUpperBound(0);
updownStoreLevel.Maximum = gamecache.currentCharacterStore.arrayLevel.GetUpperBound(0);
labelStoreTotalShelf.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
updownStoreShelf.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
if (gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0) != -1) {
labelStoreTotalBin.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
updownStoreBin.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
textboxStorePhItem.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._Path + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._File;
textboxStoreName.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article_Data.Item.Name;
textboxStoreQuantity.Text = Convert.ToString((gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Quantity));
updownStorePrice.Value = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Price;
}
}
private void timerUpdate_Tick(object sender, EventArgs e)
{
//groupboxStorage
labelStorageTotalSection.Text = "\\ " + gamecache.currentCharacterStorage.arraySection.GetUpperBound(0);
updownStorageSection.Maximum = gamecache.currentCharacterStorage.arraySection.GetUpperBound(0);
if (gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0) != -1) {
labelStorageTotalArticle.Text = "\\ " + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
updownStorageArticle.Maximum = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
textboxStoragePhItem.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Path + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].File;
textboxStorageName.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Item.Name;
textboxStorageQuantity.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Quantity);
textboxStorageLastSell.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastSell);
textboxStorageLastBuy.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastBuy);
}
//groupboxStore
labelStoreTotalLevel.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel.GetUpperBound(0);
updownStoreLevel.Maximum = gamecache.currentCharacterStore.arrayLevel.GetUpperBound(0);
labelStoreTotalShelf.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
updownStoreShelf.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
if (gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0) != -1) {
labelStoreTotalBin.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
updownStoreBin.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
textboxStorePhItem.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._Path + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._File;
textboxStoreName.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article_Data.Item.Name;
textboxStoreQuantity.Text = Convert.ToString((gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Quantity));
updownStorePrice.Value = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Price;
}
}
public void updownStoreLevel_ValueChanged(object sender, EventArgs e)
{
labelStoreTotalShelf.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
updownStoreShelf.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf.GetUpperBound(0);
if (gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0) != -1) {
labelStoreTotalBin.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
updownStoreBin.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
textboxStorePhItem.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._Path + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._File;
textboxStoreName.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article_Data.Item.Name;
textboxStoreQuantity.Text = Convert.ToString((gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Quantity));
updownStorePrice.Value = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Price;
}
}
public void updownStoreShelf_ValueChanged(object sender, EventArgs e)
{
if (gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0) != -1) {
labelStoreTotalBin.Text = "\\ " + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
updownStoreBin.Maximum = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0);
textboxStorePhItem.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._Path + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._File;
textboxStoreName.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article_Data.Item.Name;
textboxStoreQuantity.Text = Convert.ToString((gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Quantity));
updownStorePrice.Value = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Price;
}
}
public void updownStoreBin_ValueChanged(object sender, EventArgs e)
{
if (gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin.GetUpperBound(0) != -1) {
textboxStorePhItem.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._Path + gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)]._File;
textboxStoreName.Text = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article_Data.Item.Name;
textboxStoreQuantity.Text = Convert.ToString((gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Quantity));
updownStorePrice.Value = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Price;
}
}
public void updownStorePrice_LostFocus(object sender, EventArgs e)
{
updownStorePrice.Value = Convert.ToInt32(updownStorePrice.Value);
int integerSection = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Section;
int integerArticle = gamecache.currentCharacterStore.arrayLevel[Convert.ToInt32(updownStoreLevel.Value)].arrayShelf[Convert.ToInt32(updownStoreShelf.Value)].arrayBin[Convert.ToInt32(updownStoreBin.Value)].Article;
gamecache.currentCharacterStorage.arraySection[integerSection].arrayArticle[integerArticle].LastSell = Convert.ToInt32(updownStorePrice.Value);
formItemManagement_Load(null, null);
}
public void updownStorageSection_ValueChanged(object sender, EventArgs e)
{
if (gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0) != -1) {
labelStorageTotalArticle.Text = "\\ " + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
updownStorageArticle.Maximum = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0);
textboxStoragePhItem.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Path + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].File;
textboxStorageName.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Item.Name;
textboxStorageQuantity.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Quantity);
textboxStorageLastSell.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastSell);
textboxStorageLastBuy.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastBuy);
}
}
public void updownStorageArticle_ValueChanged(object sender, EventArgs e)
{
if (gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle.GetUpperBound(0) != -1) {
textboxStoragePhItem.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Path + gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].File;
textboxStorageName.Text = gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Item.Name;
textboxStorageQuantity.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].Quantity);
textboxStorageLastSell.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastSell);
textboxStorageLastBuy.Text = Convert.ToString(gamecache.currentCharacterStorage.arraySection[Convert.ToInt32(updownStorageSection.Value)].arrayArticle[Convert.ToInt32(updownStorageArticle.Value)].LastBuy);
}
}
public void buttonToStore_Click(object sender, EventArgs e)
{
timerUpdate.Enabled = false;
int integerStoreLevel = Convert.ToInt32(updownStoreLevel.Value);
int integerStoreShelf = Convert.ToInt32(updownStoreShelf.Value);
int integerStoreBin = Convert.ToInt32(updownStoreBin.Value);
int integerStorageSection = Convert.ToInt32(updownStorageSection.Value);
int integerStorageArticle = Convert.ToInt32(updownStorageArticle.Value);
if (textboxStoreName.Text == textboxStorageName.Text) {
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Quantity += gamecache.currentCharacterStorage.arraySection[integerStorageSection].arrayArticle[integerStorageArticle].Quantity;
gamecache.currentCharacterStorage.arraySection[integerStorageSection].arrayArticle[integerStorageArticle].Quantity = 0;
} else {
if (Interaction.MsgBox("Replaces current item, else add new Bin to current Shelf." + (char)10 + "Use No for the first time when a player is new.", Microsoft.VisualBasic.MsgBoxStyle.YesNo, "Replace?").ToString() == "6") {
int integerSection = gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Section;
int integerArticle = gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Article;
gamecache.currentCharacterStorage.arraySection[integerSection].arrayArticle[integerArticle].Quantity += gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Quantity;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Storage = 0;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Section = integerStorageSection;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Article = integerStorageArticle;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Quantity = gamecache.currentCharacterStorage.arraySection[integerStorageSection].arrayArticle[integerStorageArticle].Quantity;
gamecache.currentCharacterStorage.arraySection[integerStorageSection].arrayArticle[integerStorageArticle].Quantity = 0;
} else {
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].BinAdd(new article(), Convert.ToInt32(textboxStorageQuantity.Text), 0);
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin.GetUpperBound(0)].Storage = 0;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin.GetUpperBound(0)].Section = integerStorageSection;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin.GetUpperBound(0)].Article = integerStorageArticle;
gamecache.currentCharacterStorage.arraySection[integerStorageSection].arrayArticle[integerStorageArticle].Quantity = 0;
}
}
timerUpdate.Enabled = true;
timerUpdate_Tick(null, null);
}
public void buttonToStorage_Click(object sender, EventArgs e)
{
int integerStoreLevel = Convert.ToInt32(updownStoreLevel.Value);
int integerStoreShelf = Convert.ToInt32(updownStoreShelf.Value);
int integerStoreBin = Convert.ToInt32(updownStoreBin.Value);
int integerStorageSection = Convert.ToInt32(updownStorageSection.Value);
int integerStorageArticle = Convert.ToInt32(updownStorageArticle.Value);
int integerSection = gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Section;
int integerArticle = gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Article;
gamecache.currentCharacterStorage.arraySection[integerSection].arrayArticle[integerArticle].Quantity += gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Quantity;
gamecache.currentCharacterStore.arrayLevel[integerStoreLevel].arrayShelf[integerStoreShelf].arrayBin[integerStoreBin].Quantity = 0;
timerUpdate_Tick(null, null);
}
public void buttonClose_Click(object sender, EventArgs e)
{
this.Hide();
}
} | 111.64486 | 420 | 0.799514 | [
"Apache-2.0"
] | GerardSchornagel/DST | Game/Forms/formItemManagement.cs | 23,892 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScoreRule : Rule
{
private bool scored = false;
public ScoreRule(AllRules ruleName, Sprite icon, float durationMod, List<Actions> appliedActions, List<AllRules> mutuallyExclusives, List<RuleObject> ruleRelatedObjects)
{
this.RuleName = ruleName;
this.RuleIcon = icon;
SetDurationMod(durationMod);
this.appliedActions = appliedActions;
this.mutuallyExclusives = mutuallyExclusives;
this.ruleRelatedObjects = ruleRelatedObjects;
}
public override bool CheckAction(Actions executedAction)
{
foreach (Actions action in appliedActions)
{
if (action == executedAction)
{
scored = true;
return scored;
}
}
return true;
}
public override bool IsRuleComplete()
{
return scored;
}
public override string ToString()
{
return "Score";
}
}
| 24.534884 | 173 | 0.629384 | [
"MIT"
] | Bobbsify/Blade-Dancer | Assets/Scripts/Rules/Rules/Positives/ScoreRule.cs | 1,057 | C# |
using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuizGame.Data.Models;
namespace QuizApp.Web.Areas.Identity.Pages.Account.Manage
{
public partial class IndexModel : PageModel
{
private readonly UserManager<QuizGameUser> _userManager;
private readonly SignInManager<QuizGameUser> _signInManager;
private readonly IEmailSender _emailSender;
public IndexModel(
UserManager<QuizGameUser> userManager,
SignInManager<QuizGameUser> signInManager,
IEmailSender emailSender)
{
_userManager = userManager;
_signInManager = signInManager;
_emailSender = emailSender;
}
public string Username { get; set; }
public bool IsEmailConfirmed { get; set; }
[TempData]
public string StatusMessage { get; set; }
[BindProperty]
public InputModel Input { get; set; }
public class InputModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[Phone]
[Display(Name = "Phone number")]
public string PhoneNumber { get; set; }
}
public async Task<IActionResult> OnGetAsync()
{
var user = await _userManager.GetUserAsync(User);
if (user == null)
{
return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
}
var userName = await _userManager.GetUserNameAsync(user);
var email = await _userManager.GetEmailAsync(user);
var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
Username = userName;
Input = new InputModel
{
Email = email,
PhoneNumber = phoneNumber
};
IsEmailConfirmed = await _userManager.IsEmailConfirmedAsync(user);
return Page();
}
public async Task<IActionResult> OnPostAsync()
{
if (!ModelState.IsValid)
{
return Page();
}
var user = await _userManager.GetUserAsync(User);
if (user == null)
{
return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
}
var email = await _userManager.GetEmailAsync(user);
if (Input.Email != email)
{
var setEmailResult = await _userManager.SetEmailAsync(user, Input.Email);
if (!setEmailResult.Succeeded)
{
var userId = await _userManager.GetUserIdAsync(user);
throw new InvalidOperationException($"Unexpected error occurred setting email for user with ID '{userId}'.");
}
}
var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
if (Input.PhoneNumber != phoneNumber)
{
var setPhoneResult = await _userManager.SetPhoneNumberAsync(user, Input.PhoneNumber);
if (!setPhoneResult.Succeeded)
{
var userId = await _userManager.GetUserIdAsync(user);
throw new InvalidOperationException($"Unexpected error occurred setting phone number for user with ID '{userId}'.");
}
}
await _signInManager.RefreshSignInAsync(user);
StatusMessage = "Your profile has been updated";
return RedirectToPage();
}
public async Task<IActionResult> OnPostSendVerificationEmailAsync()
{
if (!ModelState.IsValid)
{
return Page();
}
var user = await _userManager.GetUserAsync(User);
if (user == null)
{
return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
}
var userId = await _userManager.GetUserIdAsync(user);
var email = await _userManager.GetEmailAsync(user);
var code = await _userManager.GenerateEmailConfirmationTokenAsync(user);
var callbackUrl = Url.Page(
"/Account/ConfirmEmail",
pageHandler: null,
values: new { userId = userId, code = code },
protocol: Request.Scheme);
await _emailSender.SendEmailAsync(
email,
"Confirm your email",
$"Please confirm your account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");
StatusMessage = "Verification email sent. Please check your email.";
return RedirectToPage();
}
}
}
| 34.265306 | 136 | 0.574151 | [
"MIT"
] | ementy/QuizGame | src/Web/QuizGame.Web/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs | 5,039 | 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>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.42000.
//
#pragma warning disable 1591
namespace RdlMigration.ReportServerApi {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="ReportingService2010Soap", Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpirationDefinition))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(RecurrencePattern))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ScheduleDefinitionOrReference))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DataSourceDefinitionOrReference))]
public partial class ReportingService2010 : System.Web.Services.Protocols.SoapHttpClientProtocol, IReportingService2010
{
private TrustedUserHeader trustedUserHeaderValueField;
private ServerInfoHeader serverInfoHeaderValueField;
private System.Threading.SendOrPostCallback CreateCatalogItemOperationCompleted;
private System.Threading.SendOrPostCallback SetItemDefinitionOperationCompleted;
private System.Threading.SendOrPostCallback GetItemDefinitionOperationCompleted;
private System.Threading.SendOrPostCallback GetItemTypeOperationCompleted;
private System.Threading.SendOrPostCallback DeleteItemOperationCompleted;
private System.Threading.SendOrPostCallback MoveItemOperationCompleted;
private System.Threading.SendOrPostCallback InheritParentSecurityOperationCompleted;
private System.Threading.SendOrPostCallback ListItemHistoryOperationCompleted;
private System.Threading.SendOrPostCallback ListChildrenOperationCompleted;
private System.Threading.SendOrPostCallback ListDependentItemsOperationCompleted;
private System.Threading.SendOrPostCallback FindItemsOperationCompleted;
private System.Threading.SendOrPostCallback ListParentsOperationCompleted;
private System.Threading.SendOrPostCallback CreateFolderOperationCompleted;
private System.Threading.SendOrPostCallback SetPropertiesOperationCompleted;
private ItemNamespaceHeader itemNamespaceHeaderValueField;
private System.Threading.SendOrPostCallback GetPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback SetItemReferencesOperationCompleted;
private System.Threading.SendOrPostCallback GetItemReferencesOperationCompleted;
private System.Threading.SendOrPostCallback ListItemTypesOperationCompleted;
private System.Threading.SendOrPostCallback SetSubscriptionPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback GetSubscriptionPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback SetDataDrivenSubscriptionPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback GetDataDrivenSubscriptionPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback DisableSubscriptionOperationCompleted;
private System.Threading.SendOrPostCallback EnableSubscriptionOperationCompleted;
private System.Threading.SendOrPostCallback DeleteSubscriptionOperationCompleted;
private System.Threading.SendOrPostCallback CreateSubscriptionOperationCompleted;
private System.Threading.SendOrPostCallback CreateDataDrivenSubscriptionOperationCompleted;
private System.Threading.SendOrPostCallback GetExtensionSettingsOperationCompleted;
private System.Threading.SendOrPostCallback ValidateExtensionSettingsOperationCompleted;
private System.Threading.SendOrPostCallback ListSubscriptionsOperationCompleted;
private System.Threading.SendOrPostCallback ListMySubscriptionsOperationCompleted;
private System.Threading.SendOrPostCallback ListSubscriptionsUsingDataSourceOperationCompleted;
private System.Threading.SendOrPostCallback ChangeSubscriptionOwnerOperationCompleted;
private System.Threading.SendOrPostCallback CreateDataSourceOperationCompleted;
private System.Threading.SendOrPostCallback PrepareQueryOperationCompleted;
private System.Threading.SendOrPostCallback EnableDataSourceOperationCompleted;
private System.Threading.SendOrPostCallback DisableDataSourceOperationCompleted;
private System.Threading.SendOrPostCallback SetDataSourceContentsOperationCompleted;
private System.Threading.SendOrPostCallback GetDataSourceContentsOperationCompleted;
private System.Threading.SendOrPostCallback ListDatabaseCredentialRetrievalOptionsOperationCompleted;
private System.Threading.SendOrPostCallback SetItemDataSourcesOperationCompleted;
private System.Threading.SendOrPostCallback GetItemDataSourcesOperationCompleted;
private System.Threading.SendOrPostCallback TestConnectForDataSourceDefinitionOperationCompleted;
private System.Threading.SendOrPostCallback TestConnectForItemDataSourceOperationCompleted;
private System.Threading.SendOrPostCallback CreateRoleOperationCompleted;
private System.Threading.SendOrPostCallback SetRolePropertiesOperationCompleted;
private System.Threading.SendOrPostCallback GetRolePropertiesOperationCompleted;
private System.Threading.SendOrPostCallback DeleteRoleOperationCompleted;
private System.Threading.SendOrPostCallback ListRolesOperationCompleted;
private System.Threading.SendOrPostCallback ListTasksOperationCompleted;
private System.Threading.SendOrPostCallback SetPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback GetPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback GetItemDataSourcePromptsOperationCompleted;
private System.Threading.SendOrPostCallback GenerateModelOperationCompleted;
private System.Threading.SendOrPostCallback GetModelItemPermissionsOperationCompleted;
private System.Threading.SendOrPostCallback SetModelItemPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback GetModelItemPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback GetUserModelOperationCompleted;
private System.Threading.SendOrPostCallback InheritModelItemParentSecurityOperationCompleted;
private System.Threading.SendOrPostCallback SetModelDrillthroughReportsOperationCompleted;
private System.Threading.SendOrPostCallback ListModelDrillthroughReportsOperationCompleted;
private System.Threading.SendOrPostCallback ListModelItemChildrenOperationCompleted;
private System.Threading.SendOrPostCallback ListModelItemTypesOperationCompleted;
private System.Threading.SendOrPostCallback ListModelPerspectivesOperationCompleted;
private System.Threading.SendOrPostCallback RegenerateModelOperationCompleted;
private System.Threading.SendOrPostCallback RemoveAllModelItemPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback CreateScheduleOperationCompleted;
private System.Threading.SendOrPostCallback DeleteScheduleOperationCompleted;
private System.Threading.SendOrPostCallback ListSchedulesOperationCompleted;
private System.Threading.SendOrPostCallback GetSchedulePropertiesOperationCompleted;
private System.Threading.SendOrPostCallback ListScheduleStatesOperationCompleted;
private System.Threading.SendOrPostCallback PauseScheduleOperationCompleted;
private System.Threading.SendOrPostCallback ResumeScheduleOperationCompleted;
private System.Threading.SendOrPostCallback SetSchedulePropertiesOperationCompleted;
private System.Threading.SendOrPostCallback ListScheduledItemsOperationCompleted;
private System.Threading.SendOrPostCallback SetItemParametersOperationCompleted;
private System.Threading.SendOrPostCallback GetItemParametersOperationCompleted;
private System.Threading.SendOrPostCallback ListParameterTypesOperationCompleted;
private System.Threading.SendOrPostCallback ListParameterStatesOperationCompleted;
private System.Threading.SendOrPostCallback CreateReportEditSessionOperationCompleted;
private System.Threading.SendOrPostCallback CreateLinkedItemOperationCompleted;
private System.Threading.SendOrPostCallback SetItemLinkOperationCompleted;
private System.Threading.SendOrPostCallback GetItemLinkOperationCompleted;
private System.Threading.SendOrPostCallback ListExecutionSettingsOperationCompleted;
private System.Threading.SendOrPostCallback SetExecutionOptionsOperationCompleted;
private System.Threading.SendOrPostCallback GetExecutionOptionsOperationCompleted;
private System.Threading.SendOrPostCallback UpdateItemExecutionSnapshotOperationCompleted;
private System.Threading.SendOrPostCallback SetCacheOptionsOperationCompleted;
private System.Threading.SendOrPostCallback GetCacheOptionsOperationCompleted;
private System.Threading.SendOrPostCallback FlushCacheOperationCompleted;
private System.Threading.SendOrPostCallback CreateItemHistorySnapshotOperationCompleted;
private System.Threading.SendOrPostCallback DeleteItemHistorySnapshotOperationCompleted;
private System.Threading.SendOrPostCallback SetItemHistoryLimitOperationCompleted;
private System.Threading.SendOrPostCallback GetItemHistoryLimitOperationCompleted;
private System.Threading.SendOrPostCallback SetItemHistoryOptionsOperationCompleted;
private System.Threading.SendOrPostCallback GetItemHistoryOptionsOperationCompleted;
private System.Threading.SendOrPostCallback GetReportServerConfigInfoOperationCompleted;
private System.Threading.SendOrPostCallback IsSSLRequiredOperationCompleted;
private System.Threading.SendOrPostCallback SetSystemPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback GetSystemPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback SetUserSettingsOperationCompleted;
private System.Threading.SendOrPostCallback GetUserSettingsOperationCompleted;
private System.Threading.SendOrPostCallback SetSystemPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback GetSystemPoliciesOperationCompleted;
private System.Threading.SendOrPostCallback ListExtensionsOperationCompleted;
private System.Threading.SendOrPostCallback ListExtensionTypesOperationCompleted;
private System.Threading.SendOrPostCallback ListEventsOperationCompleted;
private System.Threading.SendOrPostCallback FireEventOperationCompleted;
private System.Threading.SendOrPostCallback ListJobsOperationCompleted;
private System.Threading.SendOrPostCallback ListJobTypesOperationCompleted;
private System.Threading.SendOrPostCallback ListJobActionsOperationCompleted;
private System.Threading.SendOrPostCallback ListJobStatesOperationCompleted;
private System.Threading.SendOrPostCallback CancelJobOperationCompleted;
private System.Threading.SendOrPostCallback CreateCacheRefreshPlanOperationCompleted;
private System.Threading.SendOrPostCallback SetCacheRefreshPlanPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback GetCacheRefreshPlanPropertiesOperationCompleted;
private System.Threading.SendOrPostCallback DeleteCacheRefreshPlanOperationCompleted;
private System.Threading.SendOrPostCallback ListCacheRefreshPlansOperationCompleted;
private System.Threading.SendOrPostCallback LogonUserOperationCompleted;
private System.Threading.SendOrPostCallback LogoffOperationCompleted;
private System.Threading.SendOrPostCallback GetPermissionsOperationCompleted;
private System.Threading.SendOrPostCallback GetSystemPermissionsOperationCompleted;
private System.Threading.SendOrPostCallback ListSecurityScopesOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public ReportingService2010() {
this.Url = global::RdlMigration.Properties.Settings.Default.RdlMigration_ReportingService2010;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public TrustedUserHeader TrustedUserHeaderValue {
get {
return this.trustedUserHeaderValueField;
}
set {
this.trustedUserHeaderValueField = value;
}
}
public ServerInfoHeader ServerInfoHeaderValue {
get {
return this.serverInfoHeaderValueField;
}
set {
this.serverInfoHeaderValueField = value;
}
}
public ItemNamespaceHeader ItemNamespaceHeaderValue {
get {
return this.itemNamespaceHeaderValueField;
}
set {
this.itemNamespaceHeaderValueField = value;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event CreateCatalogItemCompletedEventHandler CreateCatalogItemCompleted;
/// <remarks/>
public event SetItemDefinitionCompletedEventHandler SetItemDefinitionCompleted;
/// <remarks/>
public event GetItemDefinitionCompletedEventHandler GetItemDefinitionCompleted;
/// <remarks/>
public event GetItemTypeCompletedEventHandler GetItemTypeCompleted;
/// <remarks/>
public event DeleteItemCompletedEventHandler DeleteItemCompleted;
/// <remarks/>
public event MoveItemCompletedEventHandler MoveItemCompleted;
/// <remarks/>
public event InheritParentSecurityCompletedEventHandler InheritParentSecurityCompleted;
/// <remarks/>
public event ListItemHistoryCompletedEventHandler ListItemHistoryCompleted;
/// <remarks/>
public event ListChildrenCompletedEventHandler ListChildrenCompleted;
/// <remarks/>
public event ListDependentItemsCompletedEventHandler ListDependentItemsCompleted;
/// <remarks/>
public event FindItemsCompletedEventHandler FindItemsCompleted;
/// <remarks/>
public event ListParentsCompletedEventHandler ListParentsCompleted;
/// <remarks/>
public event CreateFolderCompletedEventHandler CreateFolderCompleted;
/// <remarks/>
public event SetPropertiesCompletedEventHandler SetPropertiesCompleted;
/// <remarks/>
public event GetPropertiesCompletedEventHandler GetPropertiesCompleted;
/// <remarks/>
public event SetItemReferencesCompletedEventHandler SetItemReferencesCompleted;
/// <remarks/>
public event GetItemReferencesCompletedEventHandler GetItemReferencesCompleted;
/// <remarks/>
public event ListItemTypesCompletedEventHandler ListItemTypesCompleted;
/// <remarks/>
public event SetSubscriptionPropertiesCompletedEventHandler SetSubscriptionPropertiesCompleted;
/// <remarks/>
public event GetSubscriptionPropertiesCompletedEventHandler GetSubscriptionPropertiesCompleted;
/// <remarks/>
public event SetDataDrivenSubscriptionPropertiesCompletedEventHandler SetDataDrivenSubscriptionPropertiesCompleted;
/// <remarks/>
public event GetDataDrivenSubscriptionPropertiesCompletedEventHandler GetDataDrivenSubscriptionPropertiesCompleted;
/// <remarks/>
public event DisableSubscriptionCompletedEventHandler DisableSubscriptionCompleted;
/// <remarks/>
public event EnableSubscriptionCompletedEventHandler EnableSubscriptionCompleted;
/// <remarks/>
public event DeleteSubscriptionCompletedEventHandler DeleteSubscriptionCompleted;
/// <remarks/>
public event CreateSubscriptionCompletedEventHandler CreateSubscriptionCompleted;
/// <remarks/>
public event CreateDataDrivenSubscriptionCompletedEventHandler CreateDataDrivenSubscriptionCompleted;
/// <remarks/>
public event GetExtensionSettingsCompletedEventHandler GetExtensionSettingsCompleted;
/// <remarks/>
public event ValidateExtensionSettingsCompletedEventHandler ValidateExtensionSettingsCompleted;
/// <remarks/>
public event ListSubscriptionsCompletedEventHandler ListSubscriptionsCompleted;
/// <remarks/>
public event ListMySubscriptionsCompletedEventHandler ListMySubscriptionsCompleted;
/// <remarks/>
public event ListSubscriptionsUsingDataSourceCompletedEventHandler ListSubscriptionsUsingDataSourceCompleted;
/// <remarks/>
public event ChangeSubscriptionOwnerCompletedEventHandler ChangeSubscriptionOwnerCompleted;
/// <remarks/>
public event CreateDataSourceCompletedEventHandler CreateDataSourceCompleted;
/// <remarks/>
public event PrepareQueryCompletedEventHandler PrepareQueryCompleted;
/// <remarks/>
public event EnableDataSourceCompletedEventHandler EnableDataSourceCompleted;
/// <remarks/>
public event DisableDataSourceCompletedEventHandler DisableDataSourceCompleted;
/// <remarks/>
public event SetDataSourceContentsCompletedEventHandler SetDataSourceContentsCompleted;
/// <remarks/>
public event GetDataSourceContentsCompletedEventHandler GetDataSourceContentsCompleted;
/// <remarks/>
public event ListDatabaseCredentialRetrievalOptionsCompletedEventHandler ListDatabaseCredentialRetrievalOptionsCompleted;
/// <remarks/>
public event SetItemDataSourcesCompletedEventHandler SetItemDataSourcesCompleted;
/// <remarks/>
public event GetItemDataSourcesCompletedEventHandler GetItemDataSourcesCompleted;
/// <remarks/>
public event TestConnectForDataSourceDefinitionCompletedEventHandler TestConnectForDataSourceDefinitionCompleted;
/// <remarks/>
public event TestConnectForItemDataSourceCompletedEventHandler TestConnectForItemDataSourceCompleted;
/// <remarks/>
public event CreateRoleCompletedEventHandler CreateRoleCompleted;
/// <remarks/>
public event SetRolePropertiesCompletedEventHandler SetRolePropertiesCompleted;
/// <remarks/>
public event GetRolePropertiesCompletedEventHandler GetRolePropertiesCompleted;
/// <remarks/>
public event DeleteRoleCompletedEventHandler DeleteRoleCompleted;
/// <remarks/>
public event ListRolesCompletedEventHandler ListRolesCompleted;
/// <remarks/>
public event ListTasksCompletedEventHandler ListTasksCompleted;
/// <remarks/>
public event SetPoliciesCompletedEventHandler SetPoliciesCompleted;
/// <remarks/>
public event GetPoliciesCompletedEventHandler GetPoliciesCompleted;
/// <remarks/>
public event GetItemDataSourcePromptsCompletedEventHandler GetItemDataSourcePromptsCompleted;
/// <remarks/>
public event GenerateModelCompletedEventHandler GenerateModelCompleted;
/// <remarks/>
public event GetModelItemPermissionsCompletedEventHandler GetModelItemPermissionsCompleted;
/// <remarks/>
public event SetModelItemPoliciesCompletedEventHandler SetModelItemPoliciesCompleted;
/// <remarks/>
public event GetModelItemPoliciesCompletedEventHandler GetModelItemPoliciesCompleted;
/// <remarks/>
public event GetUserModelCompletedEventHandler GetUserModelCompleted;
/// <remarks/>
public event InheritModelItemParentSecurityCompletedEventHandler InheritModelItemParentSecurityCompleted;
/// <remarks/>
public event SetModelDrillthroughReportsCompletedEventHandler SetModelDrillthroughReportsCompleted;
/// <remarks/>
public event ListModelDrillthroughReportsCompletedEventHandler ListModelDrillthroughReportsCompleted;
/// <remarks/>
public event ListModelItemChildrenCompletedEventHandler ListModelItemChildrenCompleted;
/// <remarks/>
public event ListModelItemTypesCompletedEventHandler ListModelItemTypesCompleted;
/// <remarks/>
public event ListModelPerspectivesCompletedEventHandler ListModelPerspectivesCompleted;
/// <remarks/>
public event RegenerateModelCompletedEventHandler RegenerateModelCompleted;
/// <remarks/>
public event RemoveAllModelItemPoliciesCompletedEventHandler RemoveAllModelItemPoliciesCompleted;
/// <remarks/>
public event CreateScheduleCompletedEventHandler CreateScheduleCompleted;
/// <remarks/>
public event DeleteScheduleCompletedEventHandler DeleteScheduleCompleted;
/// <remarks/>
public event ListSchedulesCompletedEventHandler ListSchedulesCompleted;
/// <remarks/>
public event GetSchedulePropertiesCompletedEventHandler GetSchedulePropertiesCompleted;
/// <remarks/>
public event ListScheduleStatesCompletedEventHandler ListScheduleStatesCompleted;
/// <remarks/>
public event PauseScheduleCompletedEventHandler PauseScheduleCompleted;
/// <remarks/>
public event ResumeScheduleCompletedEventHandler ResumeScheduleCompleted;
/// <remarks/>
public event SetSchedulePropertiesCompletedEventHandler SetSchedulePropertiesCompleted;
/// <remarks/>
public event ListScheduledItemsCompletedEventHandler ListScheduledItemsCompleted;
/// <remarks/>
public event SetItemParametersCompletedEventHandler SetItemParametersCompleted;
/// <remarks/>
public event GetItemParametersCompletedEventHandler GetItemParametersCompleted;
/// <remarks/>
public event ListParameterTypesCompletedEventHandler ListParameterTypesCompleted;
/// <remarks/>
public event ListParameterStatesCompletedEventHandler ListParameterStatesCompleted;
/// <remarks/>
public event CreateReportEditSessionCompletedEventHandler CreateReportEditSessionCompleted;
/// <remarks/>
public event CreateLinkedItemCompletedEventHandler CreateLinkedItemCompleted;
/// <remarks/>
public event SetItemLinkCompletedEventHandler SetItemLinkCompleted;
/// <remarks/>
public event GetItemLinkCompletedEventHandler GetItemLinkCompleted;
/// <remarks/>
public event ListExecutionSettingsCompletedEventHandler ListExecutionSettingsCompleted;
/// <remarks/>
public event SetExecutionOptionsCompletedEventHandler SetExecutionOptionsCompleted;
/// <remarks/>
public event GetExecutionOptionsCompletedEventHandler GetExecutionOptionsCompleted;
/// <remarks/>
public event UpdateItemExecutionSnapshotCompletedEventHandler UpdateItemExecutionSnapshotCompleted;
/// <remarks/>
public event SetCacheOptionsCompletedEventHandler SetCacheOptionsCompleted;
/// <remarks/>
public event GetCacheOptionsCompletedEventHandler GetCacheOptionsCompleted;
/// <remarks/>
public event FlushCacheCompletedEventHandler FlushCacheCompleted;
/// <remarks/>
public event CreateItemHistorySnapshotCompletedEventHandler CreateItemHistorySnapshotCompleted;
/// <remarks/>
public event DeleteItemHistorySnapshotCompletedEventHandler DeleteItemHistorySnapshotCompleted;
/// <remarks/>
public event SetItemHistoryLimitCompletedEventHandler SetItemHistoryLimitCompleted;
/// <remarks/>
public event GetItemHistoryLimitCompletedEventHandler GetItemHistoryLimitCompleted;
/// <remarks/>
public event SetItemHistoryOptionsCompletedEventHandler SetItemHistoryOptionsCompleted;
/// <remarks/>
public event GetItemHistoryOptionsCompletedEventHandler GetItemHistoryOptionsCompleted;
/// <remarks/>
public event GetReportServerConfigInfoCompletedEventHandler GetReportServerConfigInfoCompleted;
/// <remarks/>
public event IsSSLRequiredCompletedEventHandler IsSSLRequiredCompleted;
/// <remarks/>
public event SetSystemPropertiesCompletedEventHandler SetSystemPropertiesCompleted;
/// <remarks/>
public event GetSystemPropertiesCompletedEventHandler GetSystemPropertiesCompleted;
/// <remarks/>
public event SetUserSettingsCompletedEventHandler SetUserSettingsCompleted;
/// <remarks/>
public event GetUserSettingsCompletedEventHandler GetUserSettingsCompleted;
/// <remarks/>
public event SetSystemPoliciesCompletedEventHandler SetSystemPoliciesCompleted;
/// <remarks/>
public event GetSystemPoliciesCompletedEventHandler GetSystemPoliciesCompleted;
/// <remarks/>
public event ListExtensionsCompletedEventHandler ListExtensionsCompleted;
/// <remarks/>
public event ListExtensionTypesCompletedEventHandler ListExtensionTypesCompleted;
/// <remarks/>
public event ListEventsCompletedEventHandler ListEventsCompleted;
/// <remarks/>
public event FireEventCompletedEventHandler FireEventCompleted;
/// <remarks/>
public event ListJobsCompletedEventHandler ListJobsCompleted;
/// <remarks/>
public event ListJobTypesCompletedEventHandler ListJobTypesCompleted;
/// <remarks/>
public event ListJobActionsCompletedEventHandler ListJobActionsCompleted;
/// <remarks/>
public event ListJobStatesCompletedEventHandler ListJobStatesCompleted;
/// <remarks/>
public event CancelJobCompletedEventHandler CancelJobCompleted;
/// <remarks/>
public event CreateCacheRefreshPlanCompletedEventHandler CreateCacheRefreshPlanCompleted;
/// <remarks/>
public event SetCacheRefreshPlanPropertiesCompletedEventHandler SetCacheRefreshPlanPropertiesCompleted;
/// <remarks/>
public event GetCacheRefreshPlanPropertiesCompletedEventHandler GetCacheRefreshPlanPropertiesCompleted;
/// <remarks/>
public event DeleteCacheRefreshPlanCompletedEventHandler DeleteCacheRefreshPlanCompleted;
/// <remarks/>
public event ListCacheRefreshPlansCompletedEventHandler ListCacheRefreshPlansCompleted;
/// <remarks/>
public event LogonUserCompletedEventHandler LogonUserCompleted;
/// <remarks/>
public event LogoffCompletedEventHandler LogoffCompleted;
/// <remarks/>
public event GetPermissionsCompletedEventHandler GetPermissionsCompleted;
/// <remarks/>
public event GetSystemPermissionsCompletedEventHandler GetSystemPermissionsCompleted;
/// <remarks/>
public event ListSecurityScopesCompletedEventHandler ListSecurityScopesCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateCa" +
"talogItem", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ItemInfo")]
public CatalogItem CreateCatalogItem(string ItemType, string Name, string Parent, bool Overwrite, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] Definition, Property[] Properties, out Warning[] Warnings) {
object[] results = this.Invoke("CreateCatalogItem", new object[] {
ItemType,
Name,
Parent,
Overwrite,
Definition,
Properties});
Warnings = ((Warning[])(results[1]));
return ((CatalogItem)(results[0]));
}
/// <remarks/>
public void CreateCatalogItemAsync(string ItemType, string Name, string Parent, bool Overwrite, byte[] Definition, Property[] Properties) {
this.CreateCatalogItemAsync(ItemType, Name, Parent, Overwrite, Definition, Properties, null);
}
/// <remarks/>
public void CreateCatalogItemAsync(string ItemType, string Name, string Parent, bool Overwrite, byte[] Definition, Property[] Properties, object userState) {
if ((this.CreateCatalogItemOperationCompleted == null)) {
this.CreateCatalogItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCatalogItemOperationCompleted);
}
this.InvokeAsync("CreateCatalogItem", new object[] {
ItemType,
Name,
Parent,
Overwrite,
Definition,
Properties}, this.CreateCatalogItemOperationCompleted, userState);
}
private void OnCreateCatalogItemOperationCompleted(object arg) {
if ((this.CreateCatalogItemCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateCatalogItemCompleted(this, new CreateCatalogItemCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemD" +
"efinition", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Warnings")]
public Warning[] SetItemDefinition(string ItemPath, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] Definition, Property[] Properties) {
object[] results = this.Invoke("SetItemDefinition", new object[] {
ItemPath,
Definition,
Properties});
return ((Warning[])(results[0]));
}
/// <remarks/>
public void SetItemDefinitionAsync(string ItemPath, byte[] Definition, Property[] Properties) {
this.SetItemDefinitionAsync(ItemPath, Definition, Properties, null);
}
/// <remarks/>
public void SetItemDefinitionAsync(string ItemPath, byte[] Definition, Property[] Properties, object userState) {
if ((this.SetItemDefinitionOperationCompleted == null)) {
this.SetItemDefinitionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemDefinitionOperationCompleted);
}
this.InvokeAsync("SetItemDefinition", new object[] {
ItemPath,
Definition,
Properties}, this.SetItemDefinitionOperationCompleted, userState);
}
private void OnSetItemDefinitionOperationCompleted(object arg) {
if ((this.SetItemDefinitionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemDefinitionCompleted(this, new SetItemDefinitionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemD" +
"efinition", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Definition", DataType="base64Binary")]
public byte[] GetItemDefinition(string ItemPath) {
object[] results = this.Invoke("GetItemDefinition", new object[] {
ItemPath});
return ((byte[])(results[0]));
}
/// <remarks/>
public void GetItemDefinitionAsync(string ItemPath) {
this.GetItemDefinitionAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemDefinitionAsync(string ItemPath, object userState) {
if ((this.GetItemDefinitionOperationCompleted == null)) {
this.GetItemDefinitionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemDefinitionOperationCompleted);
}
this.InvokeAsync("GetItemDefinition", new object[] {
ItemPath}, this.GetItemDefinitionOperationCompleted, userState);
}
private void OnGetItemDefinitionOperationCompleted(object arg) {
if ((this.GetItemDefinitionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemDefinitionCompleted(this, new GetItemDefinitionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemT" +
"ype", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Type")]
public string GetItemType(string ItemPath) {
object[] results = this.Invoke("GetItemType", new object[] {
ItemPath});
return ((string)(results[0]));
}
/// <remarks/>
public void GetItemTypeAsync(string ItemPath) {
this.GetItemTypeAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemTypeAsync(string ItemPath, object userState) {
if ((this.GetItemTypeOperationCompleted == null)) {
this.GetItemTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemTypeOperationCompleted);
}
this.InvokeAsync("GetItemType", new object[] {
ItemPath}, this.GetItemTypeOperationCompleted, userState);
}
private void OnGetItemTypeOperationCompleted(object arg) {
if ((this.GetItemTypeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemTypeCompleted(this, new GetItemTypeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteIt" +
"em", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteItem(string ItemPath) {
this.Invoke("DeleteItem", new object[] {
ItemPath});
}
/// <remarks/>
public void DeleteItemAsync(string ItemPath) {
this.DeleteItemAsync(ItemPath, null);
}
/// <remarks/>
public void DeleteItemAsync(string ItemPath, object userState) {
if ((this.DeleteItemOperationCompleted == null)) {
this.DeleteItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteItemOperationCompleted);
}
this.InvokeAsync("DeleteItem", new object[] {
ItemPath}, this.DeleteItemOperationCompleted, userState);
}
private void OnDeleteItemOperationCompleted(object arg) {
if ((this.DeleteItemCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteItemCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/MoveItem" +
"", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void MoveItem(string ItemPath, string Target) {
this.Invoke("MoveItem", new object[] {
ItemPath,
Target});
}
/// <remarks/>
public void MoveItemAsync(string ItemPath, string Target) {
this.MoveItemAsync(ItemPath, Target, null);
}
/// <remarks/>
public void MoveItemAsync(string ItemPath, string Target, object userState) {
if ((this.MoveItemOperationCompleted == null)) {
this.MoveItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMoveItemOperationCompleted);
}
this.InvokeAsync("MoveItem", new object[] {
ItemPath,
Target}, this.MoveItemOperationCompleted, userState);
}
private void OnMoveItemOperationCompleted(object arg) {
if ((this.MoveItemCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.MoveItemCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritP" +
"arentSecurity", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void InheritParentSecurity(string ItemPath) {
this.Invoke("InheritParentSecurity", new object[] {
ItemPath});
}
/// <remarks/>
public void InheritParentSecurityAsync(string ItemPath) {
this.InheritParentSecurityAsync(ItemPath, null);
}
/// <remarks/>
public void InheritParentSecurityAsync(string ItemPath, object userState) {
if ((this.InheritParentSecurityOperationCompleted == null)) {
this.InheritParentSecurityOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInheritParentSecurityOperationCompleted);
}
this.InvokeAsync("InheritParentSecurity", new object[] {
ItemPath}, this.InheritParentSecurityOperationCompleted, userState);
}
private void OnInheritParentSecurityOperationCompleted(object arg) {
if ((this.InheritParentSecurityCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.InheritParentSecurityCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListItem" +
"History", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ItemHistory")]
public ItemHistorySnapshot[] ListItemHistory(string ItemPath) {
object[] results = this.Invoke("ListItemHistory", new object[] {
ItemPath});
return ((ItemHistorySnapshot[])(results[0]));
}
/// <remarks/>
public void ListItemHistoryAsync(string ItemPath) {
this.ListItemHistoryAsync(ItemPath, null);
}
/// <remarks/>
public void ListItemHistoryAsync(string ItemPath, object userState) {
if ((this.ListItemHistoryOperationCompleted == null)) {
this.ListItemHistoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListItemHistoryOperationCompleted);
}
this.InvokeAsync("ListItemHistory", new object[] {
ItemPath}, this.ListItemHistoryOperationCompleted, userState);
}
private void OnListItemHistoryOperationCompleted(object arg) {
if ((this.ListItemHistoryCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListItemHistoryCompleted(this, new ListItemHistoryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListChil" +
"dren", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("CatalogItems")]
public CatalogItem[] ListChildren(string ItemPath, bool Recursive) {
object[] results = this.Invoke("ListChildren", new object[] {
ItemPath,
Recursive});
return ((CatalogItem[])(results[0]));
}
/// <remarks/>
public void ListChildrenAsync(string ItemPath, bool Recursive) {
this.ListChildrenAsync(ItemPath, Recursive, null);
}
/// <remarks/>
public void ListChildrenAsync(string ItemPath, bool Recursive, object userState) {
if ((this.ListChildrenOperationCompleted == null)) {
this.ListChildrenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListChildrenOperationCompleted);
}
this.InvokeAsync("ListChildren", new object[] {
ItemPath,
Recursive}, this.ListChildrenOperationCompleted, userState);
}
private void OnListChildrenOperationCompleted(object arg) {
if ((this.ListChildrenCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListChildrenCompleted(this, new ListChildrenCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListDepe" +
"ndentItems", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("CatalogItems")]
public CatalogItem[] ListDependentItems(string ItemPath) {
object[] results = this.Invoke("ListDependentItems", new object[] {
ItemPath});
return ((CatalogItem[])(results[0]));
}
/// <remarks/>
public void ListDependentItemsAsync(string ItemPath) {
this.ListDependentItemsAsync(ItemPath, null);
}
/// <remarks/>
public void ListDependentItemsAsync(string ItemPath, object userState) {
if ((this.ListDependentItemsOperationCompleted == null)) {
this.ListDependentItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListDependentItemsOperationCompleted);
}
this.InvokeAsync("ListDependentItems", new object[] {
ItemPath}, this.ListDependentItemsOperationCompleted, userState);
}
private void OnListDependentItemsOperationCompleted(object arg) {
if ((this.ListDependentItemsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListDependentItemsCompleted(this, new ListDependentItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItem" +
"s", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Items")]
public CatalogItem[] FindItems(string Folder, BooleanOperatorEnum BooleanOperator, Property[] SearchOptions, SearchCondition[] SearchConditions) {
object[] results = this.Invoke("FindItems", new object[] {
Folder,
BooleanOperator,
SearchOptions,
SearchConditions});
return ((CatalogItem[])(results[0]));
}
/// <remarks/>
public void FindItemsAsync(string Folder, BooleanOperatorEnum BooleanOperator, Property[] SearchOptions, SearchCondition[] SearchConditions) {
this.FindItemsAsync(Folder, BooleanOperator, SearchOptions, SearchConditions, null);
}
/// <remarks/>
public void FindItemsAsync(string Folder, BooleanOperatorEnum BooleanOperator, Property[] SearchOptions, SearchCondition[] SearchConditions, object userState) {
if ((this.FindItemsOperationCompleted == null)) {
this.FindItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindItemsOperationCompleted);
}
this.InvokeAsync("FindItems", new object[] {
Folder,
BooleanOperator,
SearchOptions,
SearchConditions}, this.FindItemsOperationCompleted, userState);
}
private void OnFindItemsOperationCompleted(object arg) {
if ((this.FindItemsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.FindItemsCompleted(this, new FindItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListPare" +
"nts", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public CatalogItem[] ListParents(string ItemPath) {
object[] results = this.Invoke("ListParents", new object[] {
ItemPath});
return ((CatalogItem[])(results[0]));
}
/// <remarks/>
public void ListParentsAsync(string ItemPath) {
this.ListParentsAsync(ItemPath, null);
}
/// <remarks/>
public void ListParentsAsync(string ItemPath, object userState) {
if ((this.ListParentsOperationCompleted == null)) {
this.ListParentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListParentsOperationCompleted);
}
this.InvokeAsync("ListParents", new object[] {
ItemPath}, this.ListParentsOperationCompleted, userState);
}
private void OnListParentsOperationCompleted(object arg) {
if ((this.ListParentsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListParentsCompleted(this, new ListParentsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateFo" +
"lder", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ItemInfo")]
public CatalogItem CreateFolder(string Folder, string Parent, Property[] Properties) {
object[] results = this.Invoke("CreateFolder", new object[] {
Folder,
Parent,
Properties});
return ((CatalogItem)(results[0]));
}
/// <remarks/>
public void CreateFolderAsync(string Folder, string Parent, Property[] Properties) {
this.CreateFolderAsync(Folder, Parent, Properties, null);
}
/// <remarks/>
public void CreateFolderAsync(string Folder, string Parent, Property[] Properties, object userState) {
if ((this.CreateFolderOperationCompleted == null)) {
this.CreateFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateFolderOperationCompleted);
}
this.InvokeAsync("CreateFolder", new object[] {
Folder,
Parent,
Properties}, this.CreateFolderOperationCompleted, userState);
}
private void OnCreateFolderOperationCompleted(object arg) {
if ((this.CreateFolderCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateFolderCompleted(this, new CreateFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetPrope" +
"rties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetProperties(string ItemPath, Property[] Properties) {
this.Invoke("SetProperties", new object[] {
ItemPath,
Properties});
}
/// <remarks/>
public void SetPropertiesAsync(string ItemPath, Property[] Properties) {
this.SetPropertiesAsync(ItemPath, Properties, null);
}
/// <remarks/>
public void SetPropertiesAsync(string ItemPath, Property[] Properties, object userState) {
if ((this.SetPropertiesOperationCompleted == null)) {
this.SetPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPropertiesOperationCompleted);
}
this.InvokeAsync("SetProperties", new object[] {
ItemPath,
Properties}, this.SetPropertiesOperationCompleted, userState);
}
private void OnSetPropertiesOperationCompleted(object arg) {
if ((this.SetPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("ItemNamespaceHeaderValue")]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPrope" +
"rties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Values")]
public Property[] GetProperties(string ItemPath, Property[] Properties) {
object[] results = this.Invoke("GetProperties", new object[] {
ItemPath,
Properties});
return ((Property[])(results[0]));
}
/// <remarks/>
public void GetPropertiesAsync(string ItemPath, Property[] Properties) {
this.GetPropertiesAsync(ItemPath, Properties, null);
}
/// <remarks/>
public void GetPropertiesAsync(string ItemPath, Property[] Properties, object userState) {
if ((this.GetPropertiesOperationCompleted == null)) {
this.GetPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPropertiesOperationCompleted);
}
this.InvokeAsync("GetProperties", new object[] {
ItemPath,
Properties}, this.GetPropertiesOperationCompleted, userState);
}
private void OnGetPropertiesOperationCompleted(object arg) {
if ((this.GetPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetPropertiesCompleted(this, new GetPropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemR" +
"eferences", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemReferences(string ItemPath, ItemReference[] ItemReferences) {
this.Invoke("SetItemReferences", new object[] {
ItemPath,
ItemReferences});
}
/// <remarks/>
public void SetItemReferencesAsync(string ItemPath, ItemReference[] ItemReferences) {
this.SetItemReferencesAsync(ItemPath, ItemReferences, null);
}
/// <remarks/>
public void SetItemReferencesAsync(string ItemPath, ItemReference[] ItemReferences, object userState) {
if ((this.SetItemReferencesOperationCompleted == null)) {
this.SetItemReferencesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemReferencesOperationCompleted);
}
this.InvokeAsync("SetItemReferences", new object[] {
ItemPath,
ItemReferences}, this.SetItemReferencesOperationCompleted, userState);
}
private void OnSetItemReferencesOperationCompleted(object arg) {
if ((this.SetItemReferencesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemReferencesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemR" +
"eferences", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ItemReferences")]
public ItemReferenceData[] GetItemReferences(string ItemPath, string ReferenceItemType) {
object[] results = this.Invoke("GetItemReferences", new object[] {
ItemPath,
ReferenceItemType});
return ((ItemReferenceData[])(results[0]));
}
/// <remarks/>
public void GetItemReferencesAsync(string ItemPath, string ReferenceItemType) {
this.GetItemReferencesAsync(ItemPath, ReferenceItemType, null);
}
/// <remarks/>
public void GetItemReferencesAsync(string ItemPath, string ReferenceItemType, object userState) {
if ((this.GetItemReferencesOperationCompleted == null)) {
this.GetItemReferencesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemReferencesOperationCompleted);
}
this.InvokeAsync("GetItemReferences", new object[] {
ItemPath,
ReferenceItemType}, this.GetItemReferencesOperationCompleted, userState);
}
private void OnGetItemReferencesOperationCompleted(object arg) {
if ((this.GetItemReferencesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemReferencesCompleted(this, new GetItemReferencesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListItem" +
"Types", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListItemTypes() {
object[] results = this.Invoke("ListItemTypes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListItemTypesAsync() {
this.ListItemTypesAsync(null);
}
/// <remarks/>
public void ListItemTypesAsync(object userState) {
if ((this.ListItemTypesOperationCompleted == null)) {
this.ListItemTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListItemTypesOperationCompleted);
}
this.InvokeAsync("ListItemTypes", new object[0], this.ListItemTypesOperationCompleted, userState);
}
private void OnListItemTypesOperationCompleted(object arg) {
if ((this.ListItemTypesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListItemTypesCompleted(this, new ListItemTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetSubsc" +
"riptionProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetSubscriptionProperties(string SubscriptionID, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.Invoke("SetSubscriptionProperties", new object[] {
SubscriptionID,
ExtensionSettings,
Description,
EventType,
MatchData,
Parameters});
}
/// <remarks/>
public void SetSubscriptionPropertiesAsync(string SubscriptionID, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.SetSubscriptionPropertiesAsync(SubscriptionID, ExtensionSettings, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void SetSubscriptionPropertiesAsync(string SubscriptionID, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters, object userState) {
if ((this.SetSubscriptionPropertiesOperationCompleted == null)) {
this.SetSubscriptionPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSubscriptionPropertiesOperationCompleted);
}
this.InvokeAsync("SetSubscriptionProperties", new object[] {
SubscriptionID,
ExtensionSettings,
Description,
EventType,
MatchData,
Parameters}, this.SetSubscriptionPropertiesOperationCompleted, userState);
}
private void OnSetSubscriptionPropertiesOperationCompleted(object arg) {
if ((this.SetSubscriptionPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetSubscriptionPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSubsc" +
"riptionProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Owner")]
public string GetSubscriptionProperties(string SubscriptionID, out ExtensionSettings ExtensionSettings, out string Description, out ActiveState Active, out string Status, out string EventType, out string MatchData, out ParameterValue[] Parameters) {
object[] results = this.Invoke("GetSubscriptionProperties", new object[] {
SubscriptionID});
ExtensionSettings = ((ExtensionSettings)(results[1]));
Description = ((string)(results[2]));
Active = ((ActiveState)(results[3]));
Status = ((string)(results[4]));
EventType = ((string)(results[5]));
MatchData = ((string)(results[6]));
Parameters = ((ParameterValue[])(results[7]));
return ((string)(results[0]));
}
/// <remarks/>
public void GetSubscriptionPropertiesAsync(string SubscriptionID) {
this.GetSubscriptionPropertiesAsync(SubscriptionID, null);
}
/// <remarks/>
public void GetSubscriptionPropertiesAsync(string SubscriptionID, object userState) {
if ((this.GetSubscriptionPropertiesOperationCompleted == null)) {
this.GetSubscriptionPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSubscriptionPropertiesOperationCompleted);
}
this.InvokeAsync("GetSubscriptionProperties", new object[] {
SubscriptionID}, this.GetSubscriptionPropertiesOperationCompleted, userState);
}
private void OnGetSubscriptionPropertiesOperationCompleted(object arg) {
if ((this.GetSubscriptionPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSubscriptionPropertiesCompleted(this, new GetSubscriptionPropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetDataD" +
"rivenSubscriptionProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetDataDrivenSubscriptionProperties(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
this.Invoke("SetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters});
}
/// <remarks/>
public void SetDataDrivenSubscriptionPropertiesAsync(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
this.SetDataDrivenSubscriptionPropertiesAsync(DataDrivenSubscriptionID, ExtensionSettings, DataRetrievalPlan, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void SetDataDrivenSubscriptionPropertiesAsync(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters, object userState) {
if ((this.SetDataDrivenSubscriptionPropertiesOperationCompleted == null)) {
this.SetDataDrivenSubscriptionPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDataDrivenSubscriptionPropertiesOperationCompleted);
}
this.InvokeAsync("SetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters}, this.SetDataDrivenSubscriptionPropertiesOperationCompleted, userState);
}
private void OnSetDataDrivenSubscriptionPropertiesOperationCompleted(object arg) {
if ((this.SetDataDrivenSubscriptionPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetDataDrivenSubscriptionPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetDataD" +
"rivenSubscriptionProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Owner")]
public string GetDataDrivenSubscriptionProperties(string DataDrivenSubscriptionID, out ExtensionSettings ExtensionSettings, out DataRetrievalPlan DataRetrievalPlan, out string Description, out ActiveState Active, out string Status, out string EventType, out string MatchData, out ParameterValueOrFieldReference[] Parameters) {
object[] results = this.Invoke("GetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID});
ExtensionSettings = ((ExtensionSettings)(results[1]));
DataRetrievalPlan = ((DataRetrievalPlan)(results[2]));
Description = ((string)(results[3]));
Active = ((ActiveState)(results[4]));
Status = ((string)(results[5]));
EventType = ((string)(results[6]));
MatchData = ((string)(results[7]));
Parameters = ((ParameterValueOrFieldReference[])(results[8]));
return ((string)(results[0]));
}
/// <remarks/>
public void GetDataDrivenSubscriptionPropertiesAsync(string DataDrivenSubscriptionID) {
this.GetDataDrivenSubscriptionPropertiesAsync(DataDrivenSubscriptionID, null);
}
/// <remarks/>
public void GetDataDrivenSubscriptionPropertiesAsync(string DataDrivenSubscriptionID, object userState) {
if ((this.GetDataDrivenSubscriptionPropertiesOperationCompleted == null)) {
this.GetDataDrivenSubscriptionPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDataDrivenSubscriptionPropertiesOperationCompleted);
}
this.InvokeAsync("GetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID}, this.GetDataDrivenSubscriptionPropertiesOperationCompleted, userState);
}
private void OnGetDataDrivenSubscriptionPropertiesOperationCompleted(object arg) {
if ((this.GetDataDrivenSubscriptionPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDataDrivenSubscriptionPropertiesCompleted(this, new GetDataDrivenSubscriptionPropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DisableS" +
"ubscription", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DisableSubscription(string SubscriptionID) {
this.Invoke("DisableSubscription", new object[] {
SubscriptionID});
}
/// <remarks/>
public void DisableSubscriptionAsync(string SubscriptionID) {
this.DisableSubscriptionAsync(SubscriptionID, null);
}
/// <remarks/>
public void DisableSubscriptionAsync(string SubscriptionID, object userState) {
if ((this.DisableSubscriptionOperationCompleted == null)) {
this.DisableSubscriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableSubscriptionOperationCompleted);
}
this.InvokeAsync("DisableSubscription", new object[] {
SubscriptionID}, this.DisableSubscriptionOperationCompleted, userState);
}
private void OnDisableSubscriptionOperationCompleted(object arg) {
if ((this.DisableSubscriptionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DisableSubscriptionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/EnableSu" +
"bscription", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void EnableSubscription(string SubscriptionID) {
this.Invoke("EnableSubscription", new object[] {
SubscriptionID});
}
/// <remarks/>
public void EnableSubscriptionAsync(string SubscriptionID) {
this.EnableSubscriptionAsync(SubscriptionID, null);
}
/// <remarks/>
public void EnableSubscriptionAsync(string SubscriptionID, object userState) {
if ((this.EnableSubscriptionOperationCompleted == null)) {
this.EnableSubscriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableSubscriptionOperationCompleted);
}
this.InvokeAsync("EnableSubscription", new object[] {
SubscriptionID}, this.EnableSubscriptionOperationCompleted, userState);
}
private void OnEnableSubscriptionOperationCompleted(object arg) {
if ((this.EnableSubscriptionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.EnableSubscriptionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSu" +
"bscription", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteSubscription(string SubscriptionID) {
this.Invoke("DeleteSubscription", new object[] {
SubscriptionID});
}
/// <remarks/>
public void DeleteSubscriptionAsync(string SubscriptionID) {
this.DeleteSubscriptionAsync(SubscriptionID, null);
}
/// <remarks/>
public void DeleteSubscriptionAsync(string SubscriptionID, object userState) {
if ((this.DeleteSubscriptionOperationCompleted == null)) {
this.DeleteSubscriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSubscriptionOperationCompleted);
}
this.InvokeAsync("DeleteSubscription", new object[] {
SubscriptionID}, this.DeleteSubscriptionOperationCompleted, userState);
}
private void OnDeleteSubscriptionOperationCompleted(object arg) {
if ((this.DeleteSubscriptionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteSubscriptionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateSu" +
"bscription", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("SubscriptionID")]
public string CreateSubscription(string ItemPath, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
object[] results = this.Invoke("CreateSubscription", new object[] {
ItemPath,
ExtensionSettings,
Description,
EventType,
MatchData,
Parameters});
return ((string)(results[0]));
}
/// <remarks/>
public void CreateSubscriptionAsync(string ItemPath, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.CreateSubscriptionAsync(ItemPath, ExtensionSettings, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void CreateSubscriptionAsync(string ItemPath, ExtensionSettings ExtensionSettings, string Description, string EventType, string MatchData, ParameterValue[] Parameters, object userState) {
if ((this.CreateSubscriptionOperationCompleted == null)) {
this.CreateSubscriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateSubscriptionOperationCompleted);
}
this.InvokeAsync("CreateSubscription", new object[] {
ItemPath,
ExtensionSettings,
Description,
EventType,
MatchData,
Parameters}, this.CreateSubscriptionOperationCompleted, userState);
}
private void OnCreateSubscriptionOperationCompleted(object arg) {
if ((this.CreateSubscriptionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateSubscriptionCompleted(this, new CreateSubscriptionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateDa" +
"taDrivenSubscription", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("SubscriptionID")]
public string CreateDataDrivenSubscription(string ItemPath, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
object[] results = this.Invoke("CreateDataDrivenSubscription", new object[] {
ItemPath,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters});
return ((string)(results[0]));
}
/// <remarks/>
public void CreateDataDrivenSubscriptionAsync(string ItemPath, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
this.CreateDataDrivenSubscriptionAsync(ItemPath, ExtensionSettings, DataRetrievalPlan, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void CreateDataDrivenSubscriptionAsync(string ItemPath, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters, object userState) {
if ((this.CreateDataDrivenSubscriptionOperationCompleted == null)) {
this.CreateDataDrivenSubscriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDataDrivenSubscriptionOperationCompleted);
}
this.InvokeAsync("CreateDataDrivenSubscription", new object[] {
ItemPath,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters}, this.CreateDataDrivenSubscriptionOperationCompleted, userState);
}
private void OnCreateDataDrivenSubscriptionOperationCompleted(object arg) {
if ((this.CreateDataDrivenSubscriptionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateDataDrivenSubscriptionCompleted(this, new CreateDataDrivenSubscriptionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetExten" +
"sionSettings", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ExtensionParameters")]
public ExtensionParameter[] GetExtensionSettings(string Extension) {
object[] results = this.Invoke("GetExtensionSettings", new object[] {
Extension});
return ((ExtensionParameter[])(results[0]));
}
/// <remarks/>
public void GetExtensionSettingsAsync(string Extension) {
this.GetExtensionSettingsAsync(Extension, null);
}
/// <remarks/>
public void GetExtensionSettingsAsync(string Extension, object userState) {
if ((this.GetExtensionSettingsOperationCompleted == null)) {
this.GetExtensionSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExtensionSettingsOperationCompleted);
}
this.InvokeAsync("GetExtensionSettings", new object[] {
Extension}, this.GetExtensionSettingsOperationCompleted, userState);
}
private void OnGetExtensionSettingsOperationCompleted(object arg) {
if ((this.GetExtensionSettingsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetExtensionSettingsCompleted(this, new GetExtensionSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/Validate" +
"ExtensionSettings", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ParameterErrors")]
public ExtensionParameter[] ValidateExtensionSettings(string Extension, ParameterValueOrFieldReference[] ParameterValues, string SiteUrl) {
object[] results = this.Invoke("ValidateExtensionSettings", new object[] {
Extension,
ParameterValues,
SiteUrl});
return ((ExtensionParameter[])(results[0]));
}
/// <remarks/>
public void ValidateExtensionSettingsAsync(string Extension, ParameterValueOrFieldReference[] ParameterValues, string SiteUrl) {
this.ValidateExtensionSettingsAsync(Extension, ParameterValues, SiteUrl, null);
}
/// <remarks/>
public void ValidateExtensionSettingsAsync(string Extension, ParameterValueOrFieldReference[] ParameterValues, string SiteUrl, object userState) {
if ((this.ValidateExtensionSettingsOperationCompleted == null)) {
this.ValidateExtensionSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnValidateExtensionSettingsOperationCompleted);
}
this.InvokeAsync("ValidateExtensionSettings", new object[] {
Extension,
ParameterValues,
SiteUrl}, this.ValidateExtensionSettingsOperationCompleted, userState);
}
private void OnValidateExtensionSettingsOperationCompleted(object arg) {
if ((this.ValidateExtensionSettingsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ValidateExtensionSettingsCompleted(this, new ValidateExtensionSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSubs" +
"criptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("SubscriptionItems")]
public Subscription[] ListSubscriptions(string ItemPathOrSiteURL) {
object[] results = this.Invoke("ListSubscriptions", new object[] {
ItemPathOrSiteURL});
return ((Subscription[])(results[0]));
}
/// <remarks/>
public void ListSubscriptionsAsync(string ItemPathOrSiteURL) {
this.ListSubscriptionsAsync(ItemPathOrSiteURL, null);
}
/// <remarks/>
public void ListSubscriptionsAsync(string ItemPathOrSiteURL, object userState) {
if ((this.ListSubscriptionsOperationCompleted == null)) {
this.ListSubscriptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListSubscriptionsOperationCompleted);
}
this.InvokeAsync("ListSubscriptions", new object[] {
ItemPathOrSiteURL}, this.ListSubscriptionsOperationCompleted, userState);
}
private void OnListSubscriptionsOperationCompleted(object arg) {
if ((this.ListSubscriptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListSubscriptionsCompleted(this, new ListSubscriptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListMySu" +
"bscriptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("SubscriptionItems")]
public Subscription[] ListMySubscriptions(string ItemPathOrSiteURL) {
object[] results = this.Invoke("ListMySubscriptions", new object[] {
ItemPathOrSiteURL});
return ((Subscription[])(results[0]));
}
/// <remarks/>
public void ListMySubscriptionsAsync(string ItemPathOrSiteURL) {
this.ListMySubscriptionsAsync(ItemPathOrSiteURL, null);
}
/// <remarks/>
public void ListMySubscriptionsAsync(string ItemPathOrSiteURL, object userState) {
if ((this.ListMySubscriptionsOperationCompleted == null)) {
this.ListMySubscriptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListMySubscriptionsOperationCompleted);
}
this.InvokeAsync("ListMySubscriptions", new object[] {
ItemPathOrSiteURL}, this.ListMySubscriptionsOperationCompleted, userState);
}
private void OnListMySubscriptionsOperationCompleted(object arg) {
if ((this.ListMySubscriptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListMySubscriptionsCompleted(this, new ListMySubscriptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSubs" +
"criptionsUsingDataSource", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("SubscriptionItems")]
public Subscription[] ListSubscriptionsUsingDataSource(string DataSource) {
object[] results = this.Invoke("ListSubscriptionsUsingDataSource", new object[] {
DataSource});
return ((Subscription[])(results[0]));
}
/// <remarks/>
public void ListSubscriptionsUsingDataSourceAsync(string DataSource) {
this.ListSubscriptionsUsingDataSourceAsync(DataSource, null);
}
/// <remarks/>
public void ListSubscriptionsUsingDataSourceAsync(string DataSource, object userState) {
if ((this.ListSubscriptionsUsingDataSourceOperationCompleted == null)) {
this.ListSubscriptionsUsingDataSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListSubscriptionsUsingDataSourceOperationCompleted);
}
this.InvokeAsync("ListSubscriptionsUsingDataSource", new object[] {
DataSource}, this.ListSubscriptionsUsingDataSourceOperationCompleted, userState);
}
private void OnListSubscriptionsUsingDataSourceOperationCompleted(object arg) {
if ((this.ListSubscriptionsUsingDataSourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListSubscriptionsUsingDataSourceCompleted(this, new ListSubscriptionsUsingDataSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSu" +
"bscriptionOwner", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void ChangeSubscriptionOwner(string SubscriptionID, string NewOwner) {
this.Invoke("ChangeSubscriptionOwner", new object[] {
SubscriptionID,
NewOwner});
}
/// <remarks/>
public void ChangeSubscriptionOwnerAsync(string SubscriptionID, string NewOwner) {
this.ChangeSubscriptionOwnerAsync(SubscriptionID, NewOwner, null);
}
/// <remarks/>
public void ChangeSubscriptionOwnerAsync(string SubscriptionID, string NewOwner, object userState) {
if ((this.ChangeSubscriptionOwnerOperationCompleted == null)) {
this.ChangeSubscriptionOwnerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeSubscriptionOwnerOperationCompleted);
}
this.InvokeAsync("ChangeSubscriptionOwner", new object[] {
SubscriptionID,
NewOwner}, this.ChangeSubscriptionOwnerOperationCompleted, userState);
}
private void OnChangeSubscriptionOwnerOperationCompleted(object arg) {
if ((this.ChangeSubscriptionOwnerCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ChangeSubscriptionOwnerCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateDa" +
"taSource", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ItemInfo")]
public CatalogItem CreateDataSource(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties) {
object[] results = this.Invoke("CreateDataSource", new object[] {
DataSource,
Parent,
Overwrite,
Definition,
Properties});
return ((CatalogItem)(results[0]));
}
/// <remarks/>
public void CreateDataSourceAsync(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties) {
this.CreateDataSourceAsync(DataSource, Parent, Overwrite, Definition, Properties, null);
}
/// <remarks/>
public void CreateDataSourceAsync(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties, object userState) {
if ((this.CreateDataSourceOperationCompleted == null)) {
this.CreateDataSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDataSourceOperationCompleted);
}
this.InvokeAsync("CreateDataSource", new object[] {
DataSource,
Parent,
Overwrite,
Definition,
Properties}, this.CreateDataSourceOperationCompleted, userState);
}
private void OnCreateDataSourceOperationCompleted(object arg) {
if ((this.CreateDataSourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateDataSourceCompleted(this, new CreateDataSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/PrepareQ" +
"uery", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("DataSettings")]
public DataSetDefinition PrepareQuery(DataSource DataSource, DataSetDefinition DataSet, out bool Changed, out string[] ParameterNames) {
object[] results = this.Invoke("PrepareQuery", new object[] {
DataSource,
DataSet});
Changed = ((bool)(results[1]));
ParameterNames = ((string[])(results[2]));
return ((DataSetDefinition)(results[0]));
}
/// <remarks/>
public void PrepareQueryAsync(DataSource DataSource, DataSetDefinition DataSet) {
this.PrepareQueryAsync(DataSource, DataSet, null);
}
/// <remarks/>
public void PrepareQueryAsync(DataSource DataSource, DataSetDefinition DataSet, object userState) {
if ((this.PrepareQueryOperationCompleted == null)) {
this.PrepareQueryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPrepareQueryOperationCompleted);
}
this.InvokeAsync("PrepareQuery", new object[] {
DataSource,
DataSet}, this.PrepareQueryOperationCompleted, userState);
}
private void OnPrepareQueryOperationCompleted(object arg) {
if ((this.PrepareQueryCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.PrepareQueryCompleted(this, new PrepareQueryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/EnableDa" +
"taSource", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void EnableDataSource(string DataSource) {
this.Invoke("EnableDataSource", new object[] {
DataSource});
}
/// <remarks/>
public void EnableDataSourceAsync(string DataSource) {
this.EnableDataSourceAsync(DataSource, null);
}
/// <remarks/>
public void EnableDataSourceAsync(string DataSource, object userState) {
if ((this.EnableDataSourceOperationCompleted == null)) {
this.EnableDataSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableDataSourceOperationCompleted);
}
this.InvokeAsync("EnableDataSource", new object[] {
DataSource}, this.EnableDataSourceOperationCompleted, userState);
}
private void OnEnableDataSourceOperationCompleted(object arg) {
if ((this.EnableDataSourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.EnableDataSourceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DisableD" +
"ataSource", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DisableDataSource(string DataSource) {
this.Invoke("DisableDataSource", new object[] {
DataSource});
}
/// <remarks/>
public void DisableDataSourceAsync(string DataSource) {
this.DisableDataSourceAsync(DataSource, null);
}
/// <remarks/>
public void DisableDataSourceAsync(string DataSource, object userState) {
if ((this.DisableDataSourceOperationCompleted == null)) {
this.DisableDataSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableDataSourceOperationCompleted);
}
this.InvokeAsync("DisableDataSource", new object[] {
DataSource}, this.DisableDataSourceOperationCompleted, userState);
}
private void OnDisableDataSourceOperationCompleted(object arg) {
if ((this.DisableDataSourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DisableDataSourceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetDataS" +
"ourceContents", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetDataSourceContents(string DataSource, DataSourceDefinition Definition) {
this.Invoke("SetDataSourceContents", new object[] {
DataSource,
Definition});
}
/// <remarks/>
public void SetDataSourceContentsAsync(string DataSource, DataSourceDefinition Definition) {
this.SetDataSourceContentsAsync(DataSource, Definition, null);
}
/// <remarks/>
public void SetDataSourceContentsAsync(string DataSource, DataSourceDefinition Definition, object userState) {
if ((this.SetDataSourceContentsOperationCompleted == null)) {
this.SetDataSourceContentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDataSourceContentsOperationCompleted);
}
this.InvokeAsync("SetDataSourceContents", new object[] {
DataSource,
Definition}, this.SetDataSourceContentsOperationCompleted, userState);
}
private void OnSetDataSourceContentsOperationCompleted(object arg) {
if ((this.SetDataSourceContentsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetDataSourceContentsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetDataS" +
"ourceContents", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Definition")]
public DataSourceDefinition GetDataSourceContents(string DataSource) {
object[] results = this.Invoke("GetDataSourceContents", new object[] {
DataSource});
return ((DataSourceDefinition)(results[0]));
}
/// <remarks/>
public void GetDataSourceContentsAsync(string DataSource) {
this.GetDataSourceContentsAsync(DataSource, null);
}
/// <remarks/>
public void GetDataSourceContentsAsync(string DataSource, object userState) {
if ((this.GetDataSourceContentsOperationCompleted == null)) {
this.GetDataSourceContentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDataSourceContentsOperationCompleted);
}
this.InvokeAsync("GetDataSourceContents", new object[] {
DataSource}, this.GetDataSourceContentsOperationCompleted, userState);
}
private void OnGetDataSourceContentsOperationCompleted(object arg) {
if ((this.GetDataSourceContentsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDataSourceContentsCompleted(this, new GetDataSourceContentsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListData" +
"baseCredentialRetrievalOptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListDatabaseCredentialRetrievalOptions() {
object[] results = this.Invoke("ListDatabaseCredentialRetrievalOptions", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListDatabaseCredentialRetrievalOptionsAsync() {
this.ListDatabaseCredentialRetrievalOptionsAsync(null);
}
/// <remarks/>
public void ListDatabaseCredentialRetrievalOptionsAsync(object userState) {
if ((this.ListDatabaseCredentialRetrievalOptionsOperationCompleted == null)) {
this.ListDatabaseCredentialRetrievalOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListDatabaseCredentialRetrievalOptionsOperationCompleted);
}
this.InvokeAsync("ListDatabaseCredentialRetrievalOptions", new object[0], this.ListDatabaseCredentialRetrievalOptionsOperationCompleted, userState);
}
private void OnListDatabaseCredentialRetrievalOptionsOperationCompleted(object arg) {
if ((this.ListDatabaseCredentialRetrievalOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListDatabaseCredentialRetrievalOptionsCompleted(this, new ListDatabaseCredentialRetrievalOptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemD" +
"ataSources", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemDataSources(string ItemPath, DataSource[] DataSources) {
this.Invoke("SetItemDataSources", new object[] {
ItemPath,
DataSources});
}
/// <remarks/>
public void SetItemDataSourcesAsync(string ItemPath, DataSource[] DataSources) {
this.SetItemDataSourcesAsync(ItemPath, DataSources, null);
}
/// <remarks/>
public void SetItemDataSourcesAsync(string ItemPath, DataSource[] DataSources, object userState) {
if ((this.SetItemDataSourcesOperationCompleted == null)) {
this.SetItemDataSourcesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemDataSourcesOperationCompleted);
}
this.InvokeAsync("SetItemDataSources", new object[] {
ItemPath,
DataSources}, this.SetItemDataSourcesOperationCompleted, userState);
}
private void OnSetItemDataSourcesOperationCompleted(object arg) {
if ((this.SetItemDataSourcesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemDataSourcesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemD" +
"ataSources", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("DataSources")]
public DataSource[] GetItemDataSources(string ItemPath) {
object[] results = this.Invoke("GetItemDataSources", new object[] {
ItemPath});
return ((DataSource[])(results[0]));
}
/// <remarks/>
public void GetItemDataSourcesAsync(string ItemPath) {
this.GetItemDataSourcesAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemDataSourcesAsync(string ItemPath, object userState) {
if ((this.GetItemDataSourcesOperationCompleted == null)) {
this.GetItemDataSourcesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemDataSourcesOperationCompleted);
}
this.InvokeAsync("GetItemDataSources", new object[] {
ItemPath}, this.GetItemDataSourcesOperationCompleted, userState);
}
private void OnGetItemDataSourcesOperationCompleted(object arg) {
if ((this.GetItemDataSourcesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemDataSourcesCompleted(this, new GetItemDataSourcesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/TestConn" +
"ectForDataSourceDefinition", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool TestConnectForDataSourceDefinition(DataSourceDefinition DataSourceDefinition, string UserName, string Password, out string ConnectError) {
object[] results = this.Invoke("TestConnectForDataSourceDefinition", new object[] {
DataSourceDefinition,
UserName,
Password});
ConnectError = ((string)(results[1]));
return ((bool)(results[0]));
}
/// <remarks/>
public void TestConnectForDataSourceDefinitionAsync(DataSourceDefinition DataSourceDefinition, string UserName, string Password) {
this.TestConnectForDataSourceDefinitionAsync(DataSourceDefinition, UserName, Password, null);
}
/// <remarks/>
public void TestConnectForDataSourceDefinitionAsync(DataSourceDefinition DataSourceDefinition, string UserName, string Password, object userState) {
if ((this.TestConnectForDataSourceDefinitionOperationCompleted == null)) {
this.TestConnectForDataSourceDefinitionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTestConnectForDataSourceDefinitionOperationCompleted);
}
this.InvokeAsync("TestConnectForDataSourceDefinition", new object[] {
DataSourceDefinition,
UserName,
Password}, this.TestConnectForDataSourceDefinitionOperationCompleted, userState);
}
private void OnTestConnectForDataSourceDefinitionOperationCompleted(object arg) {
if ((this.TestConnectForDataSourceDefinitionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.TestConnectForDataSourceDefinitionCompleted(this, new TestConnectForDataSourceDefinitionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/TestConn" +
"ectForItemDataSource", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool TestConnectForItemDataSource(string ItemPath, string DataSourceName, string UserName, string Password, out string ConnectError) {
object[] results = this.Invoke("TestConnectForItemDataSource", new object[] {
ItemPath,
DataSourceName,
UserName,
Password});
ConnectError = ((string)(results[1]));
return ((bool)(results[0]));
}
/// <remarks/>
public void TestConnectForItemDataSourceAsync(string ItemPath, string DataSourceName, string UserName, string Password) {
this.TestConnectForItemDataSourceAsync(ItemPath, DataSourceName, UserName, Password, null);
}
/// <remarks/>
public void TestConnectForItemDataSourceAsync(string ItemPath, string DataSourceName, string UserName, string Password, object userState) {
if ((this.TestConnectForItemDataSourceOperationCompleted == null)) {
this.TestConnectForItemDataSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTestConnectForItemDataSourceOperationCompleted);
}
this.InvokeAsync("TestConnectForItemDataSource", new object[] {
ItemPath,
DataSourceName,
UserName,
Password}, this.TestConnectForItemDataSourceOperationCompleted, userState);
}
private void OnTestConnectForItemDataSourceOperationCompleted(object arg) {
if ((this.TestConnectForItemDataSourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.TestConnectForItemDataSourceCompleted(this, new TestConnectForItemDataSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateRo" +
"le", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void CreateRole(string Name, string Description, string[] TaskIDs) {
this.Invoke("CreateRole", new object[] {
Name,
Description,
TaskIDs});
}
/// <remarks/>
public void CreateRoleAsync(string Name, string Description, string[] TaskIDs) {
this.CreateRoleAsync(Name, Description, TaskIDs, null);
}
/// <remarks/>
public void CreateRoleAsync(string Name, string Description, string[] TaskIDs, object userState) {
if ((this.CreateRoleOperationCompleted == null)) {
this.CreateRoleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateRoleOperationCompleted);
}
this.InvokeAsync("CreateRole", new object[] {
Name,
Description,
TaskIDs}, this.CreateRoleOperationCompleted, userState);
}
private void OnCreateRoleOperationCompleted(object arg) {
if ((this.CreateRoleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateRoleCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetRoleP" +
"roperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetRoleProperties(string Name, string Description, string[] TaskIDs) {
this.Invoke("SetRoleProperties", new object[] {
Name,
Description,
TaskIDs});
}
/// <remarks/>
public void SetRolePropertiesAsync(string Name, string Description, string[] TaskIDs) {
this.SetRolePropertiesAsync(Name, Description, TaskIDs, null);
}
/// <remarks/>
public void SetRolePropertiesAsync(string Name, string Description, string[] TaskIDs, object userState) {
if ((this.SetRolePropertiesOperationCompleted == null)) {
this.SetRolePropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRolePropertiesOperationCompleted);
}
this.InvokeAsync("SetRoleProperties", new object[] {
Name,
Description,
TaskIDs}, this.SetRolePropertiesOperationCompleted, userState);
}
private void OnSetRolePropertiesOperationCompleted(object arg) {
if ((this.SetRolePropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetRolePropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleP" +
"roperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("TaskIDs")]
public string[] GetRoleProperties(string Name, string SiteUrl, out string Description) {
object[] results = this.Invoke("GetRoleProperties", new object[] {
Name,
SiteUrl});
Description = ((string)(results[1]));
return ((string[])(results[0]));
}
/// <remarks/>
public void GetRolePropertiesAsync(string Name, string SiteUrl) {
this.GetRolePropertiesAsync(Name, SiteUrl, null);
}
/// <remarks/>
public void GetRolePropertiesAsync(string Name, string SiteUrl, object userState) {
if ((this.GetRolePropertiesOperationCompleted == null)) {
this.GetRolePropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRolePropertiesOperationCompleted);
}
this.InvokeAsync("GetRoleProperties", new object[] {
Name,
SiteUrl}, this.GetRolePropertiesOperationCompleted, userState);
}
private void OnGetRolePropertiesOperationCompleted(object arg) {
if ((this.GetRolePropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetRolePropertiesCompleted(this, new GetRolePropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteRo" +
"le", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteRole(string Name) {
this.Invoke("DeleteRole", new object[] {
Name});
}
/// <remarks/>
public void DeleteRoleAsync(string Name) {
this.DeleteRoleAsync(Name, null);
}
/// <remarks/>
public void DeleteRoleAsync(string Name, object userState) {
if ((this.DeleteRoleOperationCompleted == null)) {
this.DeleteRoleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteRoleOperationCompleted);
}
this.InvokeAsync("DeleteRole", new object[] {
Name}, this.DeleteRoleOperationCompleted, userState);
}
private void OnDeleteRoleOperationCompleted(object arg) {
if ((this.DeleteRoleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteRoleCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRole" +
"s", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Roles")]
public Role[] ListRoles(string SecurityScope, string SiteUrl) {
object[] results = this.Invoke("ListRoles", new object[] {
SecurityScope,
SiteUrl});
return ((Role[])(results[0]));
}
/// <remarks/>
public void ListRolesAsync(string SecurityScope, string SiteUrl) {
this.ListRolesAsync(SecurityScope, SiteUrl, null);
}
/// <remarks/>
public void ListRolesAsync(string SecurityScope, string SiteUrl, object userState) {
if ((this.ListRolesOperationCompleted == null)) {
this.ListRolesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListRolesOperationCompleted);
}
this.InvokeAsync("ListRoles", new object[] {
SecurityScope,
SiteUrl}, this.ListRolesOperationCompleted, userState);
}
private void OnListRolesOperationCompleted(object arg) {
if ((this.ListRolesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListRolesCompleted(this, new ListRolesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListTask" +
"s", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Tasks")]
public Task[] ListTasks(string SecurityScope) {
object[] results = this.Invoke("ListTasks", new object[] {
SecurityScope});
return ((Task[])(results[0]));
}
/// <remarks/>
public void ListTasksAsync(string SecurityScope) {
this.ListTasksAsync(SecurityScope, null);
}
/// <remarks/>
public void ListTasksAsync(string SecurityScope, object userState) {
if ((this.ListTasksOperationCompleted == null)) {
this.ListTasksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListTasksOperationCompleted);
}
this.InvokeAsync("ListTasks", new object[] {
SecurityScope}, this.ListTasksOperationCompleted, userState);
}
private void OnListTasksOperationCompleted(object arg) {
if ((this.ListTasksCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListTasksCompleted(this, new ListTasksCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetPolic" +
"ies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetPolicies(string ItemPath, Policy[] Policies) {
this.Invoke("SetPolicies", new object[] {
ItemPath,
Policies});
}
/// <remarks/>
public void SetPoliciesAsync(string ItemPath, Policy[] Policies) {
this.SetPoliciesAsync(ItemPath, Policies, null);
}
/// <remarks/>
public void SetPoliciesAsync(string ItemPath, Policy[] Policies, object userState) {
if ((this.SetPoliciesOperationCompleted == null)) {
this.SetPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPoliciesOperationCompleted);
}
this.InvokeAsync("SetPolicies", new object[] {
ItemPath,
Policies}, this.SetPoliciesOperationCompleted, userState);
}
private void OnSetPoliciesOperationCompleted(object arg) {
if ((this.SetPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetPoliciesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolic" +
"ies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Policies")]
public Policy[] GetPolicies(string ItemPath, out bool InheritParent) {
object[] results = this.Invoke("GetPolicies", new object[] {
ItemPath});
InheritParent = ((bool)(results[1]));
return ((Policy[])(results[0]));
}
/// <remarks/>
public void GetPoliciesAsync(string ItemPath) {
this.GetPoliciesAsync(ItemPath, null);
}
/// <remarks/>
public void GetPoliciesAsync(string ItemPath, object userState) {
if ((this.GetPoliciesOperationCompleted == null)) {
this.GetPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPoliciesOperationCompleted);
}
this.InvokeAsync("GetPolicies", new object[] {
ItemPath}, this.GetPoliciesOperationCompleted, userState);
}
private void OnGetPoliciesOperationCompleted(object arg) {
if ((this.GetPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetPoliciesCompleted(this, new GetPoliciesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemD" +
"ataSourcePrompts", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("DataSourcePrompts")]
public DataSourcePrompt[] GetItemDataSourcePrompts(string ItemPath) {
object[] results = this.Invoke("GetItemDataSourcePrompts", new object[] {
ItemPath});
return ((DataSourcePrompt[])(results[0]));
}
/// <remarks/>
public void GetItemDataSourcePromptsAsync(string ItemPath) {
this.GetItemDataSourcePromptsAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemDataSourcePromptsAsync(string ItemPath, object userState) {
if ((this.GetItemDataSourcePromptsOperationCompleted == null)) {
this.GetItemDataSourcePromptsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemDataSourcePromptsOperationCompleted);
}
this.InvokeAsync("GetItemDataSourcePrompts", new object[] {
ItemPath}, this.GetItemDataSourcePromptsOperationCompleted, userState);
}
private void OnGetItemDataSourcePromptsOperationCompleted(object arg) {
if ((this.GetItemDataSourcePromptsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemDataSourcePromptsCompleted(this, new GetItemDataSourcePromptsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/Generate" +
"Model", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ItemInfo")]
public CatalogItem GenerateModel(string DataSource, string Model, string Parent, Property[] Properties, out Warning[] Warnings) {
object[] results = this.Invoke("GenerateModel", new object[] {
DataSource,
Model,
Parent,
Properties});
Warnings = ((Warning[])(results[1]));
return ((CatalogItem)(results[0]));
}
/// <remarks/>
public void GenerateModelAsync(string DataSource, string Model, string Parent, Property[] Properties) {
this.GenerateModelAsync(DataSource, Model, Parent, Properties, null);
}
/// <remarks/>
public void GenerateModelAsync(string DataSource, string Model, string Parent, Property[] Properties, object userState) {
if ((this.GenerateModelOperationCompleted == null)) {
this.GenerateModelOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGenerateModelOperationCompleted);
}
this.InvokeAsync("GenerateModel", new object[] {
DataSource,
Model,
Parent,
Properties}, this.GenerateModelOperationCompleted, userState);
}
private void OnGenerateModelOperationCompleted(object arg) {
if ((this.GenerateModelCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GenerateModelCompleted(this, new GenerateModelCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetModel" +
"ItemPermissions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Permissions")]
public string[] GetModelItemPermissions(string Model, string ModelItemID) {
object[] results = this.Invoke("GetModelItemPermissions", new object[] {
Model,
ModelItemID});
return ((string[])(results[0]));
}
/// <remarks/>
public void GetModelItemPermissionsAsync(string Model, string ModelItemID) {
this.GetModelItemPermissionsAsync(Model, ModelItemID, null);
}
/// <remarks/>
public void GetModelItemPermissionsAsync(string Model, string ModelItemID, object userState) {
if ((this.GetModelItemPermissionsOperationCompleted == null)) {
this.GetModelItemPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetModelItemPermissionsOperationCompleted);
}
this.InvokeAsync("GetModelItemPermissions", new object[] {
Model,
ModelItemID}, this.GetModelItemPermissionsOperationCompleted, userState);
}
private void OnGetModelItemPermissionsOperationCompleted(object arg) {
if ((this.GetModelItemPermissionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetModelItemPermissionsCompleted(this, new GetModelItemPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModel" +
"ItemPolicies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetModelItemPolicies(string Model, string ModelItemID, Policy[] Policies) {
this.Invoke("SetModelItemPolicies", new object[] {
Model,
ModelItemID,
Policies});
}
/// <remarks/>
public void SetModelItemPoliciesAsync(string Model, string ModelItemID, Policy[] Policies) {
this.SetModelItemPoliciesAsync(Model, ModelItemID, Policies, null);
}
/// <remarks/>
public void SetModelItemPoliciesAsync(string Model, string ModelItemID, Policy[] Policies, object userState) {
if ((this.SetModelItemPoliciesOperationCompleted == null)) {
this.SetModelItemPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetModelItemPoliciesOperationCompleted);
}
this.InvokeAsync("SetModelItemPolicies", new object[] {
Model,
ModelItemID,
Policies}, this.SetModelItemPoliciesOperationCompleted, userState);
}
private void OnSetModelItemPoliciesOperationCompleted(object arg) {
if ((this.SetModelItemPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetModelItemPoliciesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetModel" +
"ItemPolicies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Policies")]
public Policy[] GetModelItemPolicies(string Model, string ModelItemID, out bool InheritParent) {
object[] results = this.Invoke("GetModelItemPolicies", new object[] {
Model,
ModelItemID});
InheritParent = ((bool)(results[1]));
return ((Policy[])(results[0]));
}
/// <remarks/>
public void GetModelItemPoliciesAsync(string Model, string ModelItemID) {
this.GetModelItemPoliciesAsync(Model, ModelItemID, null);
}
/// <remarks/>
public void GetModelItemPoliciesAsync(string Model, string ModelItemID, object userState) {
if ((this.GetModelItemPoliciesOperationCompleted == null)) {
this.GetModelItemPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetModelItemPoliciesOperationCompleted);
}
this.InvokeAsync("GetModelItemPolicies", new object[] {
Model,
ModelItemID}, this.GetModelItemPoliciesOperationCompleted, userState);
}
private void OnGetModelItemPoliciesOperationCompleted(object arg) {
if ((this.GetModelItemPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetModelItemPoliciesCompleted(this, new GetModelItemPoliciesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserM" +
"odel", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Definition", DataType="base64Binary")]
public byte[] GetUserModel(string Model, string Perspective) {
object[] results = this.Invoke("GetUserModel", new object[] {
Model,
Perspective});
return ((byte[])(results[0]));
}
/// <remarks/>
public void GetUserModelAsync(string Model, string Perspective) {
this.GetUserModelAsync(Model, Perspective, null);
}
/// <remarks/>
public void GetUserModelAsync(string Model, string Perspective, object userState) {
if ((this.GetUserModelOperationCompleted == null)) {
this.GetUserModelOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserModelOperationCompleted);
}
this.InvokeAsync("GetUserModel", new object[] {
Model,
Perspective}, this.GetUserModelOperationCompleted, userState);
}
private void OnGetUserModelOperationCompleted(object arg) {
if ((this.GetUserModelCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetUserModelCompleted(this, new GetUserModelCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritM" +
"odelItemParentSecurity", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void InheritModelItemParentSecurity(string Model, string ModelItemID) {
this.Invoke("InheritModelItemParentSecurity", new object[] {
Model,
ModelItemID});
}
/// <remarks/>
public void InheritModelItemParentSecurityAsync(string Model, string ModelItemID) {
this.InheritModelItemParentSecurityAsync(Model, ModelItemID, null);
}
/// <remarks/>
public void InheritModelItemParentSecurityAsync(string Model, string ModelItemID, object userState) {
if ((this.InheritModelItemParentSecurityOperationCompleted == null)) {
this.InheritModelItemParentSecurityOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInheritModelItemParentSecurityOperationCompleted);
}
this.InvokeAsync("InheritModelItemParentSecurity", new object[] {
Model,
ModelItemID}, this.InheritModelItemParentSecurityOperationCompleted, userState);
}
private void OnInheritModelItemParentSecurityOperationCompleted(object arg) {
if ((this.InheritModelItemParentSecurityCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.InheritModelItemParentSecurityCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModel" +
"DrillthroughReports", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetModelDrillthroughReports(string Model, string ModelItemID, ModelDrillthroughReport[] Reports) {
this.Invoke("SetModelDrillthroughReports", new object[] {
Model,
ModelItemID,
Reports});
}
/// <remarks/>
public void SetModelDrillthroughReportsAsync(string Model, string ModelItemID, ModelDrillthroughReport[] Reports) {
this.SetModelDrillthroughReportsAsync(Model, ModelItemID, Reports, null);
}
/// <remarks/>
public void SetModelDrillthroughReportsAsync(string Model, string ModelItemID, ModelDrillthroughReport[] Reports, object userState) {
if ((this.SetModelDrillthroughReportsOperationCompleted == null)) {
this.SetModelDrillthroughReportsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetModelDrillthroughReportsOperationCompleted);
}
this.InvokeAsync("SetModelDrillthroughReports", new object[] {
Model,
ModelItemID,
Reports}, this.SetModelDrillthroughReportsOperationCompleted, userState);
}
private void OnSetModelDrillthroughReportsOperationCompleted(object arg) {
if ((this.SetModelDrillthroughReportsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetModelDrillthroughReportsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListMode" +
"lDrillthroughReports", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Reports")]
public ModelDrillthroughReport[] ListModelDrillthroughReports(string Model, string ModelItemID) {
object[] results = this.Invoke("ListModelDrillthroughReports", new object[] {
Model,
ModelItemID});
return ((ModelDrillthroughReport[])(results[0]));
}
/// <remarks/>
public void ListModelDrillthroughReportsAsync(string Model, string ModelItemID) {
this.ListModelDrillthroughReportsAsync(Model, ModelItemID, null);
}
/// <remarks/>
public void ListModelDrillthroughReportsAsync(string Model, string ModelItemID, object userState) {
if ((this.ListModelDrillthroughReportsOperationCompleted == null)) {
this.ListModelDrillthroughReportsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListModelDrillthroughReportsOperationCompleted);
}
this.InvokeAsync("ListModelDrillthroughReports", new object[] {
Model,
ModelItemID}, this.ListModelDrillthroughReportsOperationCompleted, userState);
}
private void OnListModelDrillthroughReportsOperationCompleted(object arg) {
if ((this.ListModelDrillthroughReportsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListModelDrillthroughReportsCompleted(this, new ListModelDrillthroughReportsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListMode" +
"lItemChildren", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ModelItems")]
public ModelItem[] ListModelItemChildren(string Model, string ModelItemID, bool Recursive) {
object[] results = this.Invoke("ListModelItemChildren", new object[] {
Model,
ModelItemID,
Recursive});
return ((ModelItem[])(results[0]));
}
/// <remarks/>
public void ListModelItemChildrenAsync(string Model, string ModelItemID, bool Recursive) {
this.ListModelItemChildrenAsync(Model, ModelItemID, Recursive, null);
}
/// <remarks/>
public void ListModelItemChildrenAsync(string Model, string ModelItemID, bool Recursive, object userState) {
if ((this.ListModelItemChildrenOperationCompleted == null)) {
this.ListModelItemChildrenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListModelItemChildrenOperationCompleted);
}
this.InvokeAsync("ListModelItemChildren", new object[] {
Model,
ModelItemID,
Recursive}, this.ListModelItemChildrenOperationCompleted, userState);
}
private void OnListModelItemChildrenOperationCompleted(object arg) {
if ((this.ListModelItemChildrenCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListModelItemChildrenCompleted(this, new ListModelItemChildrenCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListMode" +
"lItemTypes", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListModelItemTypes() {
object[] results = this.Invoke("ListModelItemTypes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListModelItemTypesAsync() {
this.ListModelItemTypesAsync(null);
}
/// <remarks/>
public void ListModelItemTypesAsync(object userState) {
if ((this.ListModelItemTypesOperationCompleted == null)) {
this.ListModelItemTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListModelItemTypesOperationCompleted);
}
this.InvokeAsync("ListModelItemTypes", new object[0], this.ListModelItemTypesOperationCompleted, userState);
}
private void OnListModelItemTypesOperationCompleted(object arg) {
if ((this.ListModelItemTypesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListModelItemTypesCompleted(this, new ListModelItemTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListMode" +
"lPerspectives", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("ModelCatalogItems")]
public ModelCatalogItem[] ListModelPerspectives(string Model) {
object[] results = this.Invoke("ListModelPerspectives", new object[] {
Model});
return ((ModelCatalogItem[])(results[0]));
}
/// <remarks/>
public void ListModelPerspectivesAsync(string Model) {
this.ListModelPerspectivesAsync(Model, null);
}
/// <remarks/>
public void ListModelPerspectivesAsync(string Model, object userState) {
if ((this.ListModelPerspectivesOperationCompleted == null)) {
this.ListModelPerspectivesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListModelPerspectivesOperationCompleted);
}
this.InvokeAsync("ListModelPerspectives", new object[] {
Model}, this.ListModelPerspectivesOperationCompleted, userState);
}
private void OnListModelPerspectivesOperationCompleted(object arg) {
if ((this.ListModelPerspectivesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListModelPerspectivesCompleted(this, new ListModelPerspectivesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/Regenera" +
"teModel", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Warnings")]
public Warning[] RegenerateModel(string Model) {
object[] results = this.Invoke("RegenerateModel", new object[] {
Model});
return ((Warning[])(results[0]));
}
/// <remarks/>
public void RegenerateModelAsync(string Model) {
this.RegenerateModelAsync(Model, null);
}
/// <remarks/>
public void RegenerateModelAsync(string Model, object userState) {
if ((this.RegenerateModelOperationCompleted == null)) {
this.RegenerateModelOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegenerateModelOperationCompleted);
}
this.InvokeAsync("RegenerateModel", new object[] {
Model}, this.RegenerateModelOperationCompleted, userState);
}
private void OnRegenerateModelOperationCompleted(object arg) {
if ((this.RegenerateModelCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RegenerateModelCompleted(this, new RegenerateModelCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/RemoveAl" +
"lModelItemPolicies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void RemoveAllModelItemPolicies(string Model) {
this.Invoke("RemoveAllModelItemPolicies", new object[] {
Model});
}
/// <remarks/>
public void RemoveAllModelItemPoliciesAsync(string Model) {
this.RemoveAllModelItemPoliciesAsync(Model, null);
}
/// <remarks/>
public void RemoveAllModelItemPoliciesAsync(string Model, object userState) {
if ((this.RemoveAllModelItemPoliciesOperationCompleted == null)) {
this.RemoveAllModelItemPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveAllModelItemPoliciesOperationCompleted);
}
this.InvokeAsync("RemoveAllModelItemPolicies", new object[] {
Model}, this.RemoveAllModelItemPoliciesOperationCompleted, userState);
}
private void OnRemoveAllModelItemPoliciesOperationCompleted(object arg) {
if ((this.RemoveAllModelItemPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RemoveAllModelItemPoliciesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateSc" +
"hedule", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ScheduleID")]
public string CreateSchedule(string Name, ScheduleDefinition ScheduleDefinition, string SiteUrl) {
object[] results = this.Invoke("CreateSchedule", new object[] {
Name,
ScheduleDefinition,
SiteUrl});
return ((string)(results[0]));
}
/// <remarks/>
public void CreateScheduleAsync(string Name, ScheduleDefinition ScheduleDefinition, string SiteUrl) {
this.CreateScheduleAsync(Name, ScheduleDefinition, SiteUrl, null);
}
/// <remarks/>
public void CreateScheduleAsync(string Name, ScheduleDefinition ScheduleDefinition, string SiteUrl, object userState) {
if ((this.CreateScheduleOperationCompleted == null)) {
this.CreateScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateScheduleOperationCompleted);
}
this.InvokeAsync("CreateSchedule", new object[] {
Name,
ScheduleDefinition,
SiteUrl}, this.CreateScheduleOperationCompleted, userState);
}
private void OnCreateScheduleOperationCompleted(object arg) {
if ((this.CreateScheduleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateScheduleCompleted(this, new CreateScheduleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSc" +
"hedule", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteSchedule(string ScheduleID) {
this.Invoke("DeleteSchedule", new object[] {
ScheduleID});
}
/// <remarks/>
public void DeleteScheduleAsync(string ScheduleID) {
this.DeleteScheduleAsync(ScheduleID, null);
}
/// <remarks/>
public void DeleteScheduleAsync(string ScheduleID, object userState) {
if ((this.DeleteScheduleOperationCompleted == null)) {
this.DeleteScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteScheduleOperationCompleted);
}
this.InvokeAsync("DeleteSchedule", new object[] {
ScheduleID}, this.DeleteScheduleOperationCompleted, userState);
}
private void OnDeleteScheduleOperationCompleted(object arg) {
if ((this.DeleteScheduleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteScheduleCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSche" +
"dules", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Schedules")]
public Schedule[] ListSchedules(string SiteUrl) {
object[] results = this.Invoke("ListSchedules", new object[] {
SiteUrl});
return ((Schedule[])(results[0]));
}
/// <remarks/>
public void ListSchedulesAsync(string SiteUrl) {
this.ListSchedulesAsync(SiteUrl, null);
}
/// <remarks/>
public void ListSchedulesAsync(string SiteUrl, object userState) {
if ((this.ListSchedulesOperationCompleted == null)) {
this.ListSchedulesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListSchedulesOperationCompleted);
}
this.InvokeAsync("ListSchedules", new object[] {
SiteUrl}, this.ListSchedulesOperationCompleted, userState);
}
private void OnListSchedulesOperationCompleted(object arg) {
if ((this.ListSchedulesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListSchedulesCompleted(this, new ListSchedulesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSched" +
"uleProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Schedule")]
public Schedule GetScheduleProperties(string ScheduleID) {
object[] results = this.Invoke("GetScheduleProperties", new object[] {
ScheduleID});
return ((Schedule)(results[0]));
}
/// <remarks/>
public void GetSchedulePropertiesAsync(string ScheduleID) {
this.GetSchedulePropertiesAsync(ScheduleID, null);
}
/// <remarks/>
public void GetSchedulePropertiesAsync(string ScheduleID, object userState) {
if ((this.GetSchedulePropertiesOperationCompleted == null)) {
this.GetSchedulePropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSchedulePropertiesOperationCompleted);
}
this.InvokeAsync("GetScheduleProperties", new object[] {
ScheduleID}, this.GetSchedulePropertiesOperationCompleted, userState);
}
private void OnGetSchedulePropertiesOperationCompleted(object arg) {
if ((this.GetSchedulePropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSchedulePropertiesCompleted(this, new GetSchedulePropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSche" +
"duleStates", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListScheduleStates() {
object[] results = this.Invoke("ListScheduleStates", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListScheduleStatesAsync() {
this.ListScheduleStatesAsync(null);
}
/// <remarks/>
public void ListScheduleStatesAsync(object userState) {
if ((this.ListScheduleStatesOperationCompleted == null)) {
this.ListScheduleStatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListScheduleStatesOperationCompleted);
}
this.InvokeAsync("ListScheduleStates", new object[0], this.ListScheduleStatesOperationCompleted, userState);
}
private void OnListScheduleStatesOperationCompleted(object arg) {
if ((this.ListScheduleStatesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListScheduleStatesCompleted(this, new ListScheduleStatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/PauseSch" +
"edule", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void PauseSchedule(string ScheduleID) {
this.Invoke("PauseSchedule", new object[] {
ScheduleID});
}
/// <remarks/>
public void PauseScheduleAsync(string ScheduleID) {
this.PauseScheduleAsync(ScheduleID, null);
}
/// <remarks/>
public void PauseScheduleAsync(string ScheduleID, object userState) {
if ((this.PauseScheduleOperationCompleted == null)) {
this.PauseScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPauseScheduleOperationCompleted);
}
this.InvokeAsync("PauseSchedule", new object[] {
ScheduleID}, this.PauseScheduleOperationCompleted, userState);
}
private void OnPauseScheduleOperationCompleted(object arg) {
if ((this.PauseScheduleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.PauseScheduleCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ResumeSc" +
"hedule", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void ResumeSchedule(string ScheduleID) {
this.Invoke("ResumeSchedule", new object[] {
ScheduleID});
}
/// <remarks/>
public void ResumeScheduleAsync(string ScheduleID) {
this.ResumeScheduleAsync(ScheduleID, null);
}
/// <remarks/>
public void ResumeScheduleAsync(string ScheduleID, object userState) {
if ((this.ResumeScheduleOperationCompleted == null)) {
this.ResumeScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnResumeScheduleOperationCompleted);
}
this.InvokeAsync("ResumeSchedule", new object[] {
ScheduleID}, this.ResumeScheduleOperationCompleted, userState);
}
private void OnResumeScheduleOperationCompleted(object arg) {
if ((this.ResumeScheduleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ResumeScheduleCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetSched" +
"uleProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetScheduleProperties(string Name, string ScheduleID, ScheduleDefinition ScheduleDefinition) {
this.Invoke("SetScheduleProperties", new object[] {
Name,
ScheduleID,
ScheduleDefinition});
}
/// <remarks/>
public void SetSchedulePropertiesAsync(string Name, string ScheduleID, ScheduleDefinition ScheduleDefinition) {
this.SetSchedulePropertiesAsync(Name, ScheduleID, ScheduleDefinition, null);
}
/// <remarks/>
public void SetSchedulePropertiesAsync(string Name, string ScheduleID, ScheduleDefinition ScheduleDefinition, object userState) {
if ((this.SetSchedulePropertiesOperationCompleted == null)) {
this.SetSchedulePropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSchedulePropertiesOperationCompleted);
}
this.InvokeAsync("SetScheduleProperties", new object[] {
Name,
ScheduleID,
ScheduleDefinition}, this.SetSchedulePropertiesOperationCompleted, userState);
}
private void OnSetSchedulePropertiesOperationCompleted(object arg) {
if ((this.SetSchedulePropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetSchedulePropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSche" +
"duledItems", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Items")]
public CatalogItem[] ListScheduledItems(string ScheduleID) {
object[] results = this.Invoke("ListScheduledItems", new object[] {
ScheduleID});
return ((CatalogItem[])(results[0]));
}
/// <remarks/>
public void ListScheduledItemsAsync(string ScheduleID) {
this.ListScheduledItemsAsync(ScheduleID, null);
}
/// <remarks/>
public void ListScheduledItemsAsync(string ScheduleID, object userState) {
if ((this.ListScheduledItemsOperationCompleted == null)) {
this.ListScheduledItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListScheduledItemsOperationCompleted);
}
this.InvokeAsync("ListScheduledItems", new object[] {
ScheduleID}, this.ListScheduledItemsOperationCompleted, userState);
}
private void OnListScheduledItemsOperationCompleted(object arg) {
if ((this.ListScheduledItemsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListScheduledItemsCompleted(this, new ListScheduledItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemP" +
"arameters", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemParameters(string ItemPath, ItemParameter[] Parameters) {
this.Invoke("SetItemParameters", new object[] {
ItemPath,
Parameters});
}
/// <remarks/>
public void SetItemParametersAsync(string ItemPath, ItemParameter[] Parameters) {
this.SetItemParametersAsync(ItemPath, Parameters, null);
}
/// <remarks/>
public void SetItemParametersAsync(string ItemPath, ItemParameter[] Parameters, object userState) {
if ((this.SetItemParametersOperationCompleted == null)) {
this.SetItemParametersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemParametersOperationCompleted);
}
this.InvokeAsync("SetItemParameters", new object[] {
ItemPath,
Parameters}, this.SetItemParametersOperationCompleted, userState);
}
private void OnSetItemParametersOperationCompleted(object arg) {
if ((this.SetItemParametersCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemParametersCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemP" +
"arameters", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Parameters")]
public ItemParameter[] GetItemParameters(string ItemPath, string HistoryID, bool ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials) {
object[] results = this.Invoke("GetItemParameters", new object[] {
ItemPath,
HistoryID,
ForRendering,
Values,
Credentials});
return ((ItemParameter[])(results[0]));
}
/// <remarks/>
public void GetItemParametersAsync(string ItemPath, string HistoryID, bool ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials) {
this.GetItemParametersAsync(ItemPath, HistoryID, ForRendering, Values, Credentials, null);
}
/// <remarks/>
public void GetItemParametersAsync(string ItemPath, string HistoryID, bool ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials, object userState) {
if ((this.GetItemParametersOperationCompleted == null)) {
this.GetItemParametersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemParametersOperationCompleted);
}
this.InvokeAsync("GetItemParameters", new object[] {
ItemPath,
HistoryID,
ForRendering,
Values,
Credentials}, this.GetItemParametersOperationCompleted, userState);
}
private void OnGetItemParametersOperationCompleted(object arg) {
if ((this.GetItemParametersCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemParametersCompleted(this, new GetItemParametersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListPara" +
"meterTypes", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListParameterTypes() {
object[] results = this.Invoke("ListParameterTypes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListParameterTypesAsync() {
this.ListParameterTypesAsync(null);
}
/// <remarks/>
public void ListParameterTypesAsync(object userState) {
if ((this.ListParameterTypesOperationCompleted == null)) {
this.ListParameterTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListParameterTypesOperationCompleted);
}
this.InvokeAsync("ListParameterTypes", new object[0], this.ListParameterTypesOperationCompleted, userState);
}
private void OnListParameterTypesOperationCompleted(object arg) {
if ((this.ListParameterTypesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListParameterTypesCompleted(this, new ListParameterTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListPara" +
"meterStates", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListParameterStates() {
object[] results = this.Invoke("ListParameterStates", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListParameterStatesAsync() {
this.ListParameterStatesAsync(null);
}
/// <remarks/>
public void ListParameterStatesAsync(object userState) {
if ((this.ListParameterStatesOperationCompleted == null)) {
this.ListParameterStatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListParameterStatesOperationCompleted);
}
this.InvokeAsync("ListParameterStates", new object[0], this.ListParameterStatesOperationCompleted, userState);
}
private void OnListParameterStatesOperationCompleted(object arg) {
if ((this.ListParameterStatesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListParameterStatesCompleted(this, new ListParameterStatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateRe" +
"portEditSession", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("EditSessionID")]
public string CreateReportEditSession(string Report, string Parent, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] Definition, out Warning[] Warnings) {
object[] results = this.Invoke("CreateReportEditSession", new object[] {
Report,
Parent,
Definition});
Warnings = ((Warning[])(results[1]));
return ((string)(results[0]));
}
/// <remarks/>
public void CreateReportEditSessionAsync(string Report, string Parent, byte[] Definition) {
this.CreateReportEditSessionAsync(Report, Parent, Definition, null);
}
/// <remarks/>
public void CreateReportEditSessionAsync(string Report, string Parent, byte[] Definition, object userState) {
if ((this.CreateReportEditSessionOperationCompleted == null)) {
this.CreateReportEditSessionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateReportEditSessionOperationCompleted);
}
this.InvokeAsync("CreateReportEditSession", new object[] {
Report,
Parent,
Definition}, this.CreateReportEditSessionOperationCompleted, userState);
}
private void OnCreateReportEditSessionOperationCompleted(object arg) {
if ((this.CreateReportEditSessionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateReportEditSessionCompleted(this, new CreateReportEditSessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateLi" +
"nkedItem", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void CreateLinkedItem(string ItemPath, string Parent, string Link, Property[] Properties) {
this.Invoke("CreateLinkedItem", new object[] {
ItemPath,
Parent,
Link,
Properties});
}
/// <remarks/>
public void CreateLinkedItemAsync(string ItemPath, string Parent, string Link, Property[] Properties) {
this.CreateLinkedItemAsync(ItemPath, Parent, Link, Properties, null);
}
/// <remarks/>
public void CreateLinkedItemAsync(string ItemPath, string Parent, string Link, Property[] Properties, object userState) {
if ((this.CreateLinkedItemOperationCompleted == null)) {
this.CreateLinkedItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateLinkedItemOperationCompleted);
}
this.InvokeAsync("CreateLinkedItem", new object[] {
ItemPath,
Parent,
Link,
Properties}, this.CreateLinkedItemOperationCompleted, userState);
}
private void OnCreateLinkedItemOperationCompleted(object arg) {
if ((this.CreateLinkedItemCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateLinkedItemCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemL" +
"ink", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemLink(string ItemPath, string Link) {
this.Invoke("SetItemLink", new object[] {
ItemPath,
Link});
}
/// <remarks/>
public void SetItemLinkAsync(string ItemPath, string Link) {
this.SetItemLinkAsync(ItemPath, Link, null);
}
/// <remarks/>
public void SetItemLinkAsync(string ItemPath, string Link, object userState) {
if ((this.SetItemLinkOperationCompleted == null)) {
this.SetItemLinkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemLinkOperationCompleted);
}
this.InvokeAsync("SetItemLink", new object[] {
ItemPath,
Link}, this.SetItemLinkOperationCompleted, userState);
}
private void OnSetItemLinkOperationCompleted(object arg) {
if ((this.SetItemLinkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemLinkCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemL" +
"ink", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Link")]
public string GetItemLink(string ItemPath) {
object[] results = this.Invoke("GetItemLink", new object[] {
ItemPath});
return ((string)(results[0]));
}
/// <remarks/>
public void GetItemLinkAsync(string ItemPath) {
this.GetItemLinkAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemLinkAsync(string ItemPath, object userState) {
if ((this.GetItemLinkOperationCompleted == null)) {
this.GetItemLinkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemLinkOperationCompleted);
}
this.InvokeAsync("GetItemLink", new object[] {
ItemPath}, this.GetItemLinkOperationCompleted, userState);
}
private void OnGetItemLinkOperationCompleted(object arg) {
if ((this.GetItemLinkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemLinkCompleted(this, new GetItemLinkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExec" +
"utionSettings", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListExecutionSettings() {
object[] results = this.Invoke("ListExecutionSettings", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListExecutionSettingsAsync() {
this.ListExecutionSettingsAsync(null);
}
/// <remarks/>
public void ListExecutionSettingsAsync(object userState) {
if ((this.ListExecutionSettingsOperationCompleted == null)) {
this.ListExecutionSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListExecutionSettingsOperationCompleted);
}
this.InvokeAsync("ListExecutionSettings", new object[0], this.ListExecutionSettingsOperationCompleted, userState);
}
private void OnListExecutionSettingsOperationCompleted(object arg) {
if ((this.ListExecutionSettingsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListExecutionSettingsCompleted(this, new ListExecutionSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetExecu" +
"tionOptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetExecutionOptions(string ItemPath, string ExecutionSetting, [System.Xml.Serialization.XmlElementAttribute("NoSchedule", typeof(NoSchedule))] [System.Xml.Serialization.XmlElementAttribute("ScheduleDefinition", typeof(ScheduleDefinition))] [System.Xml.Serialization.XmlElementAttribute("ScheduleReference", typeof(ScheduleReference))] ScheduleDefinitionOrReference Item) {
this.Invoke("SetExecutionOptions", new object[] {
ItemPath,
ExecutionSetting,
Item});
}
/// <remarks/>
public void SetExecutionOptionsAsync(string ItemPath, string ExecutionSetting, ScheduleDefinitionOrReference Item) {
this.SetExecutionOptionsAsync(ItemPath, ExecutionSetting, Item, null);
}
/// <remarks/>
public void SetExecutionOptionsAsync(string ItemPath, string ExecutionSetting, ScheduleDefinitionOrReference Item, object userState) {
if ((this.SetExecutionOptionsOperationCompleted == null)) {
this.SetExecutionOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetExecutionOptionsOperationCompleted);
}
this.InvokeAsync("SetExecutionOptions", new object[] {
ItemPath,
ExecutionSetting,
Item}, this.SetExecutionOptionsOperationCompleted, userState);
}
private void OnSetExecutionOptionsOperationCompleted(object arg) {
if ((this.SetExecutionOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetExecutionOptionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetExecu" +
"tionOptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ExecutionSetting")]
public string GetExecutionOptions(string ItemPath, [System.Xml.Serialization.XmlElementAttribute("NoSchedule", typeof(NoSchedule))] [System.Xml.Serialization.XmlElementAttribute("ScheduleDefinition", typeof(ScheduleDefinition))] [System.Xml.Serialization.XmlElementAttribute("ScheduleReference", typeof(ScheduleReference))] out ScheduleDefinitionOrReference Item) {
object[] results = this.Invoke("GetExecutionOptions", new object[] {
ItemPath});
Item = ((ScheduleDefinitionOrReference)(results[1]));
return ((string)(results[0]));
}
/// <remarks/>
public void GetExecutionOptionsAsync(string ItemPath) {
this.GetExecutionOptionsAsync(ItemPath, null);
}
/// <remarks/>
public void GetExecutionOptionsAsync(string ItemPath, object userState) {
if ((this.GetExecutionOptionsOperationCompleted == null)) {
this.GetExecutionOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExecutionOptionsOperationCompleted);
}
this.InvokeAsync("GetExecutionOptions", new object[] {
ItemPath}, this.GetExecutionOptionsOperationCompleted, userState);
}
private void OnGetExecutionOptionsOperationCompleted(object arg) {
if ((this.GetExecutionOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetExecutionOptionsCompleted(this, new GetExecutionOptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/UpdateIt" +
"emExecutionSnapshot", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void UpdateItemExecutionSnapshot(string ItemPath) {
this.Invoke("UpdateItemExecutionSnapshot", new object[] {
ItemPath});
}
/// <remarks/>
public void UpdateItemExecutionSnapshotAsync(string ItemPath) {
this.UpdateItemExecutionSnapshotAsync(ItemPath, null);
}
/// <remarks/>
public void UpdateItemExecutionSnapshotAsync(string ItemPath, object userState) {
if ((this.UpdateItemExecutionSnapshotOperationCompleted == null)) {
this.UpdateItemExecutionSnapshotOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateItemExecutionSnapshotOperationCompleted);
}
this.InvokeAsync("UpdateItemExecutionSnapshot", new object[] {
ItemPath}, this.UpdateItemExecutionSnapshotOperationCompleted, userState);
}
private void OnUpdateItemExecutionSnapshotOperationCompleted(object arg) {
if ((this.UpdateItemExecutionSnapshotCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UpdateItemExecutionSnapshotCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCache" +
"Options", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetCacheOptions(string ItemPath, bool CacheItem, [System.Xml.Serialization.XmlElementAttribute("ScheduleExpiration", typeof(ScheduleExpiration))] [System.Xml.Serialization.XmlElementAttribute("TimeExpiration", typeof(TimeExpiration))] ExpirationDefinition Item) {
this.Invoke("SetCacheOptions", new object[] {
ItemPath,
CacheItem,
Item});
}
/// <remarks/>
public void SetCacheOptionsAsync(string ItemPath, bool CacheItem, ExpirationDefinition Item) {
this.SetCacheOptionsAsync(ItemPath, CacheItem, Item, null);
}
/// <remarks/>
public void SetCacheOptionsAsync(string ItemPath, bool CacheItem, ExpirationDefinition Item, object userState) {
if ((this.SetCacheOptionsOperationCompleted == null)) {
this.SetCacheOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetCacheOptionsOperationCompleted);
}
this.InvokeAsync("SetCacheOptions", new object[] {
ItemPath,
CacheItem,
Item}, this.SetCacheOptionsOperationCompleted, userState);
}
private void OnSetCacheOptionsOperationCompleted(object arg) {
if ((this.SetCacheOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetCacheOptionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCache" +
"Options", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("CacheItem")]
public bool GetCacheOptions(string ItemPath, [System.Xml.Serialization.XmlElementAttribute("ScheduleExpiration", typeof(ScheduleExpiration))] [System.Xml.Serialization.XmlElementAttribute("TimeExpiration", typeof(TimeExpiration))] out ExpirationDefinition Item) {
object[] results = this.Invoke("GetCacheOptions", new object[] {
ItemPath});
Item = ((ExpirationDefinition)(results[1]));
return ((bool)(results[0]));
}
/// <remarks/>
public void GetCacheOptionsAsync(string ItemPath) {
this.GetCacheOptionsAsync(ItemPath, null);
}
/// <remarks/>
public void GetCacheOptionsAsync(string ItemPath, object userState) {
if ((this.GetCacheOptionsOperationCompleted == null)) {
this.GetCacheOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCacheOptionsOperationCompleted);
}
this.InvokeAsync("GetCacheOptions", new object[] {
ItemPath}, this.GetCacheOptionsOperationCompleted, userState);
}
private void OnGetCacheOptionsOperationCompleted(object arg) {
if ((this.GetCacheOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetCacheOptionsCompleted(this, new GetCacheOptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FlushCac" +
"he", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void FlushCache(string ItemPath) {
this.Invoke("FlushCache", new object[] {
ItemPath});
}
/// <remarks/>
public void FlushCacheAsync(string ItemPath) {
this.FlushCacheAsync(ItemPath, null);
}
/// <remarks/>
public void FlushCacheAsync(string ItemPath, object userState) {
if ((this.FlushCacheOperationCompleted == null)) {
this.FlushCacheOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFlushCacheOperationCompleted);
}
this.InvokeAsync("FlushCache", new object[] {
ItemPath}, this.FlushCacheOperationCompleted, userState);
}
private void OnFlushCacheOperationCompleted(object arg) {
if ((this.FlushCacheCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.FlushCacheCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateIt" +
"emHistorySnapshot", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("HistoryID")]
public string CreateItemHistorySnapshot(string ItemPath, out Warning[] Warnings) {
object[] results = this.Invoke("CreateItemHistorySnapshot", new object[] {
ItemPath});
Warnings = ((Warning[])(results[1]));
return ((string)(results[0]));
}
/// <remarks/>
public void CreateItemHistorySnapshotAsync(string ItemPath) {
this.CreateItemHistorySnapshotAsync(ItemPath, null);
}
/// <remarks/>
public void CreateItemHistorySnapshotAsync(string ItemPath, object userState) {
if ((this.CreateItemHistorySnapshotOperationCompleted == null)) {
this.CreateItemHistorySnapshotOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateItemHistorySnapshotOperationCompleted);
}
this.InvokeAsync("CreateItemHistorySnapshot", new object[] {
ItemPath}, this.CreateItemHistorySnapshotOperationCompleted, userState);
}
private void OnCreateItemHistorySnapshotOperationCompleted(object arg) {
if ((this.CreateItemHistorySnapshotCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateItemHistorySnapshotCompleted(this, new CreateItemHistorySnapshotCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteIt" +
"emHistorySnapshot", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteItemHistorySnapshot(string ItemPath, string HistoryID) {
this.Invoke("DeleteItemHistorySnapshot", new object[] {
ItemPath,
HistoryID});
}
/// <remarks/>
public void DeleteItemHistorySnapshotAsync(string ItemPath, string HistoryID) {
this.DeleteItemHistorySnapshotAsync(ItemPath, HistoryID, null);
}
/// <remarks/>
public void DeleteItemHistorySnapshotAsync(string ItemPath, string HistoryID, object userState) {
if ((this.DeleteItemHistorySnapshotOperationCompleted == null)) {
this.DeleteItemHistorySnapshotOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteItemHistorySnapshotOperationCompleted);
}
this.InvokeAsync("DeleteItemHistorySnapshot", new object[] {
ItemPath,
HistoryID}, this.DeleteItemHistorySnapshotOperationCompleted, userState);
}
private void OnDeleteItemHistorySnapshotOperationCompleted(object arg) {
if ((this.DeleteItemHistorySnapshotCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteItemHistorySnapshotCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemH" +
"istoryLimit", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemHistoryLimit(string ItemPath, bool UseSystem, int HistoryLimit) {
this.Invoke("SetItemHistoryLimit", new object[] {
ItemPath,
UseSystem,
HistoryLimit});
}
/// <remarks/>
public void SetItemHistoryLimitAsync(string ItemPath, bool UseSystem, int HistoryLimit) {
this.SetItemHistoryLimitAsync(ItemPath, UseSystem, HistoryLimit, null);
}
/// <remarks/>
public void SetItemHistoryLimitAsync(string ItemPath, bool UseSystem, int HistoryLimit, object userState) {
if ((this.SetItemHistoryLimitOperationCompleted == null)) {
this.SetItemHistoryLimitOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemHistoryLimitOperationCompleted);
}
this.InvokeAsync("SetItemHistoryLimit", new object[] {
ItemPath,
UseSystem,
HistoryLimit}, this.SetItemHistoryLimitOperationCompleted, userState);
}
private void OnSetItemHistoryLimitOperationCompleted(object arg) {
if ((this.SetItemHistoryLimitCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemHistoryLimitCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemH" +
"istoryLimit", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("HistoryLimit")]
public int GetItemHistoryLimit(string ItemPath, out bool IsSystem, out int SystemLimit) {
object[] results = this.Invoke("GetItemHistoryLimit", new object[] {
ItemPath});
IsSystem = ((bool)(results[1]));
SystemLimit = ((int)(results[2]));
return ((int)(results[0]));
}
/// <remarks/>
public void GetItemHistoryLimitAsync(string ItemPath) {
this.GetItemHistoryLimitAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemHistoryLimitAsync(string ItemPath, object userState) {
if ((this.GetItemHistoryLimitOperationCompleted == null)) {
this.GetItemHistoryLimitOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemHistoryLimitOperationCompleted);
}
this.InvokeAsync("GetItemHistoryLimit", new object[] {
ItemPath}, this.GetItemHistoryLimitOperationCompleted, userState);
}
private void OnGetItemHistoryLimitOperationCompleted(object arg) {
if ((this.GetItemHistoryLimitCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemHistoryLimitCompleted(this, new GetItemHistoryLimitCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemH" +
"istoryOptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetItemHistoryOptions(string ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, [System.Xml.Serialization.XmlElementAttribute("NoSchedule", typeof(NoSchedule))] [System.Xml.Serialization.XmlElementAttribute("ScheduleDefinition", typeof(ScheduleDefinition))] [System.Xml.Serialization.XmlElementAttribute("ScheduleReference", typeof(ScheduleReference))] ScheduleDefinitionOrReference Item) {
this.Invoke("SetItemHistoryOptions", new object[] {
ItemPath,
EnableManualSnapshotCreation,
KeepExecutionSnapshots,
Item});
}
/// <remarks/>
public void SetItemHistoryOptionsAsync(string ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ScheduleDefinitionOrReference Item) {
this.SetItemHistoryOptionsAsync(ItemPath, EnableManualSnapshotCreation, KeepExecutionSnapshots, Item, null);
}
/// <remarks/>
public void SetItemHistoryOptionsAsync(string ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ScheduleDefinitionOrReference Item, object userState) {
if ((this.SetItemHistoryOptionsOperationCompleted == null)) {
this.SetItemHistoryOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetItemHistoryOptionsOperationCompleted);
}
this.InvokeAsync("SetItemHistoryOptions", new object[] {
ItemPath,
EnableManualSnapshotCreation,
KeepExecutionSnapshots,
Item}, this.SetItemHistoryOptionsOperationCompleted, userState);
}
private void OnSetItemHistoryOptionsOperationCompleted(object arg) {
if ((this.SetItemHistoryOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetItemHistoryOptionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemH" +
"istoryOptions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("EnableManualSnapshotCreation")]
public bool GetItemHistoryOptions(string ItemPath, out bool KeepExecutionSnapshots, [System.Xml.Serialization.XmlElementAttribute("NoSchedule", typeof(NoSchedule))] [System.Xml.Serialization.XmlElementAttribute("ScheduleDefinition", typeof(ScheduleDefinition))] [System.Xml.Serialization.XmlElementAttribute("ScheduleReference", typeof(ScheduleReference))] out ScheduleDefinitionOrReference Item) {
object[] results = this.Invoke("GetItemHistoryOptions", new object[] {
ItemPath});
KeepExecutionSnapshots = ((bool)(results[1]));
Item = ((ScheduleDefinitionOrReference)(results[2]));
return ((bool)(results[0]));
}
/// <remarks/>
public void GetItemHistoryOptionsAsync(string ItemPath) {
this.GetItemHistoryOptionsAsync(ItemPath, null);
}
/// <remarks/>
public void GetItemHistoryOptionsAsync(string ItemPath, object userState) {
if ((this.GetItemHistoryOptionsOperationCompleted == null)) {
this.GetItemHistoryOptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetItemHistoryOptionsOperationCompleted);
}
this.InvokeAsync("GetItemHistoryOptions", new object[] {
ItemPath}, this.GetItemHistoryOptionsOperationCompleted, userState);
}
private void OnGetItemHistoryOptionsOperationCompleted(object arg) {
if ((this.GetItemHistoryOptionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetItemHistoryOptionsCompleted(this, new GetItemHistoryOptionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRepor" +
"tServerConfigInfo", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("ServerConfigInfo")]
public string GetReportServerConfigInfo(bool ScaleOut) {
object[] results = this.Invoke("GetReportServerConfigInfo", new object[] {
ScaleOut});
return ((string)(results[0]));
}
/// <remarks/>
public void GetReportServerConfigInfoAsync(bool ScaleOut) {
this.GetReportServerConfigInfoAsync(ScaleOut, null);
}
/// <remarks/>
public void GetReportServerConfigInfoAsync(bool ScaleOut, object userState) {
if ((this.GetReportServerConfigInfoOperationCompleted == null)) {
this.GetReportServerConfigInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetReportServerConfigInfoOperationCompleted);
}
this.InvokeAsync("GetReportServerConfigInfo", new object[] {
ScaleOut}, this.GetReportServerConfigInfoOperationCompleted, userState);
}
private void OnGetReportServerConfigInfoOperationCompleted(object arg) {
if ((this.GetReportServerConfigInfoCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetReportServerConfigInfoCompleted(this, new GetReportServerConfigInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/IsSSLReq" +
"uired", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool IsSSLRequired() {
object[] results = this.Invoke("IsSSLRequired", new object[0]);
return ((bool)(results[0]));
}
/// <remarks/>
public void IsSSLRequiredAsync() {
this.IsSSLRequiredAsync(null);
}
/// <remarks/>
public void IsSSLRequiredAsync(object userState) {
if ((this.IsSSLRequiredOperationCompleted == null)) {
this.IsSSLRequiredOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsSSLRequiredOperationCompleted);
}
this.InvokeAsync("IsSSLRequired", new object[0], this.IsSSLRequiredOperationCompleted, userState);
}
private void OnIsSSLRequiredOperationCompleted(object arg) {
if ((this.IsSSLRequiredCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.IsSSLRequiredCompleted(this, new IsSSLRequiredCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetSyste" +
"mProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetSystemProperties(Property[] Properties) {
this.Invoke("SetSystemProperties", new object[] {
Properties});
}
/// <remarks/>
public void SetSystemPropertiesAsync(Property[] Properties) {
this.SetSystemPropertiesAsync(Properties, null);
}
/// <remarks/>
public void SetSystemPropertiesAsync(Property[] Properties, object userState) {
if ((this.SetSystemPropertiesOperationCompleted == null)) {
this.SetSystemPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSystemPropertiesOperationCompleted);
}
this.InvokeAsync("SetSystemProperties", new object[] {
Properties}, this.SetSystemPropertiesOperationCompleted, userState);
}
private void OnSetSystemPropertiesOperationCompleted(object arg) {
if ((this.SetSystemPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetSystemPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSyste" +
"mProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Values")]
public Property[] GetSystemProperties(Property[] Properties) {
object[] results = this.Invoke("GetSystemProperties", new object[] {
Properties});
return ((Property[])(results[0]));
}
/// <remarks/>
public void GetSystemPropertiesAsync(Property[] Properties) {
this.GetSystemPropertiesAsync(Properties, null);
}
/// <remarks/>
public void GetSystemPropertiesAsync(Property[] Properties, object userState) {
if ((this.GetSystemPropertiesOperationCompleted == null)) {
this.GetSystemPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSystemPropertiesOperationCompleted);
}
this.InvokeAsync("GetSystemProperties", new object[] {
Properties}, this.GetSystemPropertiesOperationCompleted, userState);
}
private void OnGetSystemPropertiesOperationCompleted(object arg) {
if ((this.GetSystemPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSystemPropertiesCompleted(this, new GetSystemPropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetUserS" +
"ettings", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetUserSettings(Property[] Properties) {
this.Invoke("SetUserSettings", new object[] {
Properties});
}
/// <remarks/>
public void SetUserSettingsAsync(Property[] Properties) {
this.SetUserSettingsAsync(Properties, null);
}
/// <remarks/>
public void SetUserSettingsAsync(Property[] Properties, object userState) {
if ((this.SetUserSettingsOperationCompleted == null)) {
this.SetUserSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserSettingsOperationCompleted);
}
this.InvokeAsync("SetUserSettings", new object[] {
Properties}, this.SetUserSettingsOperationCompleted, userState);
}
private void OnSetUserSettingsOperationCompleted(object arg) {
if ((this.SetUserSettingsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetUserSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserS" +
"ettings", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Values")]
public Property[] GetUserSettings(Property[] Properties) {
object[] results = this.Invoke("GetUserSettings", new object[] {
Properties});
return ((Property[])(results[0]));
}
/// <remarks/>
public void GetUserSettingsAsync(Property[] Properties) {
this.GetUserSettingsAsync(Properties, null);
}
/// <remarks/>
public void GetUserSettingsAsync(Property[] Properties, object userState) {
if ((this.GetUserSettingsOperationCompleted == null)) {
this.GetUserSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserSettingsOperationCompleted);
}
this.InvokeAsync("GetUserSettings", new object[] {
Properties}, this.GetUserSettingsOperationCompleted, userState);
}
private void OnGetUserSettingsOperationCompleted(object arg) {
if ((this.GetUserSettingsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetUserSettingsCompleted(this, new GetUserSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetSyste" +
"mPolicies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetSystemPolicies(Policy[] Policies) {
this.Invoke("SetSystemPolicies", new object[] {
Policies});
}
/// <remarks/>
public void SetSystemPoliciesAsync(Policy[] Policies) {
this.SetSystemPoliciesAsync(Policies, null);
}
/// <remarks/>
public void SetSystemPoliciesAsync(Policy[] Policies, object userState) {
if ((this.SetSystemPoliciesOperationCompleted == null)) {
this.SetSystemPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSystemPoliciesOperationCompleted);
}
this.InvokeAsync("SetSystemPolicies", new object[] {
Policies}, this.SetSystemPoliciesOperationCompleted, userState);
}
private void OnSetSystemPoliciesOperationCompleted(object arg) {
if ((this.SetSystemPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetSystemPoliciesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSyste" +
"mPolicies", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Policies")]
public Policy[] GetSystemPolicies() {
object[] results = this.Invoke("GetSystemPolicies", new object[0]);
return ((Policy[])(results[0]));
}
/// <remarks/>
public void GetSystemPoliciesAsync() {
this.GetSystemPoliciesAsync(null);
}
/// <remarks/>
public void GetSystemPoliciesAsync(object userState) {
if ((this.GetSystemPoliciesOperationCompleted == null)) {
this.GetSystemPoliciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSystemPoliciesOperationCompleted);
}
this.InvokeAsync("GetSystemPolicies", new object[0], this.GetSystemPoliciesOperationCompleted, userState);
}
private void OnGetSystemPoliciesOperationCompleted(object arg) {
if ((this.GetSystemPoliciesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSystemPoliciesCompleted(this, new GetSystemPoliciesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExte" +
"nsions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Extensions")]
public Extension[] ListExtensions(string ExtensionType) {
object[] results = this.Invoke("ListExtensions", new object[] {
ExtensionType});
return ((Extension[])(results[0]));
}
/// <remarks/>
public void ListExtensionsAsync(string ExtensionType) {
this.ListExtensionsAsync(ExtensionType, null);
}
/// <remarks/>
public void ListExtensionsAsync(string ExtensionType, object userState) {
if ((this.ListExtensionsOperationCompleted == null)) {
this.ListExtensionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListExtensionsOperationCompleted);
}
this.InvokeAsync("ListExtensions", new object[] {
ExtensionType}, this.ListExtensionsOperationCompleted, userState);
}
private void OnListExtensionsOperationCompleted(object arg) {
if ((this.ListExtensionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListExtensionsCompleted(this, new ListExtensionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExte" +
"nsionTypes", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListExtensionTypes() {
object[] results = this.Invoke("ListExtensionTypes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListExtensionTypesAsync() {
this.ListExtensionTypesAsync(null);
}
/// <remarks/>
public void ListExtensionTypesAsync(object userState) {
if ((this.ListExtensionTypesOperationCompleted == null)) {
this.ListExtensionTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListExtensionTypesOperationCompleted);
}
this.InvokeAsync("ListExtensionTypes", new object[0], this.ListExtensionTypesOperationCompleted, userState);
}
private void OnListExtensionTypesOperationCompleted(object arg) {
if ((this.ListExtensionTypesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListExtensionTypesCompleted(this, new ListExtensionTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListEven" +
"ts", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Events")]
public Event[] ListEvents() {
object[] results = this.Invoke("ListEvents", new object[0]);
return ((Event[])(results[0]));
}
/// <remarks/>
public void ListEventsAsync() {
this.ListEventsAsync(null);
}
/// <remarks/>
public void ListEventsAsync(object userState) {
if ((this.ListEventsOperationCompleted == null)) {
this.ListEventsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListEventsOperationCompleted);
}
this.InvokeAsync("ListEvents", new object[0], this.ListEventsOperationCompleted, userState);
}
private void OnListEventsOperationCompleted(object arg) {
if ((this.ListEventsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListEventsCompleted(this, new ListEventsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FireEven" +
"t", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void FireEvent(string EventType, string EventData, string SiteUrl) {
this.Invoke("FireEvent", new object[] {
EventType,
EventData,
SiteUrl});
}
/// <remarks/>
public void FireEventAsync(string EventType, string EventData, string SiteUrl) {
this.FireEventAsync(EventType, EventData, SiteUrl, null);
}
/// <remarks/>
public void FireEventAsync(string EventType, string EventData, string SiteUrl, object userState) {
if ((this.FireEventOperationCompleted == null)) {
this.FireEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFireEventOperationCompleted);
}
this.InvokeAsync("FireEvent", new object[] {
EventType,
EventData,
SiteUrl}, this.FireEventOperationCompleted, userState);
}
private void OnFireEventOperationCompleted(object arg) {
if ((this.FireEventCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.FireEventCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListJobs" +
"", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Jobs")]
public Job[] ListJobs() {
object[] results = this.Invoke("ListJobs", new object[0]);
return ((Job[])(results[0]));
}
/// <remarks/>
public void ListJobsAsync() {
this.ListJobsAsync(null);
}
/// <remarks/>
public void ListJobsAsync(object userState) {
if ((this.ListJobsOperationCompleted == null)) {
this.ListJobsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListJobsOperationCompleted);
}
this.InvokeAsync("ListJobs", new object[0], this.ListJobsOperationCompleted, userState);
}
private void OnListJobsOperationCompleted(object arg) {
if ((this.ListJobsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListJobsCompleted(this, new ListJobsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListJobT" +
"ypes", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListJobTypes() {
object[] results = this.Invoke("ListJobTypes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListJobTypesAsync() {
this.ListJobTypesAsync(null);
}
/// <remarks/>
public void ListJobTypesAsync(object userState) {
if ((this.ListJobTypesOperationCompleted == null)) {
this.ListJobTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListJobTypesOperationCompleted);
}
this.InvokeAsync("ListJobTypes", new object[0], this.ListJobTypesOperationCompleted, userState);
}
private void OnListJobTypesOperationCompleted(object arg) {
if ((this.ListJobTypesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListJobTypesCompleted(this, new ListJobTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListJobA" +
"ctions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListJobActions() {
object[] results = this.Invoke("ListJobActions", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListJobActionsAsync() {
this.ListJobActionsAsync(null);
}
/// <remarks/>
public void ListJobActionsAsync(object userState) {
if ((this.ListJobActionsOperationCompleted == null)) {
this.ListJobActionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListJobActionsOperationCompleted);
}
this.InvokeAsync("ListJobActions", new object[0], this.ListJobActionsOperationCompleted, userState);
}
private void OnListJobActionsOperationCompleted(object arg) {
if ((this.ListJobActionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListJobActionsCompleted(this, new ListJobActionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListJobS" +
"tates", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListJobStates() {
object[] results = this.Invoke("ListJobStates", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListJobStatesAsync() {
this.ListJobStatesAsync(null);
}
/// <remarks/>
public void ListJobStatesAsync(object userState) {
if ((this.ListJobStatesOperationCompleted == null)) {
this.ListJobStatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListJobStatesOperationCompleted);
}
this.InvokeAsync("ListJobStates", new object[0], this.ListJobStatesOperationCompleted, userState);
}
private void OnListJobStatesOperationCompleted(object arg) {
if ((this.ListJobStatesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListJobStatesCompleted(this, new ListJobStatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CancelJo" +
"b", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool CancelJob(string JobID) {
object[] results = this.Invoke("CancelJob", new object[] {
JobID});
return ((bool)(results[0]));
}
/// <remarks/>
public void CancelJobAsync(string JobID) {
this.CancelJobAsync(JobID, null);
}
/// <remarks/>
public void CancelJobAsync(string JobID, object userState) {
if ((this.CancelJobOperationCompleted == null)) {
this.CancelJobOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelJobOperationCompleted);
}
this.InvokeAsync("CancelJob", new object[] {
JobID}, this.CancelJobOperationCompleted, userState);
}
private void OnCancelJobOperationCompleted(object arg) {
if ((this.CancelJobCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CancelJobCompleted(this, new CancelJobCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateCa" +
"cheRefreshPlan", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("CacheRefreshPlanID")]
public string CreateCacheRefreshPlan(string ItemPath, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
object[] results = this.Invoke("CreateCacheRefreshPlan", new object[] {
ItemPath,
Description,
EventType,
MatchData,
Parameters});
return ((string)(results[0]));
}
/// <remarks/>
public void CreateCacheRefreshPlanAsync(string ItemPath, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.CreateCacheRefreshPlanAsync(ItemPath, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void CreateCacheRefreshPlanAsync(string ItemPath, string Description, string EventType, string MatchData, ParameterValue[] Parameters, object userState) {
if ((this.CreateCacheRefreshPlanOperationCompleted == null)) {
this.CreateCacheRefreshPlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCacheRefreshPlanOperationCompleted);
}
this.InvokeAsync("CreateCacheRefreshPlan", new object[] {
ItemPath,
Description,
EventType,
MatchData,
Parameters}, this.CreateCacheRefreshPlanOperationCompleted, userState);
}
private void OnCreateCacheRefreshPlanOperationCompleted(object arg) {
if ((this.CreateCacheRefreshPlanCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateCacheRefreshPlanCompleted(this, new CreateCacheRefreshPlanCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCache" +
"RefreshPlanProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetCacheRefreshPlanProperties(string CacheRefreshPlanID, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.Invoke("SetCacheRefreshPlanProperties", new object[] {
CacheRefreshPlanID,
Description,
EventType,
MatchData,
Parameters});
}
/// <remarks/>
public void SetCacheRefreshPlanPropertiesAsync(string CacheRefreshPlanID, string Description, string EventType, string MatchData, ParameterValue[] Parameters) {
this.SetCacheRefreshPlanPropertiesAsync(CacheRefreshPlanID, Description, EventType, MatchData, Parameters, null);
}
/// <remarks/>
public void SetCacheRefreshPlanPropertiesAsync(string CacheRefreshPlanID, string Description, string EventType, string MatchData, ParameterValue[] Parameters, object userState) {
if ((this.SetCacheRefreshPlanPropertiesOperationCompleted == null)) {
this.SetCacheRefreshPlanPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetCacheRefreshPlanPropertiesOperationCompleted);
}
this.InvokeAsync("SetCacheRefreshPlanProperties", new object[] {
CacheRefreshPlanID,
Description,
EventType,
MatchData,
Parameters}, this.SetCacheRefreshPlanPropertiesOperationCompleted, userState);
}
private void OnSetCacheRefreshPlanPropertiesOperationCompleted(object arg) {
if ((this.SetCacheRefreshPlanPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetCacheRefreshPlanPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCache" +
"RefreshPlanProperties", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("Description")]
public string GetCacheRefreshPlanProperties(string CacheRefreshPlanID, out string LastRunStatus, out CacheRefreshPlanState State, out string EventType, out string MatchData, out ParameterValue[] Parameters) {
object[] results = this.Invoke("GetCacheRefreshPlanProperties", new object[] {
CacheRefreshPlanID});
LastRunStatus = ((string)(results[1]));
State = ((CacheRefreshPlanState)(results[2]));
EventType = ((string)(results[3]));
MatchData = ((string)(results[4]));
Parameters = ((ParameterValue[])(results[5]));
return ((string)(results[0]));
}
/// <remarks/>
public void GetCacheRefreshPlanPropertiesAsync(string CacheRefreshPlanID) {
this.GetCacheRefreshPlanPropertiesAsync(CacheRefreshPlanID, null);
}
/// <remarks/>
public void GetCacheRefreshPlanPropertiesAsync(string CacheRefreshPlanID, object userState) {
if ((this.GetCacheRefreshPlanPropertiesOperationCompleted == null)) {
this.GetCacheRefreshPlanPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCacheRefreshPlanPropertiesOperationCompleted);
}
this.InvokeAsync("GetCacheRefreshPlanProperties", new object[] {
CacheRefreshPlanID}, this.GetCacheRefreshPlanPropertiesOperationCompleted, userState);
}
private void OnGetCacheRefreshPlanPropertiesOperationCompleted(object arg) {
if ((this.GetCacheRefreshPlanPropertiesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetCacheRefreshPlanPropertiesCompleted(this, new GetCacheRefreshPlanPropertiesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteCa" +
"cheRefreshPlan", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void DeleteCacheRefreshPlan(string CacheRefreshPlanID) {
this.Invoke("DeleteCacheRefreshPlan", new object[] {
CacheRefreshPlanID});
}
/// <remarks/>
public void DeleteCacheRefreshPlanAsync(string CacheRefreshPlanID) {
this.DeleteCacheRefreshPlanAsync(CacheRefreshPlanID, null);
}
/// <remarks/>
public void DeleteCacheRefreshPlanAsync(string CacheRefreshPlanID, object userState) {
if ((this.DeleteCacheRefreshPlanOperationCompleted == null)) {
this.DeleteCacheRefreshPlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteCacheRefreshPlanOperationCompleted);
}
this.InvokeAsync("DeleteCacheRefreshPlan", new object[] {
CacheRefreshPlanID}, this.DeleteCacheRefreshPlanOperationCompleted, userState);
}
private void OnDeleteCacheRefreshPlanOperationCompleted(object arg) {
if ((this.DeleteCacheRefreshPlanCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteCacheRefreshPlanCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListCach" +
"eRefreshPlans", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("CacheRefreshPlans")]
public CacheRefreshPlan[] ListCacheRefreshPlans(string ItemPath) {
object[] results = this.Invoke("ListCacheRefreshPlans", new object[] {
ItemPath});
return ((CacheRefreshPlan[])(results[0]));
}
/// <remarks/>
public void ListCacheRefreshPlansAsync(string ItemPath) {
this.ListCacheRefreshPlansAsync(ItemPath, null);
}
/// <remarks/>
public void ListCacheRefreshPlansAsync(string ItemPath, object userState) {
if ((this.ListCacheRefreshPlansOperationCompleted == null)) {
this.ListCacheRefreshPlansOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListCacheRefreshPlansOperationCompleted);
}
this.InvokeAsync("ListCacheRefreshPlans", new object[] {
ItemPath}, this.ListCacheRefreshPlansOperationCompleted, userState);
}
private void OnListCacheRefreshPlansOperationCompleted(object arg) {
if ((this.ListCacheRefreshPlansCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListCacheRefreshPlansCompleted(this, new ListCacheRefreshPlansCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/LogonUse" +
"r", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void LogonUser(string userName, string password, string authority) {
this.Invoke("LogonUser", new object[] {
userName,
password,
authority});
}
/// <remarks/>
public void LogonUserAsync(string userName, string password, string authority) {
this.LogonUserAsync(userName, password, authority, null);
}
/// <remarks/>
public void LogonUserAsync(string userName, string password, string authority, object userState) {
if ((this.LogonUserOperationCompleted == null)) {
this.LogonUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogonUserOperationCompleted);
}
this.InvokeAsync("LogonUser", new object[] {
userName,
password,
authority}, this.LogonUserOperationCompleted, userState);
}
private void OnLogonUserOperationCompleted(object arg) {
if ((this.LogonUserCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.LogonUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/Logoff", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void Logoff() {
this.Invoke("Logoff", new object[0]);
}
/// <remarks/>
public void LogoffAsync() {
this.LogoffAsync(null);
}
/// <remarks/>
public void LogoffAsync(object userState) {
if ((this.LogoffOperationCompleted == null)) {
this.LogoffOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogoffOperationCompleted);
}
this.InvokeAsync("Logoff", new object[0], this.LogoffOperationCompleted, userState);
}
private void OnLogoffOperationCompleted(object arg) {
if ((this.LogoffCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.LogoffCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPermi" +
"ssions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Permissions")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("Operation")]
public string[] GetPermissions(string ItemPath) {
object[] results = this.Invoke("GetPermissions", new object[] {
ItemPath});
return ((string[])(results[0]));
}
/// <remarks/>
public void GetPermissionsAsync(string ItemPath) {
this.GetPermissionsAsync(ItemPath, null);
}
/// <remarks/>
public void GetPermissionsAsync(string ItemPath, object userState) {
if ((this.GetPermissionsOperationCompleted == null)) {
this.GetPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPermissionsOperationCompleted);
}
this.InvokeAsync("GetPermissions", new object[] {
ItemPath}, this.GetPermissionsOperationCompleted, userState);
}
private void OnGetPermissionsOperationCompleted(object arg) {
if ((this.GetPermissionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetPermissionsCompleted(this, new GetPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSyste" +
"mPermissions", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("Permissions")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("Operation")]
public string[] GetSystemPermissions() {
object[] results = this.Invoke("GetSystemPermissions", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void GetSystemPermissionsAsync() {
this.GetSystemPermissionsAsync(null);
}
/// <remarks/>
public void GetSystemPermissionsAsync(object userState) {
if ((this.GetSystemPermissionsOperationCompleted == null)) {
this.GetSystemPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSystemPermissionsOperationCompleted);
}
this.InvokeAsync("GetSystemPermissions", new object[0], this.GetSystemPermissionsOperationCompleted, userState);
}
private void OnGetSystemPermissionsOperationCompleted(object arg) {
if ((this.GetSystemPermissionsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSystemPermissionsCompleted(this, new GetSystemPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeaderAttribute("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListSecu" +
"rityScopes", RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] ListSecurityScopes() {
object[] results = this.Invoke("ListSecurityScopes", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public void ListSecurityScopesAsync() {
this.ListSecurityScopesAsync(null);
}
/// <remarks/>
public void ListSecurityScopesAsync(object userState) {
if ((this.ListSecurityScopesOperationCompleted == null)) {
this.ListSecurityScopesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListSecurityScopesOperationCompleted);
}
this.InvokeAsync("ListSecurityScopes", new object[0], this.ListSecurityScopesOperationCompleted, userState);
}
private void OnListSecurityScopesOperationCompleted(object arg) {
if ((this.ListSecurityScopesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ListSecurityScopesCompleted(this, new ListSecurityScopesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", IsNullable=false)]
public partial class ServerInfoHeader : System.Web.Services.Protocols.SoapHeader {
private string reportServerVersionNumberField;
private string reportServerEditionField;
private string reportServerVersionField;
private string reportServerDateTimeField;
private TimeZoneInformation reportServerTimeZoneInfoField;
private System.Xml.XmlAttribute[] anyAttrField;
/// <remarks/>
public string ReportServerVersionNumber {
get {
return this.reportServerVersionNumberField;
}
set {
this.reportServerVersionNumberField = value;
}
}
/// <remarks/>
public string ReportServerEdition {
get {
return this.reportServerEditionField;
}
set {
this.reportServerEditionField = value;
}
}
/// <remarks/>
public string ReportServerVersion {
get {
return this.reportServerVersionField;
}
set {
this.reportServerVersionField = value;
}
}
/// <remarks/>
public string ReportServerDateTime {
get {
return this.reportServerDateTimeField;
}
set {
this.reportServerDateTimeField = value;
}
}
/// <remarks/>
public TimeZoneInformation ReportServerTimeZoneInfo {
get {
return this.reportServerTimeZoneInfoField;
}
set {
this.reportServerTimeZoneInfoField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr {
get {
return this.anyAttrField;
}
set {
this.anyAttrField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class TimeZoneInformation {
private int biasField;
private int standardBiasField;
private SYSTEMTIME standardDateField;
private int daylightBiasField;
private SYSTEMTIME daylightDateField;
/// <remarks/>
public int Bias {
get {
return this.biasField;
}
set {
this.biasField = value;
}
}
/// <remarks/>
public int StandardBias {
get {
return this.standardBiasField;
}
set {
this.standardBiasField = value;
}
}
/// <remarks/>
public SYSTEMTIME StandardDate {
get {
return this.standardDateField;
}
set {
this.standardDateField = value;
}
}
/// <remarks/>
public int DaylightBias {
get {
return this.daylightBiasField;
}
set {
this.daylightBiasField = value;
}
}
/// <remarks/>
public SYSTEMTIME DaylightDate {
get {
return this.daylightDateField;
}
set {
this.daylightDateField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class SYSTEMTIME {
private short yearField;
private short monthField;
private short dayOfWeekField;
private short dayField;
private short hourField;
private short minuteField;
private short secondField;
private short millisecondsField;
/// <remarks/>
public short year {
get {
return this.yearField;
}
set {
this.yearField = value;
}
}
/// <remarks/>
public short month {
get {
return this.monthField;
}
set {
this.monthField = value;
}
}
/// <remarks/>
public short dayOfWeek {
get {
return this.dayOfWeekField;
}
set {
this.dayOfWeekField = value;
}
}
/// <remarks/>
public short day {
get {
return this.dayField;
}
set {
this.dayField = value;
}
}
/// <remarks/>
public short hour {
get {
return this.hourField;
}
set {
this.hourField = value;
}
}
/// <remarks/>
public short minute {
get {
return this.minuteField;
}
set {
this.minuteField = value;
}
}
/// <remarks/>
public short second {
get {
return this.secondField;
}
set {
this.secondField = value;
}
}
/// <remarks/>
public short milliseconds {
get {
return this.millisecondsField;
}
set {
this.millisecondsField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class CacheRefreshPlan {
private string cacheRefreshPlanIDField;
private string itemPathField;
private string descriptionField;
private CacheRefreshPlanState stateField;
private System.DateTime lastExecutedField;
private System.DateTime modifiedDateField;
private string modifiedByField;
private string lastRunStatusField;
/// <remarks/>
public string CacheRefreshPlanID {
get {
return this.cacheRefreshPlanIDField;
}
set {
this.cacheRefreshPlanIDField = value;
}
}
/// <remarks/>
public string ItemPath {
get {
return this.itemPathField;
}
set {
this.itemPathField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public CacheRefreshPlanState State {
get {
return this.stateField;
}
set {
this.stateField = value;
}
}
/// <remarks/>
public System.DateTime LastExecuted {
get {
return this.lastExecutedField;
}
set {
this.lastExecutedField = value;
}
}
/// <remarks/>
public System.DateTime ModifiedDate {
get {
return this.modifiedDateField;
}
set {
this.modifiedDateField = value;
}
}
/// <remarks/>
public string ModifiedBy {
get {
return this.modifiedByField;
}
set {
this.modifiedByField = value;
}
}
/// <remarks/>
public string LastRunStatus {
get {
return this.lastRunStatusField;
}
set {
this.lastRunStatusField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class CacheRefreshPlanState {
private bool missingParameterValueField;
private bool invalidParameterValueField;
private bool unknownItemParameterField;
private bool cachingNotEnabledOnItemField;
/// <remarks/>
public bool MissingParameterValue {
get {
return this.missingParameterValueField;
}
set {
this.missingParameterValueField = value;
}
}
/// <remarks/>
public bool InvalidParameterValue {
get {
return this.invalidParameterValueField;
}
set {
this.invalidParameterValueField = value;
}
}
/// <remarks/>
public bool UnknownItemParameter {
get {
return this.unknownItemParameterField;
}
set {
this.unknownItemParameterField = value;
}
}
/// <remarks/>
public bool CachingNotEnabledOnItem {
get {
return this.cachingNotEnabledOnItemField;
}
set {
this.cachingNotEnabledOnItemField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Job {
private string jobIDField;
private string nameField;
private string pathField;
private string descriptionField;
private string machineField;
private string userField;
private System.DateTime startDateTimeField;
private string jobActionNameField;
private string jobTypeNameField;
private string jobStatusNameField;
/// <remarks/>
public string JobID {
get {
return this.jobIDField;
}
set {
this.jobIDField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Path {
get {
return this.pathField;
}
set {
this.pathField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public string Machine {
get {
return this.machineField;
}
set {
this.machineField = value;
}
}
/// <remarks/>
public string User {
get {
return this.userField;
}
set {
this.userField = value;
}
}
/// <remarks/>
public System.DateTime StartDateTime {
get {
return this.startDateTimeField;
}
set {
this.startDateTimeField = value;
}
}
/// <remarks/>
public string JobActionName {
get {
return this.jobActionNameField;
}
set {
this.jobActionNameField = value;
}
}
/// <remarks/>
public string JobTypeName {
get {
return this.jobTypeNameField;
}
set {
this.jobTypeNameField = value;
}
}
/// <remarks/>
public string JobStatusName {
get {
return this.jobStatusNameField;
}
set {
this.jobStatusNameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Event {
private string typeField;
/// <remarks/>
public string Type {
get {
return this.typeField;
}
set {
this.typeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Extension {
private string extensionTypeNameField;
private string nameField;
private string localizedNameField;
private bool visibleField;
private bool isModelGenerationSupportedField;
/// <remarks/>
public string ExtensionTypeName {
get {
return this.extensionTypeNameField;
}
set {
this.extensionTypeNameField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string LocalizedName {
get {
return this.localizedNameField;
}
set {
this.localizedNameField = value;
}
}
/// <remarks/>
public bool Visible {
get {
return this.visibleField;
}
set {
this.visibleField = value;
}
}
/// <remarks/>
public bool IsModelGenerationSupported {
get {
return this.isModelGenerationSupportedField;
}
set {
this.isModelGenerationSupportedField = value;
}
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ScheduleExpiration))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(TimeExpiration))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ExpirationDefinition {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ScheduleExpiration : ExpirationDefinition {
private ScheduleDefinitionOrReference itemField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("ScheduleDefinition", typeof(ScheduleDefinition))]
[System.Xml.Serialization.XmlElementAttribute("ScheduleReference", typeof(ScheduleReference))]
public ScheduleDefinitionOrReference Item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ScheduleDefinition : ScheduleDefinitionOrReference {
private RecurrencePattern itemField;
private System.DateTime startDateTimeField;
private System.DateTime endDateField;
private bool endDateFieldSpecified;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("DailyRecurrence", typeof(DailyRecurrence))]
[System.Xml.Serialization.XmlElementAttribute("MinuteRecurrence", typeof(MinuteRecurrence))]
[System.Xml.Serialization.XmlElementAttribute("MonthlyDOWRecurrence", typeof(MonthlyDOWRecurrence))]
[System.Xml.Serialization.XmlElementAttribute("MonthlyRecurrence", typeof(MonthlyRecurrence))]
[System.Xml.Serialization.XmlElementAttribute("WeeklyRecurrence", typeof(WeeklyRecurrence))]
public RecurrencePattern Item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
/// <remarks/>
public System.DateTime StartDateTime {
get {
return this.startDateTimeField;
}
set {
this.startDateTimeField = value;
}
}
/// <remarks/>
public System.DateTime EndDate {
get {
return this.endDateField;
}
set {
this.endDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EndDateSpecified {
get {
return this.endDateFieldSpecified;
}
set {
this.endDateFieldSpecified = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DailyRecurrence : RecurrencePattern {
private int daysIntervalField;
/// <remarks/>
public int DaysInterval {
get {
return this.daysIntervalField;
}
set {
this.daysIntervalField = value;
}
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIncludeAttribute(typeof(MinuteRecurrence))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(WeeklyRecurrence))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(MonthlyRecurrence))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(MonthlyDOWRecurrence))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DailyRecurrence))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class RecurrencePattern {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class MinuteRecurrence : RecurrencePattern {
private int minutesIntervalField;
/// <remarks/>
public int MinutesInterval {
get {
return this.minutesIntervalField;
}
set {
this.minutesIntervalField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class WeeklyRecurrence : RecurrencePattern {
private int weeksIntervalField;
private bool weeksIntervalFieldSpecified;
private DaysOfWeekSelector daysOfWeekField;
/// <remarks/>
public int WeeksInterval {
get {
return this.weeksIntervalField;
}
set {
this.weeksIntervalField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool WeeksIntervalSpecified {
get {
return this.weeksIntervalFieldSpecified;
}
set {
this.weeksIntervalFieldSpecified = value;
}
}
/// <remarks/>
public DaysOfWeekSelector DaysOfWeek {
get {
return this.daysOfWeekField;
}
set {
this.daysOfWeekField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DaysOfWeekSelector {
private bool sundayField;
private bool mondayField;
private bool tuesdayField;
private bool wednesdayField;
private bool thursdayField;
private bool fridayField;
private bool saturdayField;
/// <remarks/>
public bool Sunday {
get {
return this.sundayField;
}
set {
this.sundayField = value;
}
}
/// <remarks/>
public bool Monday {
get {
return this.mondayField;
}
set {
this.mondayField = value;
}
}
/// <remarks/>
public bool Tuesday {
get {
return this.tuesdayField;
}
set {
this.tuesdayField = value;
}
}
/// <remarks/>
public bool Wednesday {
get {
return this.wednesdayField;
}
set {
this.wednesdayField = value;
}
}
/// <remarks/>
public bool Thursday {
get {
return this.thursdayField;
}
set {
this.thursdayField = value;
}
}
/// <remarks/>
public bool Friday {
get {
return this.fridayField;
}
set {
this.fridayField = value;
}
}
/// <remarks/>
public bool Saturday {
get {
return this.saturdayField;
}
set {
this.saturdayField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class MonthlyRecurrence : RecurrencePattern {
private string daysField;
private MonthsOfYearSelector monthsOfYearField;
/// <remarks/>
public string Days {
get {
return this.daysField;
}
set {
this.daysField = value;
}
}
/// <remarks/>
public MonthsOfYearSelector MonthsOfYear {
get {
return this.monthsOfYearField;
}
set {
this.monthsOfYearField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class MonthsOfYearSelector {
private bool januaryField;
private bool februaryField;
private bool marchField;
private bool aprilField;
private bool mayField;
private bool juneField;
private bool julyField;
private bool augustField;
private bool septemberField;
private bool octoberField;
private bool novemberField;
private bool decemberField;
/// <remarks/>
public bool January {
get {
return this.januaryField;
}
set {
this.januaryField = value;
}
}
/// <remarks/>
public bool February {
get {
return this.februaryField;
}
set {
this.februaryField = value;
}
}
/// <remarks/>
public bool March {
get {
return this.marchField;
}
set {
this.marchField = value;
}
}
/// <remarks/>
public bool April {
get {
return this.aprilField;
}
set {
this.aprilField = value;
}
}
/// <remarks/>
public bool May {
get {
return this.mayField;
}
set {
this.mayField = value;
}
}
/// <remarks/>
public bool June {
get {
return this.juneField;
}
set {
this.juneField = value;
}
}
/// <remarks/>
public bool July {
get {
return this.julyField;
}
set {
this.julyField = value;
}
}
/// <remarks/>
public bool August {
get {
return this.augustField;
}
set {
this.augustField = value;
}
}
/// <remarks/>
public bool September {
get {
return this.septemberField;
}
set {
this.septemberField = value;
}
}
/// <remarks/>
public bool October {
get {
return this.octoberField;
}
set {
this.octoberField = value;
}
}
/// <remarks/>
public bool November {
get {
return this.novemberField;
}
set {
this.novemberField = value;
}
}
/// <remarks/>
public bool December {
get {
return this.decemberField;
}
set {
this.decemberField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class MonthlyDOWRecurrence : RecurrencePattern {
private WeekNumberEnum whichWeekField;
private bool whichWeekFieldSpecified;
private DaysOfWeekSelector daysOfWeekField;
private MonthsOfYearSelector monthsOfYearField;
/// <remarks/>
public WeekNumberEnum WhichWeek {
get {
return this.whichWeekField;
}
set {
this.whichWeekField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool WhichWeekSpecified {
get {
return this.whichWeekFieldSpecified;
}
set {
this.whichWeekFieldSpecified = value;
}
}
/// <remarks/>
public DaysOfWeekSelector DaysOfWeek {
get {
return this.daysOfWeekField;
}
set {
this.daysOfWeekField = value;
}
}
/// <remarks/>
public MonthsOfYearSelector MonthsOfYear {
get {
return this.monthsOfYearField;
}
set {
this.monthsOfYearField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum WeekNumberEnum {
/// <remarks/>
FirstWeek,
/// <remarks/>
SecondWeek,
/// <remarks/>
ThirdWeek,
/// <remarks/>
FourthWeek,
/// <remarks/>
LastWeek,
}
/// <remarks/>
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ScheduleReference))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(NoSchedule))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ScheduleDefinition))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ScheduleDefinitionOrReference {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ScheduleReference : ScheduleDefinitionOrReference {
private string scheduleIDField;
private ScheduleDefinition definitionField;
/// <remarks/>
public string ScheduleID {
get {
return this.scheduleIDField;
}
set {
this.scheduleIDField = value;
}
}
/// <remarks/>
public ScheduleDefinition Definition {
get {
return this.definitionField;
}
set {
this.definitionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class NoSchedule : ScheduleDefinitionOrReference {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class TimeExpiration : ExpirationDefinition {
private int minutesField;
/// <remarks/>
public int Minutes {
get {
return this.minutesField;
}
set {
this.minutesField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSourceCredentials {
private string dataSourceNameField;
private string userNameField;
private string passwordField;
/// <remarks/>
public string DataSourceName {
get {
return this.dataSourceNameField;
}
set {
this.dataSourceNameField = value;
}
}
/// <remarks/>
public string UserName {
get {
return this.userNameField;
}
set {
this.userNameField = value;
}
}
/// <remarks/>
public string Password {
get {
return this.passwordField;
}
set {
this.passwordField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ItemParameter {
private string nameField;
private string parameterTypeNameField;
private bool nullableField;
private bool nullableFieldSpecified;
private bool allowBlankField;
private bool allowBlankFieldSpecified;
private bool multiValueField;
private bool multiValueFieldSpecified;
private bool queryParameterField;
private bool queryParameterFieldSpecified;
private string promptField;
private bool promptUserField;
private bool promptUserFieldSpecified;
private string[] dependenciesField;
private bool validValuesQueryBasedField;
private bool validValuesQueryBasedFieldSpecified;
private ValidValue[] validValuesField;
private bool defaultValuesQueryBasedField;
private bool defaultValuesQueryBasedFieldSpecified;
private string[] defaultValuesField;
private string parameterStateNameField;
private string errorMessageField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string ParameterTypeName {
get {
return this.parameterTypeNameField;
}
set {
this.parameterTypeNameField = value;
}
}
/// <remarks/>
public bool Nullable {
get {
return this.nullableField;
}
set {
this.nullableField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool NullableSpecified {
get {
return this.nullableFieldSpecified;
}
set {
this.nullableFieldSpecified = value;
}
}
/// <remarks/>
public bool AllowBlank {
get {
return this.allowBlankField;
}
set {
this.allowBlankField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool AllowBlankSpecified {
get {
return this.allowBlankFieldSpecified;
}
set {
this.allowBlankFieldSpecified = value;
}
}
/// <remarks/>
public bool MultiValue {
get {
return this.multiValueField;
}
set {
this.multiValueField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool MultiValueSpecified {
get {
return this.multiValueFieldSpecified;
}
set {
this.multiValueFieldSpecified = value;
}
}
/// <remarks/>
public bool QueryParameter {
get {
return this.queryParameterField;
}
set {
this.queryParameterField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool QueryParameterSpecified {
get {
return this.queryParameterFieldSpecified;
}
set {
this.queryParameterFieldSpecified = value;
}
}
/// <remarks/>
public string Prompt {
get {
return this.promptField;
}
set {
this.promptField = value;
}
}
/// <remarks/>
public bool PromptUser {
get {
return this.promptUserField;
}
set {
this.promptUserField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PromptUserSpecified {
get {
return this.promptUserFieldSpecified;
}
set {
this.promptUserFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("Dependency")]
public string[] Dependencies {
get {
return this.dependenciesField;
}
set {
this.dependenciesField = value;
}
}
/// <remarks/>
public bool ValidValuesQueryBased {
get {
return this.validValuesQueryBasedField;
}
set {
this.validValuesQueryBasedField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ValidValuesQueryBasedSpecified {
get {
return this.validValuesQueryBasedFieldSpecified;
}
set {
this.validValuesQueryBasedFieldSpecified = value;
}
}
/// <remarks/>
public ValidValue[] ValidValues {
get {
return this.validValuesField;
}
set {
this.validValuesField = value;
}
}
/// <remarks/>
public bool DefaultValuesQueryBased {
get {
return this.defaultValuesQueryBasedField;
}
set {
this.defaultValuesQueryBasedField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DefaultValuesQueryBasedSpecified {
get {
return this.defaultValuesQueryBasedFieldSpecified;
}
set {
this.defaultValuesQueryBasedFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("Value")]
public string[] DefaultValues {
get {
return this.defaultValuesField;
}
set {
this.defaultValuesField = value;
}
}
/// <remarks/>
public string ParameterStateName {
get {
return this.parameterStateNameField;
}
set {
this.parameterStateNameField = value;
}
}
/// <remarks/>
public string ErrorMessage {
get {
return this.errorMessageField;
}
set {
this.errorMessageField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ValidValue {
private string labelField;
private string valueField;
/// <remarks/>
public string Label {
get {
return this.labelField;
}
set {
this.labelField = value;
}
}
/// <remarks/>
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Schedule {
private string scheduleIDField;
private string nameField;
private ScheduleDefinition definitionField;
private string descriptionField;
private string creatorField;
private System.DateTime nextRunTimeField;
private bool nextRunTimeFieldSpecified;
private System.DateTime lastRunTimeField;
private bool lastRunTimeFieldSpecified;
private bool referencesPresentField;
private string scheduleStateNameField;
/// <remarks/>
public string ScheduleID {
get {
return this.scheduleIDField;
}
set {
this.scheduleIDField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public ScheduleDefinition Definition {
get {
return this.definitionField;
}
set {
this.definitionField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public string Creator {
get {
return this.creatorField;
}
set {
this.creatorField = value;
}
}
/// <remarks/>
public System.DateTime NextRunTime {
get {
return this.nextRunTimeField;
}
set {
this.nextRunTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool NextRunTimeSpecified {
get {
return this.nextRunTimeFieldSpecified;
}
set {
this.nextRunTimeFieldSpecified = value;
}
}
/// <remarks/>
public System.DateTime LastRunTime {
get {
return this.lastRunTimeField;
}
set {
this.lastRunTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool LastRunTimeSpecified {
get {
return this.lastRunTimeFieldSpecified;
}
set {
this.lastRunTimeFieldSpecified = value;
}
}
/// <remarks/>
public bool ReferencesPresent {
get {
return this.referencesPresentField;
}
set {
this.referencesPresentField = value;
}
}
/// <remarks/>
public string ScheduleStateName {
get {
return this.scheduleStateNameField;
}
set {
this.scheduleStateNameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ModelPerspective {
private string idField;
private string nameField;
private string descriptionField;
/// <remarks/>
public string ID {
get {
return this.idField;
}
set {
this.idField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ModelCatalogItem {
private string modelField;
private string descriptionField;
private ModelPerspective[] perspectivesField;
/// <remarks/>
public string Model {
get {
return this.modelField;
}
set {
this.modelField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public ModelPerspective[] Perspectives {
get {
return this.perspectivesField;
}
set {
this.perspectivesField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ModelItem {
private string idField;
private string nameField;
private string modelItemTypeNameField;
private string descriptionField;
private ModelItem[] modelItemsField;
/// <remarks/>
public string ID {
get {
return this.idField;
}
set {
this.idField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string ModelItemTypeName {
get {
return this.modelItemTypeNameField;
}
set {
this.modelItemTypeNameField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public ModelItem[] ModelItems {
get {
return this.modelItemsField;
}
set {
this.modelItemsField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ModelDrillthroughReport {
private string pathField;
private DrillthroughType typeField;
/// <remarks/>
public string Path {
get {
return this.pathField;
}
set {
this.pathField = value;
}
}
/// <remarks/>
public DrillthroughType Type {
get {
return this.typeField;
}
set {
this.typeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum DrillthroughType {
/// <remarks/>
Detail,
/// <remarks/>
List,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSourcePrompt {
private string nameField;
private string dataSourceIDField;
private string promptField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string DataSourceID {
get {
return this.dataSourceIDField;
}
set {
this.dataSourceIDField = value;
}
}
/// <remarks/>
public string Prompt {
get {
return this.promptField;
}
set {
this.promptField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Policy {
private string groupUserNameField;
private Role[] rolesField;
/// <remarks/>
public string GroupUserName {
get {
return this.groupUserNameField;
}
set {
this.groupUserNameField = value;
}
}
/// <remarks/>
public Role[] Roles {
get {
return this.rolesField;
}
set {
this.rolesField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Role {
private string nameField;
private string descriptionField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Task {
private string taskIDField;
private string nameField;
private string descriptionField;
/// <remarks/>
public string TaskID {
get {
return this.taskIDField;
}
set {
this.taskIDField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSource {
private string nameField;
private DataSourceDefinitionOrReference itemField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("DataSourceDefinition", typeof(DataSourceDefinition))]
[System.Xml.Serialization.XmlElementAttribute("DataSourceReference", typeof(DataSourceReference))]
[System.Xml.Serialization.XmlElementAttribute("InvalidDataSourceReference", typeof(InvalidDataSourceReference))]
public DataSourceDefinitionOrReference Item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSourceDefinition : DataSourceDefinitionOrReference {
private string extensionField;
private string connectStringField;
private bool useOriginalConnectStringField;
private bool originalConnectStringExpressionBasedField;
private CredentialRetrievalEnum credentialRetrievalField;
private bool windowsCredentialsField;
private bool impersonateUserField;
private bool impersonateUserFieldSpecified;
private string promptField;
private string userNameField;
private string passwordField;
private bool enabledField;
private bool enabledFieldSpecified;
/// <remarks/>
public string Extension {
get {
return this.extensionField;
}
set {
this.extensionField = value;
}
}
/// <remarks/>
public string ConnectString {
get {
return this.connectStringField;
}
set {
this.connectStringField = value;
}
}
/// <remarks/>
public bool UseOriginalConnectString {
get {
return this.useOriginalConnectStringField;
}
set {
this.useOriginalConnectStringField = value;
}
}
/// <remarks/>
public bool OriginalConnectStringExpressionBased {
get {
return this.originalConnectStringExpressionBasedField;
}
set {
this.originalConnectStringExpressionBasedField = value;
}
}
/// <remarks/>
public CredentialRetrievalEnum CredentialRetrieval {
get {
return this.credentialRetrievalField;
}
set {
this.credentialRetrievalField = value;
}
}
/// <remarks/>
public bool WindowsCredentials {
get {
return this.windowsCredentialsField;
}
set {
this.windowsCredentialsField = value;
}
}
/// <remarks/>
public bool ImpersonateUser {
get {
return this.impersonateUserField;
}
set {
this.impersonateUserField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ImpersonateUserSpecified {
get {
return this.impersonateUserFieldSpecified;
}
set {
this.impersonateUserFieldSpecified = value;
}
}
/// <remarks/>
public string Prompt {
get {
return this.promptField;
}
set {
this.promptField = value;
}
}
/// <remarks/>
public string UserName {
get {
return this.userNameField;
}
set {
this.userNameField = value;
}
}
/// <remarks/>
public string Password {
get {
return this.passwordField;
}
set {
this.passwordField = value;
}
}
/// <remarks/>
public bool Enabled {
get {
return this.enabledField;
}
set {
this.enabledField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EnabledSpecified {
get {
return this.enabledFieldSpecified;
}
set {
this.enabledFieldSpecified = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum CredentialRetrievalEnum {
/// <remarks/>
Prompt,
/// <remarks/>
Store,
/// <remarks/>
Integrated,
/// <remarks/>
None,
}
/// <remarks/>
[System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidDataSourceReference))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DataSourceReference))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DataSourceDefinition))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSourceDefinitionOrReference {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class InvalidDataSourceReference : DataSourceDefinitionOrReference {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSourceReference : DataSourceDefinitionOrReference {
private string referenceField;
/// <remarks/>
public string Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Subscription {
private string subscriptionIDField;
private string ownerField;
private string pathField;
private string virtualPathField;
private string reportField;
private ExtensionSettings deliverySettingsField;
private string descriptionField;
private string statusField;
private ActiveState activeField;
private System.DateTime lastExecutedField;
private bool lastExecutedFieldSpecified;
private string modifiedByField;
private System.DateTime modifiedDateField;
private string eventTypeField;
private bool isDataDrivenField;
/// <remarks/>
public string SubscriptionID {
get {
return this.subscriptionIDField;
}
set {
this.subscriptionIDField = value;
}
}
/// <remarks/>
public string Owner {
get {
return this.ownerField;
}
set {
this.ownerField = value;
}
}
/// <remarks/>
public string Path {
get {
return this.pathField;
}
set {
this.pathField = value;
}
}
/// <remarks/>
public string VirtualPath {
get {
return this.virtualPathField;
}
set {
this.virtualPathField = value;
}
}
/// <remarks/>
public string Report {
get {
return this.reportField;
}
set {
this.reportField = value;
}
}
/// <remarks/>
public ExtensionSettings DeliverySettings {
get {
return this.deliverySettingsField;
}
set {
this.deliverySettingsField = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public string Status {
get {
return this.statusField;
}
set {
this.statusField = value;
}
}
/// <remarks/>
public ActiveState Active {
get {
return this.activeField;
}
set {
this.activeField = value;
}
}
/// <remarks/>
public System.DateTime LastExecuted {
get {
return this.lastExecutedField;
}
set {
this.lastExecutedField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool LastExecutedSpecified {
get {
return this.lastExecutedFieldSpecified;
}
set {
this.lastExecutedFieldSpecified = value;
}
}
/// <remarks/>
public string ModifiedBy {
get {
return this.modifiedByField;
}
set {
this.modifiedByField = value;
}
}
/// <remarks/>
public System.DateTime ModifiedDate {
get {
return this.modifiedDateField;
}
set {
this.modifiedDateField = value;
}
}
/// <remarks/>
public string EventType {
get {
return this.eventTypeField;
}
set {
this.eventTypeField = value;
}
}
/// <remarks/>
public bool IsDataDriven {
get {
return this.isDataDrivenField;
}
set {
this.isDataDrivenField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ExtensionSettings {
private string extensionField;
private ParameterValueOrFieldReference[] parameterValuesField;
/// <remarks/>
public string Extension {
get {
return this.extensionField;
}
set {
this.extensionField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute(typeof(ParameterFieldReference))]
[System.Xml.Serialization.XmlArrayItemAttribute(typeof(ParameterValue))]
public ParameterValueOrFieldReference[] ParameterValues {
get {
return this.parameterValuesField;
}
set {
this.parameterValuesField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ParameterFieldReference : ParameterValueOrFieldReference {
private string parameterNameField;
private string fieldAliasField;
/// <remarks/>
public string ParameterName {
get {
return this.parameterNameField;
}
set {
this.parameterNameField = value;
}
}
/// <remarks/>
public string FieldAlias {
get {
return this.fieldAliasField;
}
set {
this.fieldAliasField = value;
}
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ParameterValue))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ParameterFieldReference))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ParameterValueOrFieldReference {
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ParameterValue : ParameterValueOrFieldReference {
private string nameField;
private string valueField;
private string labelField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
/// <remarks/>
public string Label {
get {
return this.labelField;
}
set {
this.labelField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ActiveState {
private bool deliveryExtensionRemovedField;
private bool deliveryExtensionRemovedFieldSpecified;
private bool sharedDataSourceRemovedField;
private bool sharedDataSourceRemovedFieldSpecified;
private bool missingParameterValueField;
private bool missingParameterValueFieldSpecified;
private bool invalidParameterValueField;
private bool invalidParameterValueFieldSpecified;
private bool unknownReportParameterField;
private bool unknownReportParameterFieldSpecified;
private bool disabledByUserField;
private bool disabledByUserFieldSpecified;
/// <remarks/>
public bool DeliveryExtensionRemoved {
get {
return this.deliveryExtensionRemovedField;
}
set {
this.deliveryExtensionRemovedField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DeliveryExtensionRemovedSpecified {
get {
return this.deliveryExtensionRemovedFieldSpecified;
}
set {
this.deliveryExtensionRemovedFieldSpecified = value;
}
}
/// <remarks/>
public bool SharedDataSourceRemoved {
get {
return this.sharedDataSourceRemovedField;
}
set {
this.sharedDataSourceRemovedField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool SharedDataSourceRemovedSpecified {
get {
return this.sharedDataSourceRemovedFieldSpecified;
}
set {
this.sharedDataSourceRemovedFieldSpecified = value;
}
}
/// <remarks/>
public bool MissingParameterValue {
get {
return this.missingParameterValueField;
}
set {
this.missingParameterValueField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool MissingParameterValueSpecified {
get {
return this.missingParameterValueFieldSpecified;
}
set {
this.missingParameterValueFieldSpecified = value;
}
}
/// <remarks/>
public bool InvalidParameterValue {
get {
return this.invalidParameterValueField;
}
set {
this.invalidParameterValueField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool InvalidParameterValueSpecified {
get {
return this.invalidParameterValueFieldSpecified;
}
set {
this.invalidParameterValueFieldSpecified = value;
}
}
/// <remarks/>
public bool UnknownReportParameter {
get {
return this.unknownReportParameterField;
}
set {
this.unknownReportParameterField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool UnknownReportParameterSpecified {
get {
return this.unknownReportParameterFieldSpecified;
}
set {
this.unknownReportParameterFieldSpecified = value;
}
}
/// <remarks/>
public bool DisabledByUser {
get {
return this.disabledByUserField;
}
set {
this.disabledByUserField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DisabledByUserSpecified {
get {
return this.disabledByUserFieldSpecified;
}
set {
this.disabledByUserFieldSpecified = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ExtensionParameter {
private string nameField;
private string displayNameField;
private bool requiredField;
private bool requiredFieldSpecified;
private bool readOnlyField;
private string valueField;
private string errorField;
private bool encryptedField;
private bool isPasswordField;
private ValidValue[] validValuesField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string DisplayName {
get {
return this.displayNameField;
}
set {
this.displayNameField = value;
}
}
/// <remarks/>
public bool Required {
get {
return this.requiredField;
}
set {
this.requiredField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool RequiredSpecified {
get {
return this.requiredFieldSpecified;
}
set {
this.requiredFieldSpecified = value;
}
}
/// <remarks/>
public bool ReadOnly {
get {
return this.readOnlyField;
}
set {
this.readOnlyField = value;
}
}
/// <remarks/>
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
/// <remarks/>
public string Error {
get {
return this.errorField;
}
set {
this.errorField = value;
}
}
/// <remarks/>
public bool Encrypted {
get {
return this.encryptedField;
}
set {
this.encryptedField = value;
}
}
/// <remarks/>
public bool IsPassword {
get {
return this.isPasswordField;
}
set {
this.isPasswordField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("Value")]
public ValidValue[] ValidValues {
get {
return this.validValuesField;
}
set {
this.validValuesField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class QueryDefinition {
private string commandTypeField;
private string commandTextField;
private int timeoutField;
private bool timeoutFieldSpecified;
/// <remarks/>
public string CommandType {
get {
return this.commandTypeField;
}
set {
this.commandTypeField = value;
}
}
/// <remarks/>
public string CommandText {
get {
return this.commandTextField;
}
set {
this.commandTextField = value;
}
}
/// <remarks/>
public int Timeout {
get {
return this.timeoutField;
}
set {
this.timeoutField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool TimeoutSpecified {
get {
return this.timeoutFieldSpecified;
}
set {
this.timeoutFieldSpecified = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Field {
private string aliasField;
private string nameField;
/// <remarks/>
public string Alias {
get {
return this.aliasField;
}
set {
this.aliasField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataSetDefinition {
private Field[] fieldsField;
private QueryDefinition queryField;
private SensitivityEnum caseSensitivityField;
private bool caseSensitivityFieldSpecified;
private string collationField;
private SensitivityEnum accentSensitivityField;
private bool accentSensitivityFieldSpecified;
private SensitivityEnum kanatypeSensitivityField;
private bool kanatypeSensitivityFieldSpecified;
private SensitivityEnum widthSensitivityField;
private bool widthSensitivityFieldSpecified;
private string nameField;
/// <remarks/>
public Field[] Fields {
get {
return this.fieldsField;
}
set {
this.fieldsField = value;
}
}
/// <remarks/>
public QueryDefinition Query {
get {
return this.queryField;
}
set {
this.queryField = value;
}
}
/// <remarks/>
public SensitivityEnum CaseSensitivity {
get {
return this.caseSensitivityField;
}
set {
this.caseSensitivityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool CaseSensitivitySpecified {
get {
return this.caseSensitivityFieldSpecified;
}
set {
this.caseSensitivityFieldSpecified = value;
}
}
/// <remarks/>
public string Collation {
get {
return this.collationField;
}
set {
this.collationField = value;
}
}
/// <remarks/>
public SensitivityEnum AccentSensitivity {
get {
return this.accentSensitivityField;
}
set {
this.accentSensitivityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool AccentSensitivitySpecified {
get {
return this.accentSensitivityFieldSpecified;
}
set {
this.accentSensitivityFieldSpecified = value;
}
}
/// <remarks/>
public SensitivityEnum KanatypeSensitivity {
get {
return this.kanatypeSensitivityField;
}
set {
this.kanatypeSensitivityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool KanatypeSensitivitySpecified {
get {
return this.kanatypeSensitivityFieldSpecified;
}
set {
this.kanatypeSensitivityFieldSpecified = value;
}
}
/// <remarks/>
public SensitivityEnum WidthSensitivity {
get {
return this.widthSensitivityField;
}
set {
this.widthSensitivityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool WidthSensitivitySpecified {
get {
return this.widthSensitivityFieldSpecified;
}
set {
this.widthSensitivityFieldSpecified = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum SensitivityEnum {
/// <remarks/>
True,
/// <remarks/>
False,
/// <remarks/>
Auto,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class DataRetrievalPlan {
private DataSourceDefinitionOrReference itemField;
private DataSetDefinition dataSetField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("DataSourceDefinition", typeof(DataSourceDefinition))]
[System.Xml.Serialization.XmlElementAttribute("DataSourceReference", typeof(DataSourceReference))]
[System.Xml.Serialization.XmlElementAttribute("InvalidDataSourceReference", typeof(InvalidDataSourceReference))]
public DataSourceDefinitionOrReference Item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
/// <remarks/>
public DataSetDefinition DataSet {
get {
return this.dataSetField;
}
set {
this.dataSetField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ItemReferenceData {
private string nameField;
private string referenceField;
private string referenceTypeField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
}
}
/// <remarks/>
public string ReferenceType {
get {
return this.referenceTypeField;
}
set {
this.referenceTypeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ItemReference {
private string nameField;
private string referenceField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class SearchCondition {
private ConditionEnum conditionField;
private bool conditionFieldSpecified;
private string[] valuesField;
private string nameField;
/// <remarks/>
public ConditionEnum Condition {
get {
return this.conditionField;
}
set {
this.conditionField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ConditionSpecified {
get {
return this.conditionFieldSpecified;
}
set {
this.conditionFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("Value")]
public string[] Values {
get {
return this.valuesField;
}
set {
this.valuesField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum ConditionEnum {
/// <remarks/>
Contains,
/// <remarks/>
Equals,
/// <remarks/>
In,
/// <remarks/>
Between,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class ItemHistorySnapshot {
private string historyIDField;
private System.DateTime creationDateField;
private int sizeField;
/// <remarks/>
public string HistoryID {
get {
return this.historyIDField;
}
set {
this.historyIDField = value;
}
}
/// <remarks/>
public System.DateTime CreationDate {
get {
return this.creationDateField;
}
set {
this.creationDateField = value;
}
}
/// <remarks/>
public int Size {
get {
return this.sizeField;
}
set {
this.sizeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Warning {
private string codeField;
private string severityField;
private string objectNameField;
private string objectTypeField;
private string messageField;
/// <remarks/>
public string Code {
get {
return this.codeField;
}
set {
this.codeField = value;
}
}
/// <remarks/>
public string Severity {
get {
return this.severityField;
}
set {
this.severityField = value;
}
}
/// <remarks/>
public string ObjectName {
get {
return this.objectNameField;
}
set {
this.objectNameField = value;
}
}
/// <remarks/>
public string ObjectType {
get {
return this.objectTypeField;
}
set {
this.objectTypeField = value;
}
}
/// <remarks/>
public string Message {
get {
return this.messageField;
}
set {
this.messageField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class CatalogItem {
private string idField;
private string nameField;
private string pathField;
private string virtualPathField;
private string typeNameField;
private int sizeField;
private bool sizeFieldSpecified;
private string descriptionField;
private bool hiddenField;
private bool hiddenFieldSpecified;
private System.DateTime creationDateField;
private bool creationDateFieldSpecified;
private System.DateTime modifiedDateField;
private bool modifiedDateFieldSpecified;
private string createdByField;
private string modifiedByField;
private Property[] itemMetadataField;
/// <remarks/>
public string ID {
get {
return this.idField;
}
set {
this.idField = value;
}
}
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Path {
get {
return this.pathField;
}
set {
this.pathField = value;
}
}
/// <remarks/>
public string VirtualPath {
get {
return this.virtualPathField;
}
set {
this.virtualPathField = value;
}
}
/// <remarks/>
public string TypeName {
get {
return this.typeNameField;
}
set {
this.typeNameField = value;
}
}
/// <remarks/>
public int Size {
get {
return this.sizeField;
}
set {
this.sizeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool SizeSpecified {
get {
return this.sizeFieldSpecified;
}
set {
this.sizeFieldSpecified = value;
}
}
/// <remarks/>
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
/// <remarks/>
public bool Hidden {
get {
return this.hiddenField;
}
set {
this.hiddenField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool HiddenSpecified {
get {
return this.hiddenFieldSpecified;
}
set {
this.hiddenFieldSpecified = value;
}
}
/// <remarks/>
public System.DateTime CreationDate {
get {
return this.creationDateField;
}
set {
this.creationDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool CreationDateSpecified {
get {
return this.creationDateFieldSpecified;
}
set {
this.creationDateFieldSpecified = value;
}
}
/// <remarks/>
public System.DateTime ModifiedDate {
get {
return this.modifiedDateField;
}
set {
this.modifiedDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ModifiedDateSpecified {
get {
return this.modifiedDateFieldSpecified;
}
set {
this.modifiedDateFieldSpecified = value;
}
}
/// <remarks/>
public string CreatedBy {
get {
return this.createdByField;
}
set {
this.createdByField = value;
}
}
/// <remarks/>
public string ModifiedBy {
get {
return this.modifiedByField;
}
set {
this.modifiedByField = value;
}
}
/// <remarks/>
public Property[] ItemMetadata {
get {
return this.itemMetadataField;
}
set {
this.itemMetadataField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public partial class Property {
private string nameField;
private string valueField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", IsNullable=false)]
public partial class ItemNamespaceHeader : System.Web.Services.Protocols.SoapHeader {
private ItemNamespaceEnum itemNamespaceField;
private System.Xml.XmlAttribute[] anyAttrField;
/// <remarks/>
public ItemNamespaceEnum ItemNamespace {
get {
return this.itemNamespaceField;
}
set {
this.itemNamespaceField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr {
get {
return this.anyAttrField;
}
set {
this.anyAttrField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum ItemNamespaceEnum {
/// <remarks/>
PathBased,
/// <remarks/>
GUIDBased,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", IsNullable=false)]
public partial class TrustedUserHeader : System.Web.Services.Protocols.SoapHeader {
private string userNameField;
private byte[] userTokenField;
private System.Xml.XmlAttribute[] anyAttrField;
/// <remarks/>
public string UserName {
get {
return this.userNameField;
}
set {
this.userNameField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
public byte[] UserToken {
get {
return this.userTokenField;
}
set {
this.userTokenField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr {
get {
return this.anyAttrField;
}
set {
this.anyAttrField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public enum BooleanOperatorEnum {
/// <remarks/>
And,
/// <remarks/>
Or,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateCatalogItemCompletedEventHandler(object sender, CreateCatalogItemCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateCatalogItemCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateCatalogItemCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem)(this.results[0]));
}
}
/// <remarks/>
public Warning[] Warnings {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemDefinitionCompletedEventHandler(object sender, SetItemDefinitionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SetItemDefinitionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SetItemDefinitionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Warning[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemDefinitionCompletedEventHandler(object sender, GetItemDefinitionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemDefinitionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemDefinitionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public byte[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((byte[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemTypeCompletedEventHandler(object sender, GetItemTypeCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemTypeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemTypeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteItemCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void MoveItemCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void InheritParentSecurityCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListItemHistoryCompletedEventHandler(object sender, ListItemHistoryCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListItemHistoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListItemHistoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ItemHistorySnapshot[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ItemHistorySnapshot[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListChildrenCompletedEventHandler(object sender, ListChildrenCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListChildrenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListChildrenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListDependentItemsCompletedEventHandler(object sender, ListDependentItemsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListDependentItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListDependentItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void FindItemsCompletedEventHandler(object sender, FindItemsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class FindItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal FindItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListParentsCompletedEventHandler(object sender, ListParentsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListParentsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListParentsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateFolderCompletedEventHandler(object sender, CreateFolderCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetPropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetPropertiesCompletedEventHandler(object sender, GetPropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetPropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetPropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Property[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Property[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemReferencesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemReferencesCompletedEventHandler(object sender, GetItemReferencesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemReferencesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemReferencesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ItemReferenceData[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ItemReferenceData[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListItemTypesCompletedEventHandler(object sender, ListItemTypesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListItemTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListItemTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetSubscriptionPropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetSubscriptionPropertiesCompletedEventHandler(object sender, GetSubscriptionPropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSubscriptionPropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSubscriptionPropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public ExtensionSettings ExtensionSettings {
get {
this.RaiseExceptionIfNecessary();
return ((ExtensionSettings)(this.results[1]));
}
}
/// <remarks/>
public string Description {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[2]));
}
}
/// <remarks/>
public ActiveState Active {
get {
this.RaiseExceptionIfNecessary();
return ((ActiveState)(this.results[3]));
}
}
/// <remarks/>
public string Status {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[4]));
}
}
/// <remarks/>
public string EventType {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[5]));
}
}
/// <remarks/>
public string MatchData {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[6]));
}
}
/// <remarks/>
public ParameterValue[] Parameters {
get {
this.RaiseExceptionIfNecessary();
return ((ParameterValue[])(this.results[7]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetDataDrivenSubscriptionPropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetDataDrivenSubscriptionPropertiesCompletedEventHandler(object sender, GetDataDrivenSubscriptionPropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDataDrivenSubscriptionPropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDataDrivenSubscriptionPropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public ExtensionSettings ExtensionSettings {
get {
this.RaiseExceptionIfNecessary();
return ((ExtensionSettings)(this.results[1]));
}
}
/// <remarks/>
public DataRetrievalPlan DataRetrievalPlan {
get {
this.RaiseExceptionIfNecessary();
return ((DataRetrievalPlan)(this.results[2]));
}
}
/// <remarks/>
public string Description {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[3]));
}
}
/// <remarks/>
public ActiveState Active {
get {
this.RaiseExceptionIfNecessary();
return ((ActiveState)(this.results[4]));
}
}
/// <remarks/>
public string Status {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[5]));
}
}
/// <remarks/>
public string EventType {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[6]));
}
}
/// <remarks/>
public string MatchData {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[7]));
}
}
/// <remarks/>
public ParameterValueOrFieldReference[] Parameters {
get {
this.RaiseExceptionIfNecessary();
return ((ParameterValueOrFieldReference[])(this.results[8]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DisableSubscriptionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void EnableSubscriptionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteSubscriptionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateSubscriptionCompletedEventHandler(object sender, CreateSubscriptionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateSubscriptionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateSubscriptionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateDataDrivenSubscriptionCompletedEventHandler(object sender, CreateDataDrivenSubscriptionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateDataDrivenSubscriptionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateDataDrivenSubscriptionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetExtensionSettingsCompletedEventHandler(object sender, GetExtensionSettingsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetExtensionSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetExtensionSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ExtensionParameter[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ExtensionParameter[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ValidateExtensionSettingsCompletedEventHandler(object sender, ValidateExtensionSettingsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ValidateExtensionSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ValidateExtensionSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ExtensionParameter[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ExtensionParameter[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListSubscriptionsCompletedEventHandler(object sender, ListSubscriptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListSubscriptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListSubscriptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Subscription[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Subscription[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListMySubscriptionsCompletedEventHandler(object sender, ListMySubscriptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListMySubscriptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListMySubscriptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Subscription[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Subscription[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListSubscriptionsUsingDataSourceCompletedEventHandler(object sender, ListSubscriptionsUsingDataSourceCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListSubscriptionsUsingDataSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListSubscriptionsUsingDataSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Subscription[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Subscription[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ChangeSubscriptionOwnerCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateDataSourceCompletedEventHandler(object sender, CreateDataSourceCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateDataSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateDataSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void PrepareQueryCompletedEventHandler(object sender, PrepareQueryCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class PrepareQueryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal PrepareQueryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public DataSetDefinition Result {
get {
this.RaiseExceptionIfNecessary();
return ((DataSetDefinition)(this.results[0]));
}
}
/// <remarks/>
public bool Changed {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[1]));
}
}
/// <remarks/>
public string[] ParameterNames {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[2]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void EnableDataSourceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DisableDataSourceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetDataSourceContentsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetDataSourceContentsCompletedEventHandler(object sender, GetDataSourceContentsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDataSourceContentsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDataSourceContentsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public DataSourceDefinition Result {
get {
this.RaiseExceptionIfNecessary();
return ((DataSourceDefinition)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListDatabaseCredentialRetrievalOptionsCompletedEventHandler(object sender, ListDatabaseCredentialRetrievalOptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListDatabaseCredentialRetrievalOptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListDatabaseCredentialRetrievalOptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemDataSourcesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemDataSourcesCompletedEventHandler(object sender, GetItemDataSourcesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemDataSourcesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemDataSourcesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public DataSource[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((DataSource[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void TestConnectForDataSourceDefinitionCompletedEventHandler(object sender, TestConnectForDataSourceDefinitionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class TestConnectForDataSourceDefinitionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal TestConnectForDataSourceDefinitionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
/// <remarks/>
public string ConnectError {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void TestConnectForItemDataSourceCompletedEventHandler(object sender, TestConnectForItemDataSourceCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class TestConnectForItemDataSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal TestConnectForItemDataSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
/// <remarks/>
public string ConnectError {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateRoleCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetRolePropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetRolePropertiesCompletedEventHandler(object sender, GetRolePropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetRolePropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetRolePropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
/// <remarks/>
public string Description {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteRoleCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListRolesCompletedEventHandler(object sender, ListRolesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListRolesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListRolesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Role[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Role[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListTasksCompletedEventHandler(object sender, ListTasksCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListTasksCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListTasksCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Task[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Task[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetPoliciesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetPoliciesCompletedEventHandler(object sender, GetPoliciesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetPoliciesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetPoliciesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Policy[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Policy[])(this.results[0]));
}
}
/// <remarks/>
public bool InheritParent {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemDataSourcePromptsCompletedEventHandler(object sender, GetItemDataSourcePromptsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemDataSourcePromptsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemDataSourcePromptsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public DataSourcePrompt[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((DataSourcePrompt[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GenerateModelCompletedEventHandler(object sender, GenerateModelCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GenerateModelCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GenerateModelCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem)(this.results[0]));
}
}
/// <remarks/>
public Warning[] Warnings {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetModelItemPermissionsCompletedEventHandler(object sender, GetModelItemPermissionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetModelItemPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetModelItemPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetModelItemPoliciesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetModelItemPoliciesCompletedEventHandler(object sender, GetModelItemPoliciesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetModelItemPoliciesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetModelItemPoliciesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Policy[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Policy[])(this.results[0]));
}
}
/// <remarks/>
public bool InheritParent {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetUserModelCompletedEventHandler(object sender, GetUserModelCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetUserModelCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetUserModelCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public byte[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((byte[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void InheritModelItemParentSecurityCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetModelDrillthroughReportsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListModelDrillthroughReportsCompletedEventHandler(object sender, ListModelDrillthroughReportsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListModelDrillthroughReportsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListModelDrillthroughReportsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ModelDrillthroughReport[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ModelDrillthroughReport[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListModelItemChildrenCompletedEventHandler(object sender, ListModelItemChildrenCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListModelItemChildrenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListModelItemChildrenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ModelItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ModelItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListModelItemTypesCompletedEventHandler(object sender, ListModelItemTypesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListModelItemTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListModelItemTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListModelPerspectivesCompletedEventHandler(object sender, ListModelPerspectivesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListModelPerspectivesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListModelPerspectivesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ModelCatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ModelCatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void RegenerateModelCompletedEventHandler(object sender, RegenerateModelCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class RegenerateModelCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal RegenerateModelCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Warning[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void RemoveAllModelItemPoliciesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateScheduleCompletedEventHandler(object sender, CreateScheduleCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateScheduleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateScheduleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteScheduleCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListSchedulesCompletedEventHandler(object sender, ListSchedulesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListSchedulesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListSchedulesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Schedule[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Schedule[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetSchedulePropertiesCompletedEventHandler(object sender, GetSchedulePropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSchedulePropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSchedulePropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Schedule Result {
get {
this.RaiseExceptionIfNecessary();
return ((Schedule)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListScheduleStatesCompletedEventHandler(object sender, ListScheduleStatesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListScheduleStatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListScheduleStatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void PauseScheduleCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ResumeScheduleCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetSchedulePropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListScheduledItemsCompletedEventHandler(object sender, ListScheduledItemsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListScheduledItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListScheduledItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CatalogItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CatalogItem[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemParametersCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemParametersCompletedEventHandler(object sender, GetItemParametersCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemParametersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemParametersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ItemParameter[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((ItemParameter[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListParameterTypesCompletedEventHandler(object sender, ListParameterTypesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListParameterTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListParameterTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListParameterStatesCompletedEventHandler(object sender, ListParameterStatesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListParameterStatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListParameterStatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateReportEditSessionCompletedEventHandler(object sender, CreateReportEditSessionCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateReportEditSessionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateReportEditSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public Warning[] Warnings {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateLinkedItemCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemLinkCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemLinkCompletedEventHandler(object sender, GetItemLinkCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemLinkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemLinkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListExecutionSettingsCompletedEventHandler(object sender, ListExecutionSettingsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListExecutionSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListExecutionSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetExecutionOptionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetExecutionOptionsCompletedEventHandler(object sender, GetExecutionOptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetExecutionOptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetExecutionOptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public ScheduleDefinitionOrReference Item {
get {
this.RaiseExceptionIfNecessary();
return ((ScheduleDefinitionOrReference)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void UpdateItemExecutionSnapshotCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetCacheOptionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetCacheOptionsCompletedEventHandler(object sender, GetCacheOptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetCacheOptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetCacheOptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
/// <remarks/>
public ExpirationDefinition Item {
get {
this.RaiseExceptionIfNecessary();
return ((ExpirationDefinition)(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void FlushCacheCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateItemHistorySnapshotCompletedEventHandler(object sender, CreateItemHistorySnapshotCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateItemHistorySnapshotCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateItemHistorySnapshotCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public Warning[] Warnings {
get {
this.RaiseExceptionIfNecessary();
return ((Warning[])(this.results[1]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteItemHistorySnapshotCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemHistoryLimitCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemHistoryLimitCompletedEventHandler(object sender, GetItemHistoryLimitCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemHistoryLimitCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemHistoryLimitCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
/// <remarks/>
public bool IsSystem {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[1]));
}
}
/// <remarks/>
public int SystemLimit {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[2]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetItemHistoryOptionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetItemHistoryOptionsCompletedEventHandler(object sender, GetItemHistoryOptionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetItemHistoryOptionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetItemHistoryOptionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
/// <remarks/>
public bool KeepExecutionSnapshots {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[1]));
}
}
/// <remarks/>
public ScheduleDefinitionOrReference Item {
get {
this.RaiseExceptionIfNecessary();
return ((ScheduleDefinitionOrReference)(this.results[2]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetReportServerConfigInfoCompletedEventHandler(object sender, GetReportServerConfigInfoCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetReportServerConfigInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetReportServerConfigInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void IsSSLRequiredCompletedEventHandler(object sender, IsSSLRequiredCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class IsSSLRequiredCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal IsSSLRequiredCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetSystemPropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetSystemPropertiesCompletedEventHandler(object sender, GetSystemPropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSystemPropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSystemPropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Property[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Property[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetUserSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetUserSettingsCompletedEventHandler(object sender, GetUserSettingsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetUserSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetUserSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Property[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Property[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetSystemPoliciesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetSystemPoliciesCompletedEventHandler(object sender, GetSystemPoliciesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSystemPoliciesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSystemPoliciesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Policy[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Policy[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListExtensionsCompletedEventHandler(object sender, ListExtensionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListExtensionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListExtensionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Extension[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Extension[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListExtensionTypesCompletedEventHandler(object sender, ListExtensionTypesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListExtensionTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListExtensionTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListEventsCompletedEventHandler(object sender, ListEventsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListEventsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListEventsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Event[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Event[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void FireEventCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListJobsCompletedEventHandler(object sender, ListJobsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListJobsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListJobsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public Job[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Job[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListJobTypesCompletedEventHandler(object sender, ListJobTypesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListJobTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListJobTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListJobActionsCompletedEventHandler(object sender, ListJobActionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListJobActionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListJobActionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListJobStatesCompletedEventHandler(object sender, ListJobStatesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListJobStatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListJobStatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CancelJobCompletedEventHandler(object sender, CancelJobCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CancelJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CancelJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void CreateCacheRefreshPlanCompletedEventHandler(object sender, CreateCacheRefreshPlanCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateCacheRefreshPlanCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateCacheRefreshPlanCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void SetCacheRefreshPlanPropertiesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetCacheRefreshPlanPropertiesCompletedEventHandler(object sender, GetCacheRefreshPlanPropertiesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetCacheRefreshPlanPropertiesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetCacheRefreshPlanPropertiesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
/// <remarks/>
public string LastRunStatus {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[1]));
}
}
/// <remarks/>
public CacheRefreshPlanState State {
get {
this.RaiseExceptionIfNecessary();
return ((CacheRefreshPlanState)(this.results[2]));
}
}
/// <remarks/>
public string EventType {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[3]));
}
}
/// <remarks/>
public string MatchData {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[4]));
}
}
/// <remarks/>
public ParameterValue[] Parameters {
get {
this.RaiseExceptionIfNecessary();
return ((ParameterValue[])(this.results[5]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void DeleteCacheRefreshPlanCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListCacheRefreshPlansCompletedEventHandler(object sender, ListCacheRefreshPlansCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListCacheRefreshPlansCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListCacheRefreshPlansCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CacheRefreshPlan[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CacheRefreshPlan[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void LogonUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void LogoffCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetPermissionsCompletedEventHandler(object sender, GetPermissionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void GetSystemPermissionsCompletedEventHandler(object sender, GetSystemPermissionsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSystemPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSystemPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
public delegate void ListSecurityScopesCompletedEventHandler(object sender, ListSecurityScopesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ListSecurityScopesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ListSecurityScopesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
}
#pragma warning restore 1591 | 47.386356 | 470 | 0.644745 | [
"MIT"
] | Bhaskers-Blu-Org2/RdlMigration | RdlMigration/Web References/ReportServerApi/Reference.cs | 538,311 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.