Commit Graph

8 Commits

Author SHA1 Message Date
Ryan Nowak 776156298e
Apply linting suggestions (#492)
We've had a list of linting-related messages piling up for a while now.
This change bulk-applies these suggestions with usually relate to
simplification or use or newer language features like ??=

The only changes I did manually here are:

    Removing some usage of Task.GetAwaiter().GetResult() where it was
    just laziness
    Removing some dead code in methods and parameters of internal APIs.
2021-01-04 17:35:57 -08:00
vinayada1 eeaf42ff22
Timers (#485)
* init commit

* working changes

* fix review comments

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2020-12-07 12:52:07 -08:00
Ryan Nowak e95a5567f2
Implement dependency injection for Actors (#463)
* Implement dependency injection for Actors

Fixes: #171

This change allows Actors to accept dependency-injected services through
constructor parameters.

There are numerous breaking changes in this PR that are visible to user
code. In most cases these are simplifications.

For example the Actor base class accepted 3 constructor parameters,
which meant that every subclass (every actor type) also had 3 constructor
parameters. This isn't fun and becomes way less fun now that users can
add their own constructor parameters in a meaningful way.

As another example, we had multiple places where "runtime options" lived
that had different interaction patterns. Now there's a single options
type and you interactive with it through UseActors(...).

* address PR feedback

* React to API change
2020-12-01 10:15:08 -08:00
Aman Bhardwaj ea51561f49
git gui, ading editor config and removing depenency on StyleCop.Analyzers (#228) 2020-02-18 13:21:12 -08:00
pacodelacruz 114f1065ed
Update 'samples/Actor' to show Timer and Reminder functionality (#213)
* Updated samples/Actor to show Timer and Reminder functionality

* Updated ActorClient. Changed deregistration of TImer and Reminder at the end of the program

Co-authored-by: Leon Mai <lemai@microsoft.com>
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-02-06 14:53:14 -08:00
Greg Ingram 07324ec059 Remove unneeded ToString methods (#157) 2019-11-18 09:45:35 -08:00
Aman Bhardwaj 353ba4d6cb
Updating sample which shows calls with remoting for methods which throw exception & call to emthod with no return and arg (#132) 2019-10-23 18:58:22 -07:00
Aman Bhardwaj a9e3f78f1b
Add Actor sample. (#94)
* Adding a project with actor service and client.

* Updating the client code

* Adding an Actor sample.
2019-10-13 17:11:42 -07:00