public object Clone() { return(new CSSFont { Style = Style.Clone() as CSSFontStyle, Variant = Variant.Clone() as CSSFontVariant, Weight = Weight.Clone() as CSSFontWeight, }); }
public Variant _Broadcast(BaseProtocol pFrom, Variant invoke) { var message = Variant.Get(); message[Defines.RM_INVOKE_FUNCTION] = (string)invoke[1]; var param = invoke.Clone(); param.RemoveAt(0); param.RemoveAt(0); message[Defines.RM_INVOKE_PARAMS] = param; Broadcast(pFrom, message); return(null); }
public void Send(Variant primitive, BaseProtocol from) { foreach (var listener in _dirtyPropsByProtocol.Keys) { if (from == listener) { continue; } var primitives = Variant.Get(); primitives[0] = primitive.Clone(); if (listener is BaseClusterProtocol) { (listener as BaseClusterProtocol).SharedObjectTrack(Application, Name, Version, IsPersistent, primitives); } else { listener.Application.SharedObjectTrack(listener, Name, Version, IsPersistent, primitives); } } }
public void Send(Variant primitive,BaseProtocol from) { foreach (var listener in _dirtyPropsByProtocol.Keys) { if(from == listener)continue; var primitives = Variant.Get(); primitives[0] = primitive.Clone(); if (listener is BaseClusterProtocol) (listener as BaseClusterProtocol).SharedObjectTrack(Application, Name, Version, IsPersistent, primitives); else listener.Application.SharedObjectTrack(listener, Name, Version, IsPersistent, primitives); } }
public override void CallClient(BaseProtocol pTo, string functionName, Variant param) { var message = GenericMessageFactory.GetInvoke(3, 0, 0, false, 0, functionName, param.Clone()); SendRTMPMessage(pTo as BaseRTMPProtocol, message); }