Skip to content

Commit

Permalink
refactor(sdk-dotnet): change csharp proto namespace (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlaCarvajal authored Dec 20, 2024
1 parent 3a51fbb commit e021039
Show file tree
Hide file tree
Showing 31 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion schemas/littlehorse/acls.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A Principal represents the identity of a client of LittleHorse, whether human or
// machine. The ACL's on the Principal control what actions the client is allowed
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/common_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package littlehorse;
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// Status used for WfRun, ThreadRun, and NodeRun
enum LHStatus {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/common_wfspec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A VariableAssignment is used within a WfSpec to determine how a value should be
// assigned in the context of a specific WfRun. For example, in a TASK node, you
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/external_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// An ExternalEvent represents A Thing That Happened outside the context of a WfRun.
// Generally, an ExternalEvent is used to represent a document getting signed, an incident
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/node_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A NodeRun is a running instance of a Node in a ThreadRun. Note that a NodeRun
// is a Getable object, meaning it can be retried from the LittleHorse grpc API.
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/object_id.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "common_enums.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// The ID of a WfSpec.
message WfSpecId {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/scheduled_wf_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "variable.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";
// A `ScheduledWfRun` is an object in the LittleHorse API that triggers a `WfRun` to be started
// on a cron schedule.
message ScheduledWfRun {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "scheduled_wf_run.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

service LittleHorse {
// Creates a TaskDef.
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/task_def.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A TaskDef defines a blueprint for a TaskRun that can be dispatched to Task Workers.
message TaskDef {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/task_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "user_tasks.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A TaskRun resents a single instance of a TaskDef being executed.
message TaskRun {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/user_tasks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "variable.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// UserTaskDef is the metadata blueprint for UserTaskRuns.
message UserTaskDef {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/variable.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// VariableValue is a structure containing a value in LittleHorse. It can be
// used to pass input variables into a WfRun/ThreadRun/TaskRun/etc, as output
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/wf_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A WfRun is a running instance of a WfSpec.
message WfRun {
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/wf_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "object_id.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A `WfSpec` defines the logic for a workflow in LittleHorse. It is a metadata object
// and is a blueprint for a `WfRun` execution.
Expand Down
2 changes: 1 addition & 1 deletion schemas/littlehorse/workflow_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "common_enums.proto";
option go_package = ".;lhproto";
option java_multiple_files = true;
option java_package = "io.littlehorse.sdk.common.proto";
option csharp_namespace = "LittleHorse.Common.Proto";
option csharp_namespace = "LittleHorse.Sdk.Common.Proto";

// A WorkflowEvent represents a "Thing That Happened" *INSIDE* a WfRun. It is DIFFERENT from
// an ExternalEvent, because an ExternalEvent represents something that happened OUTSIDE the WfRun,
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/Examples/ExceptionsHandlerExample/MyWorker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Worker;
using LHTaskException = LittleHorse.Sdk.Exceptions.LHTaskException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Helper;
using Google.Protobuf.WellKnownTypes;
using LittleHorse.Sdk.Tests;
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk.Tests/LHTaskSignatureTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Worker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using Google.Protobuf;
using Type = System.Type;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Helper;
using LittleHorse.Sdk.Worker;
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk/Exceptions/LHTaskException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;

namespace LittleHorse.Sdk.Exceptions;

Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk/Helper/LHHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;

namespace LittleHorse.Sdk.Helper
{
Expand Down
4 changes: 2 additions & 2 deletions sdk-dotnet/LittleHorse.Sdk/Helper/LHMappingHelper.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Collections;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Utils;
using LittleHorse.Sdk.Worker;
using TaskStatus = LittleHorse.Common.Proto.TaskStatus;
using TaskStatus = LittleHorse.Sdk.Common.Proto.TaskStatus;
using Type = System.Type;

namespace LittleHorse.Sdk.Helper
Expand Down
4 changes: 2 additions & 2 deletions sdk-dotnet/LittleHorse.Sdk/LHConfig.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Grpc.Core;
using Grpc.Net.Client;
using LittleHorse.Sdk.Authentication;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Utils;
using Microsoft.Extensions.Logging;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
using static LittleHorse.Common.Proto.LittleHorse;
using LittleHorse.Sdk.Common.Proto;
using static LittleHorse.Sdk.Common.Proto.LittleHorse;

namespace LittleHorse.Sdk {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Runtime.CompilerServices;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;

[assembly: InternalsVisibleTo("LittleHorse.Sdk.Tests")]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Grpc.Core;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Helper;
using Microsoft.Extensions.Logging;
using static LittleHorse.Common.Proto.LittleHorse;
using static LittleHorse.Sdk.Common.Proto.LittleHorse;

namespace LittleHorse.Sdk.Worker.Internal
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System.Reflection;
using Google.Protobuf.Collections;
using Google.Protobuf.WellKnownTypes;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Helper;
using Microsoft.Extensions.Logging;
using Polly;
using static LittleHorse.Common.Proto.LittleHorse;
using static LittleHorse.Sdk.Common.Proto.LittleHorse;
using LHTaskException = LittleHorse.Sdk.Exceptions.LHTaskException;
using TaskStatus = LittleHorse.Common.Proto.TaskStatus;
using TaskStatus = LittleHorse.Sdk.Common.Proto.TaskStatus;

namespace LittleHorse.Sdk.Worker.Internal
{
Expand Down
4 changes: 2 additions & 2 deletions sdk-dotnet/LittleHorse.Sdk/Worker/Internal/LHTask.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Reflection;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using static LittleHorse.Common.Proto.LittleHorse;
using static LittleHorse.Sdk.Common.Proto.LittleHorse;

namespace LittleHorse.Sdk.Worker.Internal;

Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk/Worker/LHTaskSignature.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Reflection;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Helper;
using LittleHorse.Sdk.Worker.Internal;
Expand Down
4 changes: 2 additions & 2 deletions sdk-dotnet/LittleHorse.Sdk/Worker/LHTaskWorker.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Grpc.Core;
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Helper;
using LittleHorse.Sdk.Worker.Internal;
using Microsoft.Extensions.Logging;
using static LittleHorse.Common.Proto.LittleHorse;
using static LittleHorse.Sdk.Common.Proto.LittleHorse;

namespace LittleHorse.Sdk.Worker
{
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk/Worker/LHWorkerContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Helper;

namespace LittleHorse.Sdk.Worker
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/LittleHorse.Sdk/Worker/VariableMapping.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LittleHorse.Common.Proto;
using LittleHorse.Sdk.Common.Proto;
using LittleHorse.Sdk.Exceptions;
using LittleHorse.Sdk.Helper;
using LittleHorse.Sdk.Utils;
Expand Down

0 comments on commit e021039

Please sign in to comment.