コード例 #1
0
ファイル: SecurityExtensions.cs プロジェクト: csuffyy/Bifrost
        /// <summary>
        /// Add a <see cref="FetchingSecurityTarget"/> to the <see cref="Fetching">action</see>
        /// </summary>
        /// <param name="action"><see cref="Fetching">Action</see> to add to</param>
        /// <returns><see cref="FetchingSecurityTarget"/></returns>
        public static FetchingSecurityTarget ReadModels(this Fetching action)
        {
            var target = new FetchingSecurityTarget();

            action.AddTarget(target);
            return(target);
        }
コード例 #2
0
ファイル: SecurityExtensions.cs プロジェクト: csuffyy/Bifrost
        /// <summary>
        /// Add an <see cref="Fetching">action</see> to describe the fetching of <see cref="IReadModel">read models</see>
        /// </summary>
        /// <param name="descriptorBuilder"></param>
        /// <returns></returns>
        public static Fetching Fetching(this ISecurityDescriptorBuilder descriptorBuilder)
        {
            var action = new Fetching();

            descriptorBuilder.Descriptor.AddAction(action);
            return(action);
        }
コード例 #3
0
ファイル: SecurityExtensions.cs プロジェクト: jarlef/Bifrost
 /// <summary>
 /// Add an <see cref="Fetching">action</see> to describe the fetching of <see cref="IReadModel">read models</see>
 /// </summary>
 /// <param name="descriptorBuilder"></param>
 /// <returns></returns>
 public static Fetching Fetching(this ISecurityDescriptorBuilder descriptorBuilder)
 {
     var action = new Fetching();
     descriptorBuilder.Descriptor.AddAction(action);
     return action;
 }