• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IObservable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IObservable的典型用法代码示例。如果您正苦于以下问题:C# IObservable类的具体用法?C# IObservable怎么用?C# IObservable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IObservable类属于命名空间,在下文中一共展示了IObservable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddIdentity

 public static IObservable<System.Reactive.Unit> AddIdentity(
     this IObservable<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalValue,
     IObservable<System.Security.Claims.ClaimsIdentity> identity)
 {
     return ObservableExt.ZipExecute(ClaimsPrincipalValue, identity,
         (ClaimsPrincipalValueLambda, identityLambda) => ClaimsPrincipalValueLambda.AddIdentity(identityLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Claims.ClaimsPrincipal.cs


示例2: AddPermission

 public static IObservable<System.Security.IPermission> AddPermission(
     this IObservable<System.Security.PermissionSet> PermissionSetValue,
     IObservable<System.Security.IPermission> perm)
 {
     return Observable.Zip(PermissionSetValue, perm,
         (PermissionSetValueLambda, permLambda) => PermissionSetValueLambda.AddPermission(permLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.PermissionSet.cs


示例3: FromXml

 public static IObservable<System.Reactive.Unit> FromXml(
     this IObservable<System.Security.PermissionSet> PermissionSetValue,
     IObservable<System.Security.SecurityElement> et)
 {
     return ObservableExt.ZipExecute(PermissionSetValue, et,
         (PermissionSetValueLambda, etLambda) => PermissionSetValueLambda.FromXml(etLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.PermissionSet.cs


示例4: FromXml

 public static IObservable<System.Reactive.Unit> FromXml(
     this IObservable<System.Security.Policy.GacMembershipCondition> GacMembershipConditionValue,
     IObservable<System.Security.SecurityElement> e)
 {
     return ObservableExt.ZipExecute(GacMembershipConditionValue, e,
         (GacMembershipConditionValueLambda, eLambda) => GacMembershipConditionValueLambda.FromXml(eLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Policy.GacMembershipCondition.cs


示例5: EndInvoke

 public static IObservable<System.Reactive.Unit> EndInvoke(
     this IObservable<System.Threading.SendOrPostCallback> SendOrPostCallbackValue,
     IObservable<System.IAsyncResult> result)
 {
     return ObservableExt.ZipExecute(SendOrPostCallbackValue, result,
         (SendOrPostCallbackValueLambda, resultLambda) => SendOrPostCallbackValueLambda.EndInvoke(resultLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Threading.SendOrPostCallback.cs


示例6: Read

 public static IObservable<int> Read(this IObservable<System.IO.StringReader> StringReaderValue,
     IObservable<System.Char[]> buffer, IObservable<System.Int32> index, IObservable<System.Int32> count)
 {
     return Observable.Zip(StringReaderValue, buffer, index, count,
         (StringReaderValueLambda, bufferLambda, indexLambda, countLambda) =>
             StringReaderValueLambda.Read(bufferLambda, indexLambda, countLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.IO.StringReader.cs


示例7: set_Name

 public static IObservable<System.Reactive.Unit> set_Name(
     this IObservable<System.Diagnostics.Tracing.EventDataAttribute> EventDataAttributeValue,
     IObservable<System.String> value)
 {
     return ObservableExt.ZipExecute(EventDataAttributeValue, value,
         (EventDataAttributeValueLambda, valueLambda) => EventDataAttributeValueLambda.Name = valueLambda);
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Diagnostics.Tracing.EventDataAttribute.cs


示例8: set_Value

 public static IObservable<System.Reactive.Unit> set_Value(
     this IObservable<System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri> SoapAnyUriValue,
     IObservable<System.String> value)
 {
     return ObservableExt.ZipExecute(SoapAnyUriValue, value,
         (SoapAnyUriValueLambda, valueLambda) => SoapAnyUriValueLambda.Value = valueLambda);
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri.cs


示例9: Write

 public static IObservable<System.Reactive.Unit> Write(this IObservable<System.IO.TextWriter> TextWriterValue,
     IObservable<System.Char[]> buffer, IObservable<System.Int32> index, IObservable<System.Int32> count)
 {
     return ObservableExt.ZipExecute(TextWriterValue, buffer, index, count,
         (TextWriterValueLambda, bufferLambda, indexLambda, countLambda) =>
             TextWriterValueLambda.Write(bufferLambda, indexLambda, countLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.IO.TextWriter.cs


示例10: HasClaim

 public static IObservable<System.Boolean> HasClaim(
     this IObservable<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalValue,
     IObservable<System.Predicate<System.Security.Claims.Claim>> match)
 {
     return Observable.Zip(ClaimsPrincipalValue, match,
         (ClaimsPrincipalValueLambda, matchLambda) => ClaimsPrincipalValueLambda.HasClaim(matchLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Claims.ClaimsPrincipal.cs


示例11: Skip

 public static IObservable<System.Int32> Skip(
     this IObservable<System.Runtime.InteropServices.UCOMIEnumString> UCOMIEnumStringValue,
     IObservable<System.Int32> celt)
 {
     return Observable.Zip(UCOMIEnumStringValue, celt,
         (UCOMIEnumStringValueLambda, celtLambda) => UCOMIEnumStringValueLambda.Skip(celtLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Runtime.InteropServices.UCOMIEnumString.cs


示例12: FindFirst

 public static IObservable<System.Security.Claims.Claim> FindFirst(
     this IObservable<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalValue,
     IObservable<System.String> type)
 {
     return Observable.Zip(ClaimsPrincipalValue, type,
         (ClaimsPrincipalValueLambda, typeLambda) => ClaimsPrincipalValueLambda.FindFirst(typeLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Claims.ClaimsPrincipal.cs


示例13: FindAll

 public static IObservable<System.Collections.Generic.IEnumerable<System.Security.Claims.Claim>> FindAll(
     this IObservable<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalValue,
     IObservable<System.String> type)
 {
     return Observable.Zip(ClaimsPrincipalValue, type,
         (ClaimsPrincipalValueLambda, typeLambda) => ClaimsPrincipalValueLambda.FindAll(typeLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Claims.ClaimsPrincipal.cs


示例14: OpenGLInputObservable

        public OpenGLInputObservable(GameWindow window)
        {
            gameWindow = window;

            IObservable<IInput> downEvents =
                from evt in Observable.FromEventPattern<KeyboardKeyEventArgs>(window, "KeyDown")
                let keyInput = GLKeyInput.FromArgs(evt.EventArgs, false)
                where keyInput != null
                select keyInput;

            IObservable<IInput> upEvents =
                from evt in Observable.FromEventPattern<KeyboardKeyEventArgs>(window, "KeyUp")
                let keyInput = GLKeyInput.FromArgs(evt.EventArgs, true)
                where keyInput != null
                select keyInput;

            IObservable<IInput> mouseMoveEvents =
                from evt in Observable.FromEventPattern<MouseMoveEventArgs>(window, "MouseMove")
                from mouseInput in GLMouseInput.FromArgs(evt.EventArgs, gameWindow.Width, gameWindow.Height)
                select mouseInput;

            IObservable<IInput> mouseDownEvents =
                from evt in Observable.FromEventPattern<MouseButtonEventArgs>(window, "MouseDown")
                select GLMouseClickInput.FromArgs(evt.EventArgs, false);

            IObservable<IInput> mouseUpEvents =
                from evt in Observable.FromEventPattern<MouseButtonEventArgs>(window, "MouseUp")
                select GLMouseClickInput.FromArgs(evt.EventArgs, true);

            InputEvents = downEvents.Merge(upEvents).Merge(mouseMoveEvents).Merge(mouseDownEvents).Merge(mouseUpEvents);

            window.MouseMove += (sender, e) => Cursor.Position = new Point(window.Width / 2, window.Height / 2); // keep mouse centered (bc fps)
        }
开发者ID:domisterwoozy,项目名称:LabBox,代码行数:33,代码来源:OpenGLInputObservable.cs


示例15: SetAt

 public static IObservable<System.Reactive.Unit> SetAt(
     this IObservable<System.Security.SecureString> SecureStringValue, IObservable<System.Int32> index,
     IObservable<System.Char> c)
 {
     return ObservableExt.ZipExecute(SecureStringValue, index, c,
         (SecureStringValueLambda, indexLambda, cLambda) => SecureStringValueLambda.SetAt(indexLambda, cLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.SecureString.cs


示例16: set_Order

 public static IObservable<System.Reactive.Unit> set_Order(
     this IObservable<System.Runtime.Remoting.Metadata.SoapFieldAttribute> SoapFieldAttributeValue,
     IObservable<System.Int32> value)
 {
     return ObservableExt.ZipExecute(SoapFieldAttributeValue, value,
         (SoapFieldAttributeValueLambda, valueLambda) => SoapFieldAttributeValueLambda.Order = valueLambda);
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Runtime.Remoting.Metadata.SoapFieldAttribute.cs


示例17: Load

 public static IObservable<System.Reactive.Unit> Load(
     this IObservable<System.Runtime.InteropServices.UCOMIMoniker> UCOMIMonikerValue,
     IObservable<System.Runtime.InteropServices.UCOMIStream> pStm)
 {
     return ObservableExt.ZipExecute(UCOMIMonikerValue, pStm,
         (UCOMIMonikerValueLambda, pStmLambda) => UCOMIMonikerValueLambda.Load(pStmLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Runtime.InteropServices.UCOMIMoniker.cs


示例18: GetDeploymentManifestBytes

 public static IObservable<System.Byte[]> GetDeploymentManifestBytes(
     IObservable<System.ActivationContext> appInfo)
 {
     return Observable.Select(appInfo,
         (appInfoLambda) =>
             System.Deployment.Internal.InternalActivationContextHelper.GetDeploymentManifestBytes(appInfoLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Deployment.Internal.InternalActivationContextHelper.cs


示例19: SetExceptions

 public static IObservable<System.Reactive.Unit> SetExceptions(
     this IObservable<System.Reflection.Emit.DynamicILInfo> DynamicILInfoValue,
     IObservable<System.Byte[]> exceptions)
 {
     return ObservableExt.ZipExecute(DynamicILInfoValue, exceptions,
         (DynamicILInfoValueLambda, exceptionsLambda) => DynamicILInfoValueLambda.SetExceptions(exceptionsLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Reflection.Emit.DynamicILInfo.cs


示例20: Equals

 public static IObservable<System.Boolean> Equals(
     this IObservable<System.Security.Policy.GacMembershipCondition> GacMembershipConditionValue,
     IObservable<System.Object> o)
 {
     return Observable.Zip(GacMembershipConditionValue, o,
         (GacMembershipConditionValueLambda, oLambda) => GacMembershipConditionValueLambda.Equals(oLambda));
 }
开发者ID:RixianOpenTech,项目名称:RxWrappers,代码行数:7,代码来源:System.Security.Policy.GacMembershipCondition.cs



注:本文中的IObservable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IObserver类代码示例发布时间:2022-05-24
下一篇:
C# IObjectValueSource类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap