Esempio n. 1
0
 public static BeanDescription createInstance(String className)
 {
     BeanDescription instance = new BeanDescription();
     instance.className = className;
     instance.data = new Dictionary<String,String>();
     instance.binaryData = new Dictionary<String,byte[]>();
     return instance;
 }
 /// <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;
 }