mirror of https://github.com/dapr/dotnet-sdk.git
naming convention (#460)
This commit is contained in:
parent
4c926c9469
commit
29d0f7c38c
|
|
@ -24,9 +24,9 @@ namespace Dapr.Actors.Runtime
|
||||||
private readonly string actorTypeName;
|
private readonly string actorTypeName;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The logger
|
/// The Logger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected ILogger logger { get; }
|
protected ILogger Logger { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains timers to be invoked.
|
/// Contains timers to be invoked.
|
||||||
|
|
@ -47,7 +47,7 @@ namespace Dapr.Actors.Runtime
|
||||||
this.ActorService = actorService;
|
this.ActorService = actorService;
|
||||||
this.StateManager = actorStateManager ?? new ActorStateManager(this);
|
this.StateManager = actorStateManager ?? new ActorStateManager(this);
|
||||||
this.actorTypeName = this.ActorService.ActorTypeInfo.ActorTypeName;
|
this.actorTypeName = this.ActorService.ActorTypeInfo.ActorTypeName;
|
||||||
this.logger = actorService.LoggerFactory.CreateLogger(this.GetType());
|
this.Logger = actorService.LoggerFactory.CreateLogger(this.GetType());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -74,7 +74,7 @@ namespace Dapr.Actors.Runtime
|
||||||
await this.ResetStateAsync();
|
await this.ResetStateAsync();
|
||||||
await this.OnActivateAsync();
|
await this.OnActivateAsync();
|
||||||
|
|
||||||
this.logger.LogDebug("Activated");
|
this.Logger.LogDebug("Activated");
|
||||||
|
|
||||||
// Save any state modifications done in user overridden Activate method.
|
// Save any state modifications done in user overridden Activate method.
|
||||||
await this.SaveStateAsync();
|
await this.SaveStateAsync();
|
||||||
|
|
@ -82,10 +82,10 @@ namespace Dapr.Actors.Runtime
|
||||||
|
|
||||||
internal async Task OnDeactivateInternalAsync()
|
internal async Task OnDeactivateInternalAsync()
|
||||||
{
|
{
|
||||||
this.logger.LogDebug("Deactivating ...");
|
this.Logger.LogDebug("Deactivating ...");
|
||||||
await this.ResetStateAsync();
|
await this.ResetStateAsync();
|
||||||
await this.OnDeactivateAsync();
|
await this.OnDeactivateAsync();
|
||||||
this.logger.LogDebug("Deactivated");
|
this.Logger.LogDebug("Deactivated");
|
||||||
}
|
}
|
||||||
|
|
||||||
internal Task OnPreActorMethodAsyncInternal(ActorMethodContext actorMethodContext)
|
internal Task OnPreActorMethodAsyncInternal(ActorMethodContext actorMethodContext)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue