diff --git a/examples/Actor/DemoActor.Interfaces/IDemoActor.cs b/examples/Actor/DemoActor.Interfaces/IDemoActor.cs index c5fefdb9f..143180bca 100644 --- a/examples/Actor/DemoActor.Interfaces/IDemoActor.cs +++ b/examples/Actor/DemoActor.Interfaces/IDemoActor.cs @@ -25,7 +25,7 @@ public interface IDemoActor : IActor /// /// Method to save data. /// - /// DAta to save. + /// Data to save. /// TTL of state key. /// A task that represents the asynchronous save operation. Task SaveData(MyData data, TimeSpan ttl); diff --git a/src/Dapr.Actors/Communication/ActorRequestMessageBody.cs b/src/Dapr.Actors/Communication/ActorRequestMessageBody.cs index 4d629eef2..f0c6abe6a 100644 --- a/src/Dapr.Actors/Communication/ActorRequestMessageBody.cs +++ b/src/Dapr.Actors/Communication/ActorRequestMessageBody.cs @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------ +// ------------------------------------------------------------------------ // Copyright 2021 The Dapr Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,13 +28,13 @@ public ActorRequestMessageBody(int parameterInfos) this.parameters = new Dictionary(parameterInfos); } - public void SetParameter(int position, string paramName, object parameter) + public void SetParameter(int position, string parameterName, object parameter) { - this.parameters[paramName] = parameter; + this.parameters[parameterName] = parameter; } - public object GetParameter(int position, string paramName, Type paramType) + public object GetParameter(int position, string parameterName, Type paramType) { - return this.parameters[paramName]; + return this.parameters[parameterName]; } -} \ No newline at end of file +} diff --git a/src/Dapr.Actors/Communication/IActorRequestMessageBody.cs b/src/Dapr.Actors/Communication/IActorRequestMessageBody.cs index c2b26872b..24050a734 100644 --- a/src/Dapr.Actors/Communication/IActorRequestMessageBody.cs +++ b/src/Dapr.Actors/Communication/IActorRequestMessageBody.cs @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------ +// ------------------------------------------------------------------------ // Copyright 2021 The Dapr Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,16 +25,16 @@ public interface IActorRequestMessageBody /// This Api gets called to set remoting method parameters before serializing/dispatching the request. /// /// Position of the parameter in Remoting Method. - /// Parameter Name in the Remoting Method. + /// Parameter Name in the Remoting Method. /// Parameter Value. - void SetParameter(int position, string parameName, object parameter); + void SetParameter(int position, string parameterName, object parameter); /// - /// This is used to retrive parameter from request body before dispatching to service remoting method. + /// This is used to retrieve parameter from request body before dispatching to service remoting method. /// /// Position of the parameter in Remoting Method. - /// Parameter Name in the Remoting Method. + /// Parameter Name in the Remoting Method. /// Parameter Type. /// The parameter that is at the specified position and has the specified name. - object GetParameter(int position, string parameName, Type paramType); -} \ No newline at end of file + object GetParameter(int position, string parameterName, Type paramType); +} diff --git a/src/Dapr.Client/BindingResponse.cs b/src/Dapr.Client/BindingResponse.cs index cf5be5b6f..f1e0a23e3 100644 --- a/src/Dapr.Client/BindingResponse.cs +++ b/src/Dapr.Client/BindingResponse.cs @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------ +// ------------------------------------------------------------------------ // Copyright 2021 The Dapr Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,13 +20,13 @@ namespace Dapr.Client; /// /// Represents the response from invoking a binding. /// -/// The assocated with this response. +/// The associated with this response. /// The response payload. /// The response metadata. public sealed class BindingResponse(BindingRequest request, ReadOnlyMemory data, IReadOnlyDictionary metadata) { /// - /// Gets the assocated with this response. + /// Gets the associated with this response. /// public BindingRequest Request { get; } = request ?? throw new ArgumentNullException(nameof(request)); diff --git a/test/Dapr.AspNetCore.IntegrationTest.App/DaprController.cs b/test/Dapr.AspNetCore.IntegrationTest.App/DaprController.cs index 31f31b017..1933996b0 100644 --- a/test/Dapr.AspNetCore.IntegrationTest.App/DaprController.cs +++ b/test/Dapr.AspNetCore.IntegrationTest.App/DaprController.cs @@ -94,11 +94,11 @@ public void TopicMetadataSeparator() { } - [Topic("pubsub", "metadataseparatorbyemptytring")] - [HttpPost("/topicmetadataseparatorattrbyemptytring")] + [Topic("pubsub", "metadataseparatorbyemptystring")] + [HttpPost("/topicmetadataseparatorattrbyemptystring")] [TopicMetadata("n1", "v1")] [TopicMetadata("n1", "")] - public void TopicMetadataSeparatorByemptytring () + public void TopicMetadataSeparatorByemptyString () { } @@ -170,4 +170,4 @@ public ActionResult RequiresApiToken(UserInfo user) { return user; } -} \ No newline at end of file +} diff --git a/test/Dapr.AspNetCore.IntegrationTest/SubscribeEndpointTest.cs b/test/Dapr.AspNetCore.IntegrationTest/SubscribeEndpointTest.cs index e0fdaba6d..1f4b062f0 100644 --- a/test/Dapr.AspNetCore.IntegrationTest/SubscribeEndpointTest.cs +++ b/test/Dapr.AspNetCore.IntegrationTest/SubscribeEndpointTest.cs @@ -130,7 +130,7 @@ public async Task SubscribeEndpoint_ReportsTopics() subscriptions.ShouldContain(("pubsub", "metadata.1", "multiMetadataTopicAttr", "true", string.Empty, "n1=v1", string.Empty, "{\"enabled\":true,\"maxMessagesCount\":500,\"maxAwaitDurationMs\":2000}")); subscriptions.ShouldContain(("pubsub", "splitMetadataTopicBuilder", "splitMetadataTopics", string.Empty, string.Empty, "n1=v1;n2=v1", string.Empty, String.Empty)); - subscriptions.ShouldContain(("pubsub", "metadataseparatorbyemptytring", "topicmetadataseparatorattrbyemptytring", string.Empty, string.Empty, "n1=v1,", string.Empty, String.Empty)); + subscriptions.ShouldContain(("pubsub", "metadataseparatorbyemptystring", "topicmetadataseparatorattrbyemptystring", string.Empty, string.Empty, "n1=v1,", string.Empty, String.Empty)); // Test priority route sorting var eTopic = subscriptions.FindAll(e => e.Topic == "E"); eTopic.Count.ShouldBe(3); @@ -140,4 +140,4 @@ public async Task SubscribeEndpoint_ReportsTopics() } } } -} \ No newline at end of file +} diff --git a/test/Dapr.E2E.Test.Actors/WeaklyTypedTesting/ResponseBase.cs b/test/Dapr.E2E.Test.Actors/WeaklyTypedTesting/ResponseBase.cs index bd6977909..31ec231a8 100644 --- a/test/Dapr.E2E.Test.Actors/WeaklyTypedTesting/ResponseBase.cs +++ b/test/Dapr.E2E.Test.Actors/WeaklyTypedTesting/ResponseBase.cs @@ -19,5 +19,5 @@ namespace Dapr.E2E.Test.Actors.WeaklyTypedTesting; #endif public class ResponseBase { - public string BasePropeprty { get; set; } -} \ No newline at end of file + public string BaseProperty { get; set; } +} diff --git a/test/Dapr.E2E.Test.App/Actors/WeaklyTypedTestingActor.cs b/test/Dapr.E2E.Test.App/Actors/WeaklyTypedTestingActor.cs index 23015f994..cc06bb408 100644 --- a/test/Dapr.E2E.Test.App/Actors/WeaklyTypedTestingActor.cs +++ b/test/Dapr.E2E.Test.App/Actors/WeaklyTypedTestingActor.cs @@ -32,7 +32,7 @@ public Task GetPolymorphicResponse() { var response = new DerivedResponse { - BasePropeprty = "Base property value", + BaseProperty = "Base property value", DerivedProperty = "Derived property value" };