Пример #1
0
 public static RemoteMethodCall CreateInstance(string methodName, IList<object> args, IDictionary<string, string> metaData, IList<string> classes, IList<String> realClassImplementation)
 {
     RemoteMethodCall call = new RemoteMethodCall();
     call.methodName = methodName;
     call.args = args;
     call.metaData = metaData;
     call.classes = classes;
     call.realClassImplementation = realClassImplementation;
     return call;
 }
Пример #2
0
 /// <summary>
 /// Creates an instance of SecureMethodCallRequest
 /// </summary>
 /// <param name="principal">Principal</param>
 /// <param name="credentials">Credentials</param>
 /// <param name="message">Message</param>
 /// <returns>Instance of SecureMethodCallRequest</returns>
 public static MethodCallMessage createInstance(String principal, BeanDescription credentials, RemoteMethodCall methodCall, string callId, bool answer, string destination)
 {
     MethodCallMessage instance = new MethodCallMessage();
     instance.methodCall = methodCall;
     instance.callId = callId;
     instance.answer = answer;
     instance.destination = destination;
     instance.principal = principal;
     instance.credentials = credentials;
     instance.timestamp = DateTime.Now.Ticks;
     instance.credentials = credentials;
     return instance;
 }