//cannot raise this event since this is blocking token repo. protected virtual void OnMaxTokenIssued(string client, int counter) { AsyncEventsHelper.RaiseEventAsync(MaxTokenIssued, this, new MaxTokenIssuedEventArgs { Counts = counter, Client = client, Time = DateTime.Now }); }
protected virtual void OnTokenIssued(TokenInt token) { AsyncEventsHelper.RaiseEventAsync(TokenIssued, this, new TokenIssuedEventArgs { Token = token.Id, Client = token.Client, Time = token.IssuedOn }); }