// Token: 0x06001ACD RID: 6861 RVA: 0x000655A3 File Offset: 0x000637A3
 public GetWacAttachmentInfo(CallContext callContext, string attachmentId, bool isEdit, string draftId) : base(callContext)
 {
     this.attachmentId = attachmentId;
     this.isEdit       = isEdit;
     this.draftId      = draftId;
     OwsLogRegistry.Register("GetWacAttachmentInfo", typeof(GetWacAttachmentInfoMetadata), new Type[0]);
 }
 // Token: 0x06001B7B RID: 7035 RVA: 0x00069368 File Offset: 0x00067568
 public AddMembersToUnifiedGroupCommand(CallContext callContext, AddMembersToUnifiedGroupRequest request) : base(callContext)
 {
     WcfServiceCommandBase.ThrowIfNull(request, "AddMembersToUnifiedGroupRequest", "AddMembersToUnifiedGroupCommand::AddMembersToUnifiedGroupCommand");
     this.request = request;
     this.request.Validate();
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(CreateModernGroupCommandMetadata), new Type[0]);
 }
Exemple #3
0
 // Token: 0x060019BB RID: 6587 RVA: 0x0005B554 File Offset: 0x00059754
 public CreateOnlineMeeting(CallContext callContext, string sipUri, ItemId itemId, bool isPrivate) : base(callContext, sipUri, isPrivate)
 {
     WcfServiceCommandBase.ThrowIfNull(itemId, "itemId", "CreateOnlineMeeting");
     this.ValidateItemId(itemId);
     this.itemId = itemId;
     OwsLogRegistry.Register(CreateOnlineMeeting.CreateOnlineMeetingActionName, typeof(CreateOnlineMeetingMetadata), new Type[0]);
 }
Exemple #4
0
 public SynchronizeWacAttachment(CallContext callContext, string attachmentId, AsyncCallback asyncCallback, object asyncState) : base(callContext)
 {
     OwsLogRegistry.Register("SynchronizeWacAttachment", typeof(SynchronizeWacAttachmentMetadata), new Type[0]);
     this.attachmentId = attachmentId;
     this.asyncResult  = new ServiceAsyncResult <SynchronizeWacAttachmentResponse>();
     this.asyncResult.AsyncCallback = asyncCallback;
     this.asyncResult.AsyncState    = asyncState;
 }
 // Token: 0x06001B76 RID: 7030 RVA: 0x00068C34 File Offset: 0x00066E34
 public CreateUnifiedGroupCommand(CallContext callContext, CreateUnifiedGroupRequest request) : base(callContext)
 {
     WcfServiceCommandBase.ThrowIfNull(request, "request", "CreateUnifiedGroupCommand::CreateUnifiedGroupCommand");
     this.request = request;
     this.request.Validate();
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(CreateModernGroupCommandMetadata), new Type[0]);
     this.notifier = new CreateGroupNotifier(UserContextManager.GetUserContext(base.CallContext.HttpContext, base.CallContext.EffectiveCaller, true));
 }
Exemple #6
0
 // Token: 0x06001BE9 RID: 7145 RVA: 0x0006C5B3 File Offset: 0x0006A7B3
 protected UnsubscribeToNotificationBase(CallContext callContext, SubscriptionData[] subscriptionData) : base(callContext)
 {
     if (subscriptionData == null)
     {
         throw new ArgumentNullException("Subscription data cannot be null");
     }
     this.subscriptionData = subscriptionData;
     OwsLogRegistry.Register(base.GetType().Name, typeof(SubscribeToNotificationMetadata), new Type[0]);
 }
