DefaultOperationInvoker

Namespace: SoapCore
We found 10 examples in language CSharp for this search. You will see 40 fragments of code.

		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}


		public object [] AllocateInputs ()
		{
			return new object [in_params.Length];
		}

		public object Invoke (object instance, object [] inputs, out object [] outputs)
		{
			var arr = new object [od.SyncMethod.GetParameters ().Length];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];

			var ret = od.SyncMethod.Invoke (instance, arr);

			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];

			return ret;
		}

		public IAsyncResult InvokeBegin (object instance, object [] inputs, AsyncCallback callback, object state)
		{
			var arr = new object [in_params.Length + out_params.Length + 2];
			for (int i = 0; i < in_params.Length; i++)
				arr [in_params [i].Position] = inputs [i];
			arr [arr.Length - 2] = callback;
			arr [arr.Length - 1] = state;
			return new InvokeAsyncResult (arr, (IAsyncResult) od.BeginMethod.Invoke (instance, arr));
		}

		public object InvokeEnd (object instance, out object [] outputs, IAsyncResult result)
		{
			var r = (InvokeAsyncResult) result;
			var ret = od.EndMethod.Invoke (instance, new object [] {r.Source});
			var arr = r.Parameters;
			outputs = new object [out_params.Length];
			for (int i = 0; i < out_params.Length; i++)
				outputs [i] = arr [out_params [i].Position];
			return ret;
		}

SoapCore.DefaultOperationInvoker : IOperationInvoker

Constructors :

public DefaultOperationInvoker()

Methods :

public Task<Object> InvokeAsync(MethodInfo methodInfo = , Object serviceInstance = , Object[] arguments = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()