// Token: 0x06001569 RID: 5481 RVA: 0x0007E1B0 File Offset: 0x0007C3B0 protected bool IsIrmOperation(out Guid templateId) { string templateID = this.TemplateID; if (templateID == null) { AirSyncDiagnostics.TraceDebug(ExTraceGlobals.RequestsTracer, this, "IRM operation not requested by device"); templateId = Guid.Empty; return(false); } AirSyncCounters.NumberOfSendIRMMails.Increment(); if (!base.User.IrmEnabled || !base.Request.IsSecureConnection) { AirSyncDiagnostics.TraceError <string>(ExTraceGlobals.RequestsTracer, this, "IRM feature disabled for user {0}", base.User.DisplayName); throw new AirSyncPermanentException(StatusCode.IRM_FeatureDisabled, false) { ErrorStringForProtocolLogger = "smbIioFeatureDisabled" }; } if (!DrmClientUtils.TryParseGuid(templateID, out templateId)) { AirSyncDiagnostics.TraceError <string>(ExTraceGlobals.RequestsTracer, this, "Invalid template Guid {0}", templateID); throw new AirSyncPermanentException(StatusCode.IRM_InvalidTemplateID, false) { ErrorStringForProtocolLogger = "smbIioInvalidTemplateID" }; } return(true); }
// Token: 0x06000B7D RID: 2941 RVA: 0x00024770 File Offset: 0x00022970 private void Parse(string identity) { if (!DrmClientUtils.TryParseGuid(identity, out this.templateId)) { this.templateId = Guid.Empty; } this.templateName = (string.IsNullOrEmpty(identity) ? null : identity.Trim()); }