Пример #1
0
        public void Cancel(IWampCaller caller, long requestId, CancelOptions options)
        {
            WampRpcOperationCallback callback = new WampRpcOperationCallback(caller, requestId);

            lock (mLock)
            {
                if (mCallbackToInvocation.TryGetValue(callback, out WampRpcInvocation invocation))
                {
                    IWampCallee callee = invocation.Operation.Callee;

                    callee.Interrupt(invocation.InvocationId, new InterruptDetails()
                    {
                        Mode = options.Mode
                    });
                }
            }
        }
Пример #2
0
 public void Cancel(IWampCaller caller, long requestId, CancelOptions options)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public WampMessage <object> Cancel(long requestId, CancelOptions options)
 {
     return(mSerializer.SerializeRequest(mCancel2, new object[] { requestId, options }));
 }
 public void Cancel(long requestId, CancelOptions options)
 {
     Send(mCancel2, requestId, options);
 }
Пример #5
0
 /// <summary> Creates a new prototype with a constructor format similar to Animation. </summary>
 /// <remarks> The textures are not loaded right away, but when Clone() is called. </remarks>
 public AnimationPrototype(ContentManager xContent, ushort p_iID, byte p_byAnimationDirection, string sTexture, Vector2 p_v2PositionOffset, int p_iTicksPerFrame, int p_iEndFrame, int p_iCellWidth, int p_iCellHeight, int p_iOffsetX, int p_iOffsetY, int p_iFramesPerRow, LoopSettings p_enLoopSettings, CancelOptions p_enDefaultCancelOptions, bool p_bIsMoveCancellable, bool p_bIsSpellCancellable, params AnimationInstruction[] p_axAnimationInstructions)
     : base(p_iID, p_byAnimationDirection, RenderMaster.txNullTex, p_v2PositionOffset, p_iTicksPerFrame, p_iEndFrame, p_iCellWidth, p_iCellHeight, p_iOffsetX, p_iOffsetY, p_iFramesPerRow, p_enLoopSettings, p_enDefaultCancelOptions, p_bIsMoveCancellable, p_bIsSpellCancellable, p_axAnimationInstructions)
 {
     sTexturePath  = sTexture;
     this.xContent = xContent;
 }
Пример #6
0
 public void Cancel(CancelOptions options)
 {
     Proxy.Cancel(RequestId, options);
 }
Пример #7
0
 public void Cancel(IWampCaller caller, long requestId, CancelOptions options)
 {
     mHandler.Cancel(caller, requestId, options);
 }
Пример #8
0
 public virtual void Cancel(IWampCaller caller, long requestId, CancelOptions options)
 {
     mDealer.Cancel(caller, requestId, options);
 }