Example #1
0
 void ApiClient.IHandler.Prepare(ApiClient item)
 {
     count = new CountData
     {
         Start     = DateTime.Now.Ticks,
         FromId    = ApiContext.RequestContext.CallGlobalId,
         Requester = ZeroApplication.Config.RealName,
         HostName  = item.Station,
         ApiName   = item.Commmand
     };
 }
Example #2
0
 void IApiHandler.Prepare(ApiStation station, ApiCallItem item)
 {
     count = new CountData
     {
         IsInner   = true,
         Start     = DateTime.Now.Ticks,
         Requester = item.Requester,
         HostName  = station.StationName,
         ApiName   = item.ApiName
     };
 }