private void SetPermissionForHandler() { _authorizationService .CheckAccess( new Permission(nameof(IDomainFrameworkTestFixture), _handlerType.ToString())) .Returns(true); }
public void ToBuffer(ref FMp4MessagePackWriter writer) { Start(ref writer); WriterFullBoxToBuffer(ref writer); writer.WriteUInt32(PreDefined); if (HandlerType == HandlerType.none) { writer.WriteASCII("null"); } else { writer.WriteASCII(HandlerType.ToString()); } foreach (var r in Reserved) { writer.WriteUInt32(r); } if (!string.IsNullOrEmpty(Name)) { writer.WriteUTF8(Name); writer.WriteUTF8("\0"); } else { writer.WriteUTF8("\0"); } End(ref writer); }
/// <summary> /// Sets the webreceiver handler /// </summary> /// <param name="handlerReference">string handler name</param> /// <param name="type">HandlerType type</param> /// <returns></returns> public InformationProtocol SetHandler(string handlerReference, HandlerType type) { AddParameter("handler", handlerReference); AddParameter("handlerType", type.ToString()); return(this); }