Exemple #7
0
 public CreateMeetNow(CallContext callContext, string sipUri, string subject, bool isPrivate) : base(callContext, sipUri, isPrivate)
 {
     WcfServiceCommandBase.ThrowIfNull("callContext", "sipUri", "CreateMeetNow");
     if (string.IsNullOrEmpty(sipUri))
     {
         throw new OwaInvalidRequestException("No sipUri specified");
     }
     this.subject = subject;
     OwsLogRegistry.Register(CreateMeetNow.CreateMeetNowActionName, typeof(CreateOnlineMeetingMetadata), new Type[0]);
 }
 public GetAttachment(CallContext callContext, string id, bool isImagePreview, bool asDataUri) : base(callContext)
 {
     if (callContext.HttpContext == null)
     {
         throw new ArgumentNullException("callContext.HttpContext cannot be null");
     }
     this.webOperationContext = new AttachmentWebOperationContext(callContext.HttpContext, callContext.CreateWebResponseContext());
     this.id             = id;
     this.isImagePreview = isImagePreview;
     this.asDataUri      = asDataUri;
     OwsLogRegistry.Register("GetFileAttachment", typeof(GetAttachmentMetadata), new Type[0]);
 }
Exemple #9
0
 private void LogExceptionFromO365ShellService(Exception exception, string userPrincipalName, string userPuid, string shellServiceUrl)
 {
     SimulatedWebRequestContext.ExecuteWithoutUserContext("GetShellInfo", delegate(RequestDetailsLogger logger)
     {
         OwsLogRegistry.Register("GetShellInfo", typeof(SuiteServiceProxyHelper.GetShellInfoMetadata), new Type[0]);
         logger.ActivityScope.SetProperty(ExtensibleLoggerMetadata.EventId, "GetShellInfo");
         logger.ActivityScope.SetProperty(OwaServerLogger.LoggerData.PrimarySmtpAddress, userPrincipalName);
         logger.ActivityScope.SetProperty(SuiteServiceProxyHelper.GetShellInfoMetadata.UserPuid, userPuid);
         logger.ActivityScope.SetProperty(SuiteServiceProxyHelper.GetShellInfoMetadata.ShellServiceUrl, shellServiceUrl);
         logger.ActivityScope.SetProperty(ServiceCommonMetadata.GenericErrors, exception.ToString());
     });
 }
        // Token: 0x06001AA0 RID: 6816 RVA: 0x00063DD4 File Offset: 0x00061FD4
        public GetPersonaPhoto(CallContext callContext, string personIdParam, string adObjectIdParam, string email, string singleSourceId, Microsoft.Exchange.Services.Core.Types.UserPhotoSize size) : base(callContext)
        {
            if (callContext == null)
            {
                throw new ArgumentNullException("callContext");
            }
            this.InitializeRequestTrackingInformation();
            this.InitializeTracers();
            OwsLogRegistry.Register("GetPersonaPhoto", typeof(PhotosLoggingMetadata), new Type[0]);
            this.perfLogger      = new PhotoRequestPerformanceLogger(base.CallContext.ProtocolLog, this.tracer);
            this.responseContext = callContext.CreateWebResponseContext();
            this.size            = size;
            this.tracer.TraceDebug <Microsoft.Exchange.Services.Core.Types.UserPhotoSize>((long)this.GetHashCode(), "size = {0}", this.size);
            this.email = email;
            this.tracer.TraceDebug <string>((long)this.GetHashCode(), "email = {0}", this.email);
            if (!string.IsNullOrEmpty(personIdParam))
            {
                try
                {
                    if (IdConverter.EwsIdIsConversationId(personIdParam))
                    {
                        this.personId = IdConverter.EwsIdToPersonId(personIdParam);
                        this.tracer.TraceDebug <PersonId>((long)this.GetHashCode(), "personId = {0}", this.personId);
                    }
                }
                catch (InvalidStoreIdException arg)
                {
                    this.tracer.TraceError <string, InvalidStoreIdException>((long)this.GetHashCode(), "Exception: InvalidStoreIdException. personIdParam = {0}. Exception: {1}", personIdParam, arg);
                }
            }
            Guid empty = Guid.Empty;

            if (!string.IsNullOrEmpty(adObjectIdParam) && Guid.TryParse(adObjectIdParam, out empty))
            {
                this.adObjectId = new ADObjectId(empty);
                this.tracer.TraceDebug <ADObjectId>((long)this.GetHashCode(), "adObjectId = {0}", this.adObjectId);
            }
            if (!string.IsNullOrEmpty(singleSourceId))
            {
                if (IdConverter.EwsIdIsActiveDirectoryObject(singleSourceId))
                {
                    this.adObjectId = IdConverter.EwsIdToADObjectId(singleSourceId);
                    this.tracer.TraceDebug <ADObjectId>((long)this.GetHashCode(), "adObjectId = {0}", this.adObjectId);
                    return;
                }
                this.contactId = IdConverter.EwsIdToMessageStoreObjectId(singleSourceId);
                this.tracer.TraceDebug <StoreObjectId>((long)this.GetHashCode(), "contactId = {0}", this.contactId);
            }
        }
