Esempio n. 1
0
 //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
     });
 }
Esempio n. 2
0
 protected virtual void OnTokenIssued(TokenInt token)
 {
     AsyncEventsHelper.RaiseEventAsync(TokenIssued, this, new TokenIssuedEventArgs {
         Token = token.Id, Client = token.Client, Time = token.IssuedOn
     });
 }