当前位置: 首页>>代码示例>>C#>>正文


C# IObservable类代码示例

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


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


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