Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ root = true
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = false
insert_final_newline = true
trim_trailing_whitespace = true

##########################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public void Trace(string format, params object[] args)
{
logger?.LogTrace(format, args);
}
}
}
2 changes: 1 addition & 1 deletion src/Azure/DataverseService/LinqExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public static IEnumerable<TSource> WhereIf<TSource>(
{
return condition ? source.Where(predicate) : source;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ private Entity GetEntity(Guid entityId, string entityName, string attributeName)
var response = (RetrieveResponse)adminDao.Execute(retrieveRequest);
return response.Entity;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ public Task NotifyOwner(EntityReference recordRef, string title, string message)

return client.ExecuteAsync(request);
}
}
}
2 changes: 1 addition & 1 deletion src/Azure/DataverseService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ public static IServiceCollection AddDataverse(this IServiceCollection services,

return services;
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Helpers/CsvHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ private static object FromString(Type type, string s)
return TypeDescriptor.GetConverter(type).ConvertFromString(null, CultureInfo.InvariantCulture, s);
}
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Helpers/HeaderAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public HeaderAttribute(string name)
{
Name = name;
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Jobs/ExampleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public void Run(EnvironmentConfig env)

CsvHelper.WriteToCsv(env.CsvFolderPath, "ListOfAccounts.csv", accounts);
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Jobs/IJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ namespace ConsoleJobs.Jobs;
internal interface IJob
{
void Run(EnvironmentConfig env);
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ private static void ExecuteJobOnEnvironment(Environment env, IJob job)
#pragma warning restore CA1303 // Do not pass literals as localized parameters
Console.ReadKey();
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Setup/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public void Log<TState>(
Console.WriteLine($"[{eventId.Id,2}: {logLevel,-12}]");
Console.WriteLine($"{formatter(state, exception)}");
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Setup/Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ internal enum Environment
Test,
Uat,
Prod,
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/ConsoleJobs/Setup/EnvironmentConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ private static CrmServiceClient GetOrgService(string dataverseConnectionstring)
#pragma warning restore CA2201 // Do not raise reserved exception types
return client;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public static void ThrowIfNull(object? value, string paramName, string message)
if (value == null)
throw new ArgumentNullException(paramName, message);
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/SharedPluginLogic/Logic/Azure/AzureConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ namespace DataverseLogic.Azure;

public record AzureConfig(
Uri StorageAccountUrl
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ join definition in xrm.EnvironmentVariableDefinitionSet on variable.EnvironmentV
new Uri(storageAccountUrl));
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ private async Task<string> CallHttpTrigger(Uri url, string payload)

return await resp.Content.ReadAsStringAsync();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace System.Runtime.CompilerServices;
internal static class IsExternalInit
#pragma warning restore S2094 // Classes should not be empty
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ public class StorageQueueError
public string? Message { get; set; }

public string? AuthenticationErrorDetail { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ internal sealed class DummyManagedIdentityService : IManagedIdentityService
public string AcquireToken(IEnumerable<string> scopes) => "invalidtokenonlyfortest";

public string AcquireToken(Guid managedIdentityId, IEnumerable<string> scopes) => "invalidtokenonlyfortest";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ internal static T GetRequest<T>(this IPluginExecutionContext context)

return JsonConvert.DeserializeObject<T>(requestString) ?? throw new InvalidPluginExecutionException($"Invalid request format {requestString}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public void Trace(string format, params object[] args)
tracingService?.Trace(format, args);
pluginTelemetryLogger?.LogInformation(format, args);
}
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/SharedPluginLogic/Logic/ImageType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ public enum ImageType
PreImage = 0,
PostImage = 1,
Both = 2,
}
}
2 changes: 1 addition & 1 deletion src/Dataverse/SharedPluginLogic/Logic/StaticExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ public static T ShallowCopy<T>(this T target, params Expression<Func<T, object?>
return body?.Member.Name;
}
#pragma warning restore CS8669 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ private void PublishRule(DuplicateRule rule)
};
adminDao.Execute(publishRequest);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public static TProp GetRequiredPropertyValue<T, TProp>(T entity, Func<T, TProp>

return propertyValue;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public AdminDataverseAccessObjectService(IOrganizationServiceFactory organizatio
#pragma warning restore CA1848 // Use the LoggerMessage delegates
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public UserDataverseAccessObjectService(IOrganizationServiceFactory organization
#pragma warning restore CA1062 // Validate arguments of public methods
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ public void Log<TState>(
service.Trace($"[{eventId.Id,2}: {logLevel,-12}]");
service.Trace($"{formatter(state, exception)}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ internal static ServiceProvider BuildServiceProvider(this IServiceProvider servi

return services.BuildServiceProvider();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ public AutopublishDuplicateRulesOnPublishAll()
provider => provider.GetRequiredService<DuplicateRuleService>().AutopublishRules())
.SetExecutionMode(ExecutionMode.Asynchronous);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ namespace SharedContext.Dao;

public interface IAdminDataverseAccessObjectService : IDataverseAccessObject
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ namespace SharedContext.Dao;

public interface IUserDataverseAccessObjectService : IDataverseAccessObject
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public DataverseInteractionException(string message, Exception inner)
: base(message, inner)
{
}
}
}
2 changes: 1 addition & 1 deletion src/Shared/SharedDataverseLogic/IExtendedTracingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace SharedDataverseLogic;

public interface IExtendedTracingService : ITracingService
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ namespace SharedDataverseLogic;
public static class DateTimeExtensions
{
public static DateTime DkNow => TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("Central European Standard Time"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public static class StringExtensions

return str.Length <= maxLength ? str : str.Substring(0, maxLength);
}
}
}
2 changes: 1 addition & 1 deletion src/Shared/SharedDomain/CultureInfoHelperExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public static string ToStringSolutionDefault(this long value)
{
return value?.ToLower(SolutionDefaultCulture);
}
}
}
2 changes: 1 addition & 1 deletion src/Shared/SharedDomain/QueueNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace SharedDomain;
public static class QueueNames
{
public static readonly IReadOnlyList<string> AllQueues = [];
}
}
2 changes: 1 addition & 1 deletion test/IntegrationTests/AwaitingMessage.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace IntegrationTests;

