示例#1
0
 private void SetPermissionForHandler()
 {
     _authorizationService
     .CheckAccess(
         new Permission(nameof(IDomainFrameworkTestFixture), _handlerType.ToString()))
     .Returns(true);
 }
示例#2
0
 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);
 }
示例#3
0
 /// <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);
 }