This class represents a RPC with its parameters, return types etc.
Inheritance: IMethodCall
 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;
 }
Beispiel #2
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);
        }
        public void TestMarshallingListThatImplementsICollection()
        {
            String value = "Foo bar";
            RemoteMethodCall description = new RemoteMethodCall();
            description.Classes = new List<String>() { value };
            RemoteMethodCall descriptionUnmarshalled = marshaller.UnmarshallObject<RemoteMethodCall>(marshaller.MarshallObject(description));

            Assert.IsTrue(descriptionUnmarshalled.Classes.Contains(value));
        }
Beispiel #4
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);
        }