public record AwaitingMessage(string QueueName, string SerializedMessage);
public record AwaitingMessage(string QueueName, string SerializedMessage);
2 changes: 1 addition & 1 deletion test/IntegrationTests/MessageExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ protected static T GetMessage<T>(string serializedMessage)

return message ?? throw new InvalidOperationException("Incorrect message received");
}
}
}
2 changes: 1 addition & 1 deletion test/IntegrationTests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ protected virtual void Dispose(bool disposing)
server.Dispose();
}
}
}
}
2 changes: 1 addition & 1 deletion test/IntegrationTests/XrmMockupFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public XrmMockupFixture()
}
}
}
}
}
2 changes: 1 addition & 1 deletion test/SharedTest/DataProducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ internal DuplicateRule ProduceValidDuplicateRule(DuplicateRule? duplicateRule) =
{
e.EnsureValue(x => x.Name, $"Test Duplicate Rule {GetUniqueNumber()}");
});
}
}
2 changes: 1 addition & 1 deletion test/SharedTest/DataProducerStaticExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ private static Action<TSetter, TValue> SetActionFromSelector<TSetter, TValue>(Ex
var valueParameterExpression = Expression.Parameter(typeof(TValue)) ?? throw new NotSupportedException("Must have parameter of type Value");
return Expression.Lambda<Action<TSetter, TValue>>(Expression.Assign(selector.Body, valueParameterExpression), entityParameterExpression, valueParameterExpression).Compile();
}
}
}
2 changes: 1 addition & 1 deletion test/SharedTest/SimpleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
{
logger.Log(logLevel, eventId, state, exception, formatter);
}
}
}