Example #1
0
 internal void Invoke(SyncIOConnectedClient client, RemoteCallResponse resp, object[] param)   //Fix this shit
 {
     try {
         if (AuthCallback?.Invoke(client, this) ?? true)
         {
             resp.Return  = FuctionCall.DynamicInvoke(param);
             resp.Reponce = FunctionResponceStatus.Success;
         }
         else
         {
             resp.Reponce = FunctionResponceStatus.PermissionDenied;
         }
     }catch {
         resp.Reponce = FunctionResponceStatus.ExceptionThrown;
     }
 }
Example #2
0
 internal void Invoke(SecureSocketConnectedClient client, RemoteCallResponse resp, object[] param)
 {
     try {
         if (_authCallback?.Invoke(client, this) ?? true)
         {
             resp.Return   = _functionCall.DynamicInvoke(param);
             resp.Response = RemoteFunctionStatus.Success;
         }
         else
         {
             resp.Response = RemoteFunctionStatus.PermissionDenied;
         }
     }catch {
         resp.Response = RemoteFunctionStatus.ExceptionThrown;
     }
 }