Exemple #11
0
 // Token: 0x06001B19 RID: 6937 RVA: 0x00066CD8 File Offset: 0x00064ED8
 static InstantMessageSignIn()
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(InstantMessageSignIn.LogMetadata), new Type[0]);
 }
 // Token: 0x06000365 RID: 869 RVA: 0x0000D518 File Offset: 0x0000B718
 internal static void RegisterEvents(string eventId)
 {
     OwsLogRegistry.Register(eventId, typeof(BposAssetReader <T> .LogMetadata), new Type[0]);
 }
Exemple #13
0
 public InstantMessageCommandBase(CallContext callContext) : base(callContext)
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(InstantMessagingLogMetadata), new Type[0]);
 }
 internal static void SetEventId(RequestDetailsLogger logger, string eventId)
 {
     OwsLogRegistry.Register(eventId, typeof(WacRequestHandlerMetadata), new Type[0]);
     logger.ActivityScope.SetProperty(ExtensibleLoggerMetadata.EventId, eventId);
 }
 // Token: 0x06001BF3 RID: 7155 RVA: 0x0006C899 File Offset: 0x0006AA99
 public UpdateAttachmentPermissions(CallContext callContext, UpdateAttachmentPermissionsRequest permissionsRequest) : base(callContext)
 {
     UpdateAttachmentPermissions.ConvertAliasesToExternalDirectoryObjectIds(permissionsRequest.UserIds);
     this.permissionsRequest = permissionsRequest;
     OwsLogRegistry.Register(UpdateAttachmentPermissions.UpdateAttachmentPermissionsActionName, typeof(UpdateAttachmentPermissionsMetadata), new Type[0]);
 }
 // Token: 0x06002753 RID: 10067 RVA: 0x0009165E File Offset: 0x0008F85E
 static PreloadSessionDataHandler()
 {
     OwsLogRegistry.Register("SessionDataPreload_Overall", typeof(SessionDataMetadata), new Type[0]);
 }
Exemple #17
0
 // Token: 0x060018E9 RID: 6377 RVA: 0x0005652E File Offset: 0x0005472E
 public GetLinkPreview(CallContext callContext, GetLinkPreviewRequest request) : base(callContext)
 {
     this.request = request;
     OwsLogRegistry.Register(GetLinkPreview.GetLinkPreviewActionName, GetLinkPreview.GetLinkPreviewMetadataType, new Type[0]);
 }
 // Token: 0x060019FC RID: 6652 RVA: 0x0005DC7F File Offset: 0x0005BE7F
 public GetComplianceConfiguration(CallContext callContext) : base(callContext)
 {
     OwsLogRegistry.Register("GetComplianceConfiguration", typeof(OwaUserConfigurationLogMetadata), new Type[0]);
 }
Exemple #19
0
 // Token: 0x06001B8C RID: 7052 RVA: 0x00069B9A File Offset: 0x00067D9A
 static RemoveFavoriteCommand()
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(RemoveFavoriteMetadata), new Type[0]);
 }
Exemple #20
0
 // Token: 0x060015C7 RID: 5575 RVA: 0x0004E29C File Offset: 0x0004C49C
 static AddFavoriteCommand()
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(InstantMessagingBuddyMetadata), new Type[0]);
 }
