Invocation handler for all of our operations
Inheritance: InvocationHandler
コード例 #1
0
        protected override APIOperation GetOperationImplementation(SafeType <APIOperation> api)
        {
            InvocationHandler handler = new RemoteOperationInvocationHandler(
                GetAPIConfiguration(),
                api);
            APIOperation proxy = NewAPIOperationProxy(api, handler);

            // add logging..
            proxy = CreateLoggingProxy(api, proxy);
            return(proxy);
        }
コード例 #2
0
        protected override APIOperation GetOperationImplementation(SafeType <APIOperation> api)
        {
            // add remote proxy
            InvocationHandler handler = new RemoteOperationInvocationHandler(
                (RemoteConnectorInfoImpl)GetAPIConfiguration().ConnectorInfo, remoteConnectorFacadeKey, api);
            APIOperation proxy = NewAPIOperationProxy(api, handler);

            // now wrap the proxy in the appropriate timeout proxy
            proxy = CreateTimeoutProxy(api, proxy);
            // add logging proxy
            proxy = CreateLoggingProxy(api, proxy);

            return(proxy);
        }
コード例 #3
0
ファイル: ApiRemote.cs プロジェクト: Tirasa/ConnId
        protected override APIOperation GetOperationImplementation(SafeType<APIOperation> api)
        {
            // add remote proxy
            InvocationHandler handler = new RemoteOperationInvocationHandler(
                (RemoteConnectorInfoImpl)GetAPIConfiguration().ConnectorInfo, remoteConnectorFacadeKey, api);
            APIOperation proxy = NewAPIOperationProxy(api, handler);
            // now wrap the proxy in the appropriate timeout proxy
            proxy = CreateTimeoutProxy(api, proxy);
            // add logging proxy
            proxy = CreateLoggingProxy(api, proxy);

            return proxy;
        }
コード例 #4
0
ファイル: ApiRemote.cs プロジェクト: elek/identityconnectors
 protected override APIOperation GetOperationImplementation(SafeType<APIOperation> api)
 {
     InvocationHandler handler = new RemoteOperationInvocationHandler(
             GetAPIConfiguration(),
             api);
     APIOperation proxy = NewAPIOperationProxy(api, handler);
     // add logging..
     proxy = CreateLoggingProxy(api, proxy);
     return proxy;
 }
コード例 #5
0
        protected override APIOperation GetOperationImplementation(SafeType<APIOperation> api)
        {
            if (api.RawType == typeof(IConnectorEventSubscriptionApiOp) || api.RawType == typeof(ISyncEventSubscriptionApiOp))
            {
                //Not supported remotely with legacy communication protocol
                return null;
            }
            // add remote proxy
            InvocationHandler handler = new RemoteOperationInvocationHandler(
                (RemoteConnectorInfoImpl)GetAPIConfiguration().ConnectorInfo, remoteConnectorFacadeKey, api);
            APIOperation proxy = NewAPIOperationProxy(api, handler);
            // now wrap the proxy in the appropriate timeout proxy
            proxy = CreateTimeoutProxy(api, proxy);
            // add logging proxy
            proxy = CreateLoggingProxy(api, proxy);

            return proxy;
        }