public Task <int> ProcessInt(int v) { _trace.RegisterServiceInvocation(typeof(ISerDeserService), nameof(ProcessInt), v); //adds to make sure that server's value was actually seen by client return(Task.FromResult(v + MagicsForTests.Serialization.Int.ServerAdd)); }
public Task <Unit> Publish(SomeNotif inp) { _trace.RegisterServiceInvocation(typeof(IServerSentEventsService), nameof(Publish), inp); _subs.SendMessage(inp); return(Task.FromResult(Unit.Instance)); }
public Task <string> SayHello(string toWhom) { _trace.RegisterServiceInvocation(typeof(IHelloWorldService), nameof(SayHello), toWhom); return(Task.FromResult($"Hello {toWhom}. How are you?")); }