Exemple #21
0
 // Token: 0x06000EFD RID: 3837 RVA: 0x0003A5C8 File Offset: 0x000387C8
 public PeopleIKnowRowNotificationHandler(string subscriptionId, SubscriptionParameters parameters, StoreObjectId folderId, IMailboxContext userContext, Guid mailboxGuid, ExTimeZone timeZone, CultureInfo cultureInfo) : base(subscriptionId, parameters, folderId, userContext, mailboxGuid, timeZone, false)
 {
     this.cultureInfo = cultureInfo;
     OwsLogRegistry.Register("PeopleIKnowRowNotification", typeof(FindPeopleMetadata), new Type[0]);
 }
 // Token: 0x06001BE6 RID: 7142 RVA: 0x0006C543 File Offset: 0x0006A743
 static UnsubscribeFromPresenceUpdates()
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(InstantMessagingSubscriptionMetadata), new Type[0]);
 }
 // Token: 0x06001A93 RID: 6803 RVA: 0x000634B8 File Offset: 0x000616B8
 public GetSystemAlerts(CallContext callContext) : base(callContext)
 {
     OwsLogRegistry.Register("GetSystemAlerts", typeof(GetSystemAlerts.GetSystemAlertsMetadata), new Type[0]);
 }
Exemple #24
0
 // Token: 0x06001ABA RID: 6842 RVA: 0x00064EE2 File Offset: 0x000630E2
 static GetPresence()
 {
     OwsLogRegistry.Register(OwaApplication.GetRequestDetailsLogger.Get(ExtensibleLoggerMetadata.EventId), typeof(InstantMessagingQueryPresenceData), new Type[0]);
 }
Exemple #25
0
 public GetUcwaUserConfiguration(CallContext callContext, string sipUri) : base(callContext)
 {
     this.sipUri = sipUri;
     OwsLogRegistry.Register(GetUcwaUserConfiguration.GetUcwaUserConfigurationActionName, typeof(GetUcwaUserConfigurationMetaData), new Type[0]);
 }
Exemple #26
0
        // Token: 0x06002544 RID: 9540 RVA: 0x00086D20 File Offset: 0x00084F20
        protected override ICollection <KeyValuePair <string, object> > GetComponentSpecificData(IActivityScope activityScope, string eventId)
        {
            Dictionary <string, object> dictionary = new Dictionary <string, object>(20);
            IEnumerable <KeyValuePair <string, object> > formattableMetadata = activityScope.GetFormattableMetadata(OwsLogRegistry.GetRegisteredValues(eventId));

            foreach (KeyValuePair <string, object> keyValuePair in formattableMetadata)
            {
                dictionary.Add(keyValuePair.Key, keyValuePair.Value);
            }
            ExtensibleLogger.CopyPIIProperty(activityScope, dictionary, OwaServerLogger.LoggerData.PrimarySmtpAddress, "PSA");
            ExtensibleLogger.CopyPIIProperty(activityScope, dictionary, OwaServerLogger.LoggerData.User, "user");
            ExtensibleLogger.CopyProperties(activityScope, dictionary, OwaServerLogger.EnumToShortKeyMapping);
            if (Globals.LogErrorDetails)
            {
                ExtensibleLogger.CopyProperty(activityScope, dictionary, ServiceCommonMetadata.GenericErrors, "ErrInfo");
                string property = activityScope.GetProperty(ServiceCommonMetadata.ErrorCode);
                if ((!string.IsNullOrEmpty(activityScope.GetProperty(ServiceCommonMetadata.GenericErrors)) || (!string.IsNullOrEmpty(property) && property != "Success" && property != "0")) && HttpContext.Current != null)
                {
                    string key = OwaServerLogger.EnumToShortKeyMapping[OwaServerLogger.LoggerData.UserAgent];
                    if (!dictionary.ContainsKey(key))
                    {
                        dictionary.Add(key, HttpContext.Current.Request.UserAgent);
                    }
                }
            }
            return(dictionary